From 358803c722caf619b9a94460e4ededafd674983d Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Wed, 29 May 2013 23:16:46 +0200 Subject: [PATCH] justin: new path for vod files. --- lib/svtplay_dl/service/justin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/svtplay_dl/service/justin.py b/lib/svtplay_dl/service/justin.py index 8fac800..4a6ac98 100644 --- a/lib/svtplay_dl/service/justin.py +++ b/lib/svtplay_dl/service/justin.py @@ -22,9 +22,9 @@ class Justin(Service): def get(self, options, url): parse = urlparse(url) - match = re.search(r"/b/(\d+)", parse.path) + match = re.search(r"/[-a-zA-Z0-9_]+/c/(\d+)", parse.path) if match: - url = "http://api.justin.tv/api/broadcast/by_archive/%s.xml?onsite=true" % match.group(1) + url = "http://api.justin.tv/api/broadcast/by_chapter/%s.xml?onsite=true" % match.group(1) data = get_http_data(url) xml = ET.XML(data) url = xml.find("archive").find("video_file_url").text