aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/ir90tv.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-07-25 18:42:40 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-07-25 18:42:40 +0800
commit9700cd9097445d598515dc41fb3cb9421403b9b9 (patch)
tree9966f56a58d9dccdbebd834bc8d2e7a296a7c3cd /youtube_dl/extractor/ir90tv.py
parenteab7faa0c1e8511bc91c64347d0dffc28c94f101 (diff)
downloadyoutube-dl-9700cd9097445d598515dc41fb3cb9421403b9b9.zip
youtube-dl-9700cd9097445d598515dc41fb3cb9421403b9b9.tar.gz
youtube-dl-9700cd9097445d598515dc41fb3cb9421403b9b9.tar.bz2
[ir90tv] Improve title extraction
Diffstat (limited to 'youtube_dl/extractor/ir90tv.py')
-rw-r--r--youtube_dl/extractor/ir90tv.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/ir90tv.py b/youtube_dl/extractor/ir90tv.py
index 880a6e3..92333c3 100644
--- 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 ..utils import remove_start
class Ir90TvIE(InfoExtractor):
@@ -24,8 +25,8 @@ class Ir90TvIE(InfoExtractor):
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')