projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eab7faa
)
[ir90tv] Improve title extraction
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 25 Jul 2015 10:42:40 +0000
(18:42 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 25 Jul 2015 10:42:40 +0000
(18:42 +0800)
youtube_dl/extractor/ir90tv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ir90tv.py
b/youtube_dl/extractor/ir90tv.py
index 880a6e32f6b4b9ea6a683c25238f8953a8355030..92333c3ea5aa7cb79a511bbbbb77151ea92f4324 100644
(file)
--- a/
youtube_dl/extractor/ir90tv.py
+++ b/
youtube_dl/extractor/ir90tv.py
@@
-2,6
+2,7
@@
from __future__ import unicode_literals
from .common import InfoExtractor
from __future__ import unicode_literals
from .common import InfoExtractor
+from ..utils import remove_start
class Ir90TvIE(InfoExtractor):
class Ir90TvIE(InfoExtractor):
@@
-24,8
+25,8
@@
class Ir90TvIE(InfoExtractor):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
- title = self._html_search_regex(
- r'<title>
\n90tv.ir :: (.*?)</title>', webpage, 'title
')
+ title =
remove_start(
self._html_search_regex(
+ r'<title>
([^<]+)</title>', webpage, 'title'), '90tv.ir ::
')
video_url = self._search_regex(
r'<source[^>]+src="([^"]+)"', webpage, 'video url')
video_url = self._search_regex(
r'<source[^>]+src="([^"]+)"', webpage, 'video url')