mirror of
https://github.com/l1ving/youtube-dl
synced 2024-12-31 01:52:52 +08:00
[ir90tv] Improve title extraction
This commit is contained in:
parent
eab7faa0c1
commit
9700cd9097
@ -2,6 +2,7 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from .common import InfoExtractor
|
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)
|
video_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
title = self._html_search_regex(
|
title = remove_start(self._html_search_regex(
|
||||||
r'<title>\n90tv.ir :: (.*?)</title>', webpage, 'title')
|
r'<title>([^<]+)</title>', webpage, 'title'), '90tv.ir :: ')
|
||||||
|
|
||||||
video_url = self._search_regex(
|
video_url = self._search_regex(
|
||||||
r'<source[^>]+src="([^"]+)"', webpage, 'video url')
|
r'<source[^>]+src="([^"]+)"', webpage, 'video url')
|
||||||
|
Loading…
Reference in New Issue
Block a user