1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-21 00:03:03 +08:00

[twitch:stream] Remove fallback to profile extraction when stream is offline

Main page does not contain profile videos anymore
This commit is contained in:
Sergey M․ 2016-09-18 19:10:18 +07:00
parent d8dbf8707d
commit cc764a6da8
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -400,11 +400,8 @@ class TwitchStreamIE(TwitchBaseIE):
'kraken/streams/%s' % channel_id, channel_id, 'kraken/streams/%s' % channel_id, channel_id,
'Downloading stream JSON').get('stream') 'Downloading stream JSON').get('stream')
# Fallback on profile extraction if stream is offline
if not stream: if not stream:
return self.url_result( raise ExtractorError('%s is offline' % channel_id, expected=True)
'http://www.twitch.tv/%s/profile' % channel_id,
'TwitchProfile', channel_id)
# Channel name may be typed if different case than the original channel name # Channel name may be typed if different case than the original channel name
# (e.g. http://www.twitch.tv/TWITCHPLAYSPOKEMON) that will lead to constructing # (e.g. http://www.twitch.tv/TWITCHPLAYSPOKEMON) that will lead to constructing