diff options
| author | Sergey M․ <dstftw@gmail.com> | 2016-09-18 19:10:18 +0700 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2016-09-18 19:10:18 +0700 | 
| commit | cc764a6da8530248f9810397a22b20c972877a97 (patch) | |
| tree | df7c5ee6116b942d0bc66394318b1f2e1084cab3 | |
| parent | d8dbf8707d4e45a939fc74c76bb919771007f8ba (diff) | |
[twitch:stream] Remove fallback to profile extraction when stream is offline
Main page does not contain profile videos anymore
| -rw-r--r-- | youtube_dl/extractor/twitch.py | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py index af6d890b0..bc352391e 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 offline          if 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 | 
