mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-06 08:50:07 +01:00
[ustream] Use modern helper function instead of old HTML parser
This commit is contained in:
parent
711ede6e1b
commit
44789f2457
@ -5,7 +5,6 @@
|
||||
from .common import InfoExtractor
|
||||
from ..utils import (
|
||||
compat_urlparse,
|
||||
get_meta_content,
|
||||
)
|
||||
|
||||
|
||||
@ -79,7 +78,7 @@ def _real_extract(self, url):
|
||||
m = re.match(self._VALID_URL, url)
|
||||
display_id = m.group('slug')
|
||||
webpage = self._download_webpage(url, display_id)
|
||||
channel_id = get_meta_content('ustream:channel_id', webpage)
|
||||
channel_id = self._html_search_meta('ustream:channel_id', webpage)
|
||||
|
||||
BASE = 'http://www.ustream.tv'
|
||||
next_url = '/ajax/socialstream/videos/%s/1.json' % channel_id
|
||||
|
Loading…
Reference in New Issue
Block a user