diff --git a/src/you_get/downloader/pptv.py b/src/you_get/downloader/pptv.py index 53c8e508..4fd88e5b 100644 --- a/src/you_get/downloader/pptv.py +++ b/src/you_get/downloader/pptv.py @@ -9,18 +9,14 @@ import urllib import hashlib def pptv_download_by_id(id, title = None, output_dir = '.', merge = True, info_only = False): - xml = get_html('http://web-play.pptv.com/webplay3-151-%s.xml' % id) + xml = get_html('http://web-play.pptv.com/webplay3-0-%s.xml?type=web.fpp' % id) host = r1(r'([^<>]+)', xml) - port = 8080 - st = r1(r'([^<>]+)', xml).encode('utf-8') - key = hashlib.md5(st).hexdigest() # FIXME: incorrect key - rids = re.findall(r'rid="([^"]+)"', xml) + key = r1(r']+>([^<>]+)', xml) rid = r1(r'rid="([^"]+)"', xml) title = r1(r'nm="([^"]+)"', xml) pieces = re.findall('