projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8cb57d9
)
[Tube8IE] Fix regex for uploader extraction
author
rzhxeo
<rzhxeo@users.noreply.github.com>
Sat, 26 Oct 2013 23:08:03 +0000
(
01:08
+0200)
committer
rzhxeo
<rzhxeo@users.noreply.github.com>
Sat, 26 Oct 2013 23:08:03 +0000
(
01:08
+0200)
youtube_dl/extractor/tube8.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/tube8.py
b/youtube_dl/extractor/tube8.py
index ef8d216421826d2b2b2ec205f7e058e0c78703d0..ebc8c1f4f11544fc2110aadfb1fbf5876502f3bc 100644
(file)
--- a/
youtube_dl/extractor/tube8.py
+++ b/
youtube_dl/extractor/tube8.py
@@
-36,7
+36,7
@@
class Tube8IE(InfoExtractor):
video_title = self._html_search_regex(r'videotitle ="([^"]+)', webpage, u'title')
video_description = self._html_search_regex(r'>Description:</strong>(.+?)<', webpage, u'description', fatal=False)
video_title = self._html_search_regex(r'videotitle ="([^"]+)', webpage, u'title')
video_description = self._html_search_regex(r'>Description:</strong>(.+?)<', webpage, u'description', fatal=False)
- video_uploader = self._html_search_regex(r'>Submitted by:</strong>(?:\
w
|<[^>]*>)*(.+?)<', webpage, u'uploader', fatal=False)
+ video_uploader = self._html_search_regex(r'>Submitted by:</strong>(?:\
s
|<[^>]*>)*(.+?)<', webpage, u'uploader', fatal=False)
thumbnail = self._html_search_regex(r'"image_url":"([^"]+)', webpage, u'thumbnail', fatal=False)
if thumbnail:
thumbnail = thumbnail.replace('\\/', '/')
thumbnail = self._html_search_regex(r'"image_url":"([^"]+)', webpage, u'thumbnail', fatal=False)
if thumbnail:
thumbnail = thumbnail.replace('\\/', '/')