[arte] Mark dead code as such

pull/924/head
Philipp Hagemeister 2013-06-23 20:26:35 +02:00
parent d5822b96b0
commit 9b3a760bbb
1 changed files with 29 additions and 27 deletions

View File

@ -48,31 +48,32 @@ class ArteTvIE(InfoExtractor):
return info return info
def extractLiveStream(self, url): # TODO implement Live Stream
video_lang = url.split('/')[-4] # def extractLiveStream(self, url):
info = self.grep_webpage( # video_lang = url.split('/')[-4]
url, # info = self.grep_webpage(
r'src="(.*?/videothek_js.*?\.js)', # url,
0, # r'src="(.*?/videothek_js.*?\.js)',
[ # 0,
(1, 'url', u'Invalid URL: %s' % url) # [
] # (1, 'url', u'Invalid URL: %s' % url)
) # ]
http_host = url.split('/')[2] # )
next_url = 'http://%s%s' % (http_host, compat_urllib_parse.unquote(info.get('url'))) # http_host = url.split('/')[2]
info = self.grep_webpage( # next_url = 'http://%s%s' % (http_host, compat_urllib_parse.unquote(info.get('url')))
next_url, # info = self.grep_webpage(
r'(s_artestras_scst_geoFRDE_' + video_lang + '.*?)\'.*?' + # next_url,
'(http://.*?\.swf).*?' + # r'(s_artestras_scst_geoFRDE_' + video_lang + '.*?)\'.*?' +
'(rtmp://.*?)\'', # '(http://.*?\.swf).*?' +
re.DOTALL, # '(rtmp://.*?)\'',
[ # re.DOTALL,
(1, 'path', u'could not extract video path: %s' % url), # [
(2, 'player', u'could not extract video player: %s' % url), # (1, 'path', u'could not extract video path: %s' % url),
(3, 'url', u'could not extract video url: %s' % url) # (2, 'player', u'could not extract video player: %s' % url),
] # (3, 'url', u'could not extract video url: %s' % url)
) # ]
video_url = u'%s/%s' % (info.get('url'), info.get('path')) # )
# video_url = u'%s/%s' % (info.get('url'), info.get('path'))
def extractPlus7Stream(self, url): def extractPlus7Stream(self, url):
video_lang = url.split('/')[-3] video_lang = url.split('/')[-3]
@ -126,8 +127,9 @@ class ArteTvIE(InfoExtractor):
self.report_extraction(video_id) self.report_extraction(video_id)
if re.search(self._LIVE_URL, video_id) is not None: if re.search(self._LIVE_URL, video_id) is not None:
self.extractLiveStream(url) raise ExtractorError(u'Arte live streams are not yet supported, sorry')
return # self.extractLiveStream(url)
# return
else: else:
info = self.extractPlus7Stream(url) info = self.extractPlus7Stream(url)