projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a5601e
)
fixing xhamster file extraction
author
vijayanand nandam
<vijay@cybrilla.com>
Wed, 5 Aug 2015 14:07:59 +0000
(19:37 +0530)
committer
vijayanand nandam
<vijay@cybrilla.com>
Wed, 5 Aug 2015 14:07:59 +0000
(19:37 +0530)
youtube_dl/extractor/xhamster.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/xhamster.py
b/youtube_dl/extractor/xhamster.py
index b4ad513a0d18ecbae558deceb6234efaa5ce5415..9d025530fb9f1fcb14a4cc139c4c67c88c157668 100644
(file)
--- a/
youtube_dl/extractor/xhamster.py
+++ b/
youtube_dl/extractor/xhamster.py
@@
-47,7
+47,7
@@
class XHamsterIE(InfoExtractor):
def _real_extract(self, url):
def extract_video_url(webpage):
- mp4 = re.search(r'
<video\s+.*?file="([^"]+)".*?>
', webpage)
+ mp4 = re.search(r'
file:\s+\'([^\']+)\'
', webpage)
if mp4 is None:
raise ExtractorError('Unable to extract media URL')
else: