2010-10-26, 13:50
skila Wrote:Err, plugin makers, I don't know if you are interested, but I did some hacking of your code to try and add in browsing for TVShows in YouTube.
http://www.megaupload.com/?d=BL4T84WH
I created a YouTubeScraperShows python file which currently extends the YouTubeScraperCore class in order to avoid messing with that. The code currently allows me to list show categories, browse these for shows and then play individual episodes. Currently the scraper for episodes only scrapes the "current season" and does not take the paging into account, but you are welcome to the code for what it's worth.
The other changes - search for "SKILA_MODIFIED"
YouTubeNavigation.py - uses YouTubeScraperShows rather than YouTubeScraperCore, adds in a category for the scraper "shows", modifies scrape & parseFolderList to use the scraper called "shows".
YouTubeCore - added urls for "shows" and "show" (sorry missed off the "SKILA_MODIFIED" bit)
language XML: add "TVShows" string
Let me know if it's a pile-o-sh**e or any use - it was hacked up fairly quickly
Hi Skila, Just wanted to thank you for this code, alot of it made it into the final version, though i integrated it differently than you (didn't want to duplicate the scraper pagination, as that code is filled with so many strange numbers and other darkmagic that even I get confused by it sometimes). I also changed a few things
1. Used our batch function for requesting video info,
2. Implemented a "local cache" of sorts to reduce load on googles servers and reduce the number of http request roundtrips.
3. Selected a higher quality thumbnail from the "shows" grid
4. Added option for user to select show season