BlueCop / BlueCop-XBMC-Plugins

XBMC Video Addons
19 stars 30 forks source link

fix playing hulu given a url from json api #3

Open yultide opened 11 years ago

yultide commented 11 years ago

changed the html parsing to get the real video id in the html given a hulu url. this is to allow json api to work properly.

Ex.

{"jsonrpc": "2.0", "method": "Player.Open", "params":{"item" :{ "file" : "plugin://plugin.video.hulu/?url=\"http%3A%2F%2Fhulu.com%2Fwatch%2F534482\"&mode=\"TV_play\"" }}, "id" :1}