home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Electronic Program Guide
WebEPG
WebEpg development
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="doskabouter" data-source="post: 1037625" data-attributes="member: 98267"><p>First draft of the JSON stuff:</p><p>[SPOILER]</p><p>Overview</p><p></p><p>Parse WebEPG data from json sources</p><p></p><p>Description of Change</p><p></p><p>Besides Html, Xml, and generic data, JSON is now supported as well</p><p></p><p>For that I have created a JSON parser, and a JSON Xpath evaluator</p><p></p><p>Changed to be made in the <a href="http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/5_Localization/EPG_Grabbers_and_Tuning_details/WebEPG/WebEPG_Grabber" target="_blank">http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/5_Localization/EPG_Grabbers_and_Tuning_details/WebEPG/WebEPG_Grabber</a> page:</p><p></p><p>Add a 2.3.7. <JSON></p><p>At #.3CListing_type.3D.22.22.3E add JSON</p><p></p><p>The "JSON" element may containg the following content:</p><p></p><p>Attributes:</p><p> "xpath": Xpath expression which returns the EPG-elements. Note that this is a custom implementation of Xpath, and not all possibilities are supported (yet)</p><p> "channel": Filter to apply to the list of EPG-elements</p><p></p><p>ChildNodes:</p><p> "Fields": Mapping from JSON-attributes to EPG-fields</p><p> This contains a number of "Field" nodes, with these attributes:</p><p> "name": EPG-Field</p><p> "jsonname": JSON-attribute</p><p></p><p>Example:</p><p> <JSON channel="channel/id=28" xpath="airing"></p><p> <Fields></p><p> <Field name="#START" jsonname="air_time" /></p><p> <Field name="#TITLE" jsonname="title" /></p><p> <Field name="#DESCRIPTION" jsonname="episode/original_title" /></p><p> </Fields></p><p> </JSON></p><p></p><p>Additional Information and References</p><p>Issue #: <a href="https://issues.team-mediaportal.com/browse/MP1-4215" target="_blank">4215</a></p><p>Issue Component: WebEPG</p><p>Type of Change: Feature</p><p>Related Wiki page(s): <a href="http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/5_Localization/EPG_Grabbers_and_Tuning_details/WebEPG/WebEPG_Grabber" target="_blank">http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/5_Localization/EPG_Grabbers_and_Tuning_details/WebEPG/WebEPG_Grabber</a></p><p>Author: doskabouter</p><p>Date added: Fri, 01 Nov 2013</p><p></p><p>[/SPOILER]</p><p></p><p>Is this along the lines you want it, or should I try to make it more user-friendly?</p><p></p><p>And an explanation which can already be added to the Xml section:</p><p>[SPOILER]</p><p>The "Xml" element may containg the following content:</p><p></p><p>Attributes:</p><p> "xpath": Xpath expression which returns the EPG-elements</p><p> "channel": Filter to apply to the list of EPG-elements</p><p></p><p>ChildNodes:</p><p> "Fields": Mapping from xml-attributes to EPG-fields</p><p> This contains a number of "Field" nodes, with these attributes:</p><p> "name": EPG-Field</p><p> "xmlname": xml-attribute</p><p> </p><p>Example:</p><p> <Xml channel="id=28" xpath="airing"></p><p> <Fields></p><p> <Field name="#START" xmlname="air_time" /></p><p> <Field name="#TITLE" xmlname="title" /></p><p> <Field name="#DESCRIPTION" xmlname="description" /></p><p> </Fields></p><p> </Xml></p><p></p><p>[/SPOILER]</p></blockquote><p></p>
[QUOTE="doskabouter, post: 1037625, member: 98267"] First draft of the JSON stuff: [SPOILER] Overview Parse WebEPG data from json sources Description of Change Besides Html, Xml, and generic data, JSON is now supported as well For that I have created a JSON parser, and a JSON Xpath evaluator Changed to be made in the [url]http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/5_Localization/EPG_Grabbers_and_Tuning_details/WebEPG/WebEPG_Grabber[/url] page: Add a 2.3.7. <JSON> At #.3CListing_type.3D.22.22.3E add JSON The "JSON" element may containg the following content: Attributes: "xpath": Xpath expression which returns the EPG-elements. Note that this is a custom implementation of Xpath, and not all possibilities are supported (yet) "channel": Filter to apply to the list of EPG-elements ChildNodes: "Fields": Mapping from JSON-attributes to EPG-fields This contains a number of "Field" nodes, with these attributes: "name": EPG-Field "jsonname": JSON-attribute Example: <JSON channel="channel/id=28" xpath="airing"> <Fields> <Field name="#START" jsonname="air_time" /> <Field name="#TITLE" jsonname="title" /> <Field name="#DESCRIPTION" jsonname="episode/original_title" /> </Fields> </JSON> Additional Information and References Issue #: [URL=https://issues.team-mediaportal.com/browse/MP1-4215]4215[/URL] Issue Component: WebEPG Type of Change: Feature Related Wiki page(s): [url]http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/5_Localization/EPG_Grabbers_and_Tuning_details/WebEPG/WebEPG_Grabber[/url] Author: doskabouter Date added: Fri, 01 Nov 2013 [/SPOILER] Is this along the lines you want it, or should I try to make it more user-friendly? And an explanation which can already be added to the Xml section: [SPOILER] The "Xml" element may containg the following content: Attributes: "xpath": Xpath expression which returns the EPG-elements "channel": Filter to apply to the list of EPG-elements ChildNodes: "Fields": Mapping from xml-attributes to EPG-fields This contains a number of "Field" nodes, with these attributes: "name": EPG-Field "xmlname": xml-attribute Example: <Xml channel="id=28" xpath="airing"> <Fields> <Field name="#START" xmlname="air_time" /> <Field name="#TITLE" xmlname="title" /> <Field name="#DESCRIPTION" xmlname="description" /> </Fields> </Xml> [/SPOILER] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
WebEPG
WebEpg development
Contact us
RSS
Top
Bottom