plexinc-plugins/Services.bundle — pull request #679 by elstongunnn (2014-01-16 17:09:58+00:00)
Title: Added URL service for videos and live TV streams at Sohu TV (http://tv.sohu.com/)

Due to broadcast rights, some of the videos (e.g. TV shows from the US and UK) will only be viewable from within Mainland China. The test URLs listed in ServiceInfo.plist should be viewable worldwide.

I've tested this using the lookup function, but I haven't found a way to add to my queue any videos that the central Services bundle doesn't recognize, so I haven't been able to test this by actually queueing and watching videos from the site. (Some way for outside developers to add "unknown" videos to the queue for testing would be nice.)

Also, I found that with `JSON.ObjectFromURL()` (and `XML.ElementFromURL()`, though I haven't tested this personally), if you pass it an encoding, it will try to decode the text twice: first, `encoding` is passed to `self._http_request()`; second, when it is passed again to `self.ObjectFromString()`. (I traced this issue to /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py.) I'm not sure where to submit this issue, and it appears this part of the code isn't open source so I can't fix it for you, so I thought I'd mention it here.