Sergey M․
7 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
6 additions and
3 deletions
-
youtube_dl/extractor/twitch.py
|
|
@ -28,7 +28,7 @@ from ..utils import ( |
|
|
|
|
|
|
|
|
|
|
|
class TwitchBaseIE(InfoExtractor): |
|
|
|
_VALID_URL_BASE = r'https?://(?:www\.)?twitch\.tv' |
|
|
|
_VALID_URL_BASE = r'https?://(?:(?:www|go)\.)?twitch\.tv' |
|
|
|
|
|
|
|
_API_BASE = 'https://api.twitch.tv' |
|
|
|
_USHER_BASE = 'https://usher.ttvnw.net' |
|
|
@ -217,7 +217,7 @@ class TwitchVodIE(TwitchItemBaseIE): |
|
|
|
_VALID_URL = r'''(?x) |
|
|
|
https?:// |
|
|
|
(?: |
|
|
|
(?:www\.)?twitch\.tv/(?:[^/]+/v|videos)/| |
|
|
|
(?:(?:www|go)\.)?twitch\.tv/(?:[^/]+/v|videos)/| |
|
|
|
player\.twitch\.tv/\?.*?\bvideo=v |
|
|
|
) |
|
|
|
(?P<id>\d+) |
|
|
@ -458,7 +458,7 @@ class TwitchStreamIE(TwitchBaseIE): |
|
|
|
_VALID_URL = r'''(?x) |
|
|
|
https?:// |
|
|
|
(?: |
|
|
|
(?:www\.)?twitch\.tv/| |
|
|
|
(?:(?:www|go)\.)?twitch\.tv/| |
|
|
|
player\.twitch\.tv/\?.*?\bchannel= |
|
|
|
) |
|
|
|
(?P<id>[^/#?]+) |
|
|
@ -489,6 +489,9 @@ class TwitchStreamIE(TwitchBaseIE): |
|
|
|
}, { |
|
|
|
'url': 'https://player.twitch.tv/?channel=lotsofs', |
|
|
|
'only_matching': True, |
|
|
|
}, { |
|
|
|
'url': 'https://go.twitch.tv/food', |
|
|
|
'only_matching': True, |
|
|
|
}] |
|
|
|
|
|
|
|
@classmethod |
|
|
|