A feature-rich command-line audio/video downloader
[twitch:stream] Remove fallback to profile extraction when stream is offline Main page does not contain profile videos anymore
Sergey M․cc764a6da853
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.pyindex af6d890b0e..bc352391ef 100644--- a/youtube_dl/extractor/twitch.py+++ b/youtube_dl/extractor/twitch.py@@ -400,11 +400,8 @@ class TwitchStreamIE(TwitchBaseIE):'kraken/streams/%s' % channel_id, channel_id,'Downloading stream JSON').get('stream')- # Fallback on profile extraction if stream is offlineif not stream:- return self.url_result(- 'http://www.twitch.tv/%s/profile' % channel_id,- 'TwitchProfile', channel_id)+ raise ExtractorError('%s is offline' % channel_id, expected=True)# 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