Browse Source

[ustream] Use modern helper function instead of old HTML parser

totalwebcasting
Philipp Hagemeister 10 years ago
parent
commit
44789f2457
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      youtube_dl/extractor/ustream.py

+ 1
- 2
youtube_dl/extractor/ustream.py View File

@ -5,7 +5,6 @@ import re
from .common import InfoExtractor from .common import InfoExtractor
from ..utils import ( from ..utils import (
compat_urlparse, compat_urlparse,
get_meta_content,
) )
@ -79,7 +78,7 @@ class UstreamChannelIE(InfoExtractor):
m = re.match(self._VALID_URL, url) m = re.match(self._VALID_URL, url)
display_id = m.group('slug') display_id = m.group('slug')
webpage = self._download_webpage(url, display_id) 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' BASE = 'http://www.ustream.tv'
next_url = '/ajax/socialstream/videos/%s/1.json' % channel_id next_url = '/ajax/socialstream/videos/%s/1.json' % channel_id


Loading…
Cancel
Save