aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2015-02-08 17:30:29 +0600
committerSergey M․ <[email protected]>2015-02-08 17:30:29 +0600
commitc0e46412e99ef87f5730326ab8fa4a56038c43d1 (patch)
tree96c046eaca244a4d7ea955a60ac353f5958582b9
parent0161353d7d2d0f0fce1ecaa2f77471d787ee9bdd (diff)
downloadyoutube-dl-c0e46412e99ef87f5730326ab8fa4a56038c43d1.tar.gz
youtube-dl-c0e46412e99ef87f5730326ab8fa4a56038c43d1.zip
[aparat] Fix extraction (Closes #4897)
-rw-r--r--youtube_dl/extractor/aparat.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/aparat.py b/youtube_dl/extractor/aparat.py
index 15006336f..5d70758a3 100644
--- a/youtube_dl/extractor/aparat.py
+++ b/youtube_dl/extractor/aparat.py
@@ -34,7 +34,8 @@ class AparatIE(InfoExtractor):
video_id + '/vt/frame')
webpage = self._download_webpage(embed_url, video_id)
- video_urls = re.findall(r'fileList\[[0-9]+\]\s*=\s*"([^"]+)"', webpage)
+ video_urls = [video_url.replace('\\/', '/') for video_url in re.findall(
+ r'(?:fileList\[[0-9]+\]\s*=|"file"\s*:)\s*"([^"]+)"', webpage)]
for i, video_url in enumerate(video_urls):
req = HEADRequest(video_url)
res = self._request_webpage(
@@ -46,7 +47,7 @@ class AparatIE(InfoExtractor):
title = self._search_regex(r'\s+title:\s*"([^"]+)"', webpage, 'title')
thumbnail = self._search_regex(
- r'\s+image:\s*"([^"]+)"', webpage, 'thumbnail', fatal=False)
+ r'image:\s*"([^"]+)"', webpage, 'thumbnail', fatal=False)
return {
'id': video_id,