https://www.mythtv.org/wiki?title=Tedtalks.py&feed=atom&action=historyTedtalks.py - Revision history2024-03-19T08:16:24ZRevision history for this page on the wikiMediaWiki 1.27.7https://www.mythtv.org/wiki?title=Tedtalks.py&diff=47109&oldid=prevRdv: Created page with '== Synopsis == The MythNetvision TedTalks grabber (tedtalks.py) supports a search and creates treeviews of videos from TedTalks media sources (e.g. [http://www.ted.com/talks Te…'2010-07-18T13:50:49Z<p>Created page with '== Synopsis == The MythNetvision TedTalks grabber (tedtalks.py) supports a search and creates treeviews of videos from TedTalks media sources (e.g. [http://www.ted.com/talks Te…'</p>
<p><b>New page</b></p><div>== Synopsis ==<br />
The MythNetvision TedTalks grabber (tedtalks.py) supports a search and creates treeviews of videos from TedTalks media sources (e.g. [http://www.ted.com/talks Ted.com]).<br><br />
User customizations:<br />
*Select video quality [[Tedtalks.py#Select video quality | [1]]]<br />
*Control the maximum number of items that can be added to directories globally or for a single subdirectory [[Tedtalks.py#Controlling the number of items included in a subdirectory | [2]]]<br />
<br />
== Country Restrictions ==<br />
*No restrictions<br />
<br />
== Search ==<br />
The TedTalks search uses the same one found on their Web site.<br />
<br />
== Treeview Customization Instructions ==<br />
=== Initialization steps ===<br />
#You need to enable this treeview from the Media Library menu, select the ''Browse Internet Video'' menu option and press '''MENU''' (M). Select '''Scan/Manage Subscriptions,''' then '''Manage Site Subscriptions.''' Now subscribe to the "TedTalks" grabber.<br />
#You will need to download the treeview. To do so, select '''MENU''' (M). Select '''Scan/Manage Subscriptions,''' then '''Update Site Maps.''' The update process can take several minutes. Once this is complete the TedTalks will contain a subdirectory for each available TedTalks show (e.g "Last 6 Months").<br />
<br />
=== Customization ===<br />
{{Note box|Customization of this grabber is entirely optional. You only need to customize the grabber if you wish to change the quality of the download file or of the flash link.}}<br />
When you updated the treeview in Initialization step #2 a user configuration file was created at:<br><br />
"~/.mythtv/MythNetvision/userGrabberPrefs/tedtalks.xml". To customize the Treeview open the "tedtalks.xml" file with a text editor and make changes according to the instructions below. After you have made your changes and saved the "tedtalks.xml" file, update your subscriptions again (Initialization step #2).<br />
<br />
==== Select video quality ====<br />
The shows are split into subdirectories which represent the quality of the download files for the TedTalks. The two options are HD and SD while the flash link can be high, medium or low.<br><br><br />
To enable the quality of the download link you must change a "sourceURL" element's "enabled" attribute to 'true'. When you change the attribute to 'true' that source will be added to the TedTalks tree view. Of course you can disable any subdirectory by changing its 'sourceURL' element's 'enabled' attribute to 'false'.<br><br><br />
When the TedTalks Tree view is created it will have links to the Flash videos which will playback in a full browser window. If you experience excessive stuttering during playback you may want to reduce the quality level of the Flash video link.<br><br><br />
In this example the "Last 6 months: SD" of TedTalks is enabled while the "Last 6 months: HD" of Tedtalks is disabled. Also note that the "parameter" attribute the "flv" quality has been set to "low".<br />
<subDirectory name="Last 6 months"><br />
<sourceURL enabled="false" name="Last 6 months: HD" xsltFile="tedtalksRSS_item" type="xml" url="http://feeds.feedburner.com/tedtalksHD" parameter="flv=medium"/><br />
<sourceURL enabled="true" name="Last 6 months: SD" xsltFile="tedtalksRSS_item" type="xml" url="http://feeds.feedburner.com/tedtalks_video" parameter="flv=low"/><br />
</subDirectory><br />
<br />
Search can also have the quality of the down load file and Flash link set. In this example the search quality level Flash link has been set to "medium" with a HD video down load file.<br />
<search name="TedTalks Search"><br />
<subDirectory name="TedTalks"><br />
<sourceURL enabled="true" name="TedTalks HD" xsltFile="tedtalksHTML_item" type="html" url="" parameter="download=HD;flv=medium"/><br />
<sourceURL enabled="false" name="TedTalks SD" xsltFile="tedtalksHTML_item" type="html" url="" parameter="download=SD;flv=high"/><br />
</subDirectory><br />
</search><br />
<br />
==== Controlling the number of items included in a subdirectory ====<br />
You can optionally control the number of items added to a subdirectory through two attributes:<br />
*"globalmax" - Limits the number of items included for all subdirectories. A value of zero (0) means there are no limits.<br />
*"max" - Limits the number of items included for an individual subdirectory. This value will override the "globalmax" setting. A value of zero (0) means there are no limits.<br />
In this example any "subDirectory" without their own maximum setting will be limited but the "Last 6 months" sub-directory will be specifically restricted to no more than 20 items:<br />
<directory name="TedTalks" globalmax="0"><br />
<subDirectory name="Last 6 months" max="20"><br />
<sourceURL enabled="true" name="Last 6 months: HD" xsltFile="tedtalksRSS_item" type="xml" url="http://feeds.feedburner.com/tedtalksHD" parameter="flv=high"/><br />
<sourceURL enabled="false" name="Last 6 months: SD" xsltFile="tedtalksRSS_item" type="xml" url="http://feeds.feedburner.com/tedtalks_video" parameter="flv=high"/><br />
</subDirectory><br />
</directory><br />
<br />
[[Category:MythNetvision_Grabber_Scripts]]</div>Rdv