projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a542405
)
[sunporno] fix duration
author
peugeot
<peugeot.com>
Fri, 26 Dec 2014 11:49:13 +0000
(12:49 +0100)
committer
peugeot
<peugeot.com>
Fri, 26 Dec 2014 11:49:13 +0000
(12:49 +0100)
youtube_dl/extractor/sunporno.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/sunporno.py
b/youtube_dl/extractor/sunporno.py
index 263f09b4645fa8b6255f1216e99cab27afce2bee..6cfbc016034f8ba55c5a033c4cbff92ad12a9d8a 100644
(file)
--- a/
youtube_dl/extractor/sunporno.py
+++ b/
youtube_dl/extractor/sunporno.py
@@
-39,7
+39,7
@@
class SunPornoIE(InfoExtractor):
r'poster="([^"]+)"', webpage, 'thumbnail', fatal=False)
duration = parse_duration(self._search_regex(
- r'Duration:
\s*
(\d+:\d+)\s*<', webpage, 'duration', fatal=False))
+ r'Duration:
[^\d]+
(\d+:\d+)\s*<', webpage, 'duration', fatal=False))
view_count = int_or_none(self._html_search_regex(
r'class="views">\s*(\d+)\s*<', webpage, 'view count', fatal=False))