Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42b8edd commit c22b2bcCopy full SHA for c22b2bc
1 file changed
src/streamlink/plugins/youtube.py
@@ -4,7 +4,7 @@
4
import logging
5
import re
6
7
-from streamlink.compat import parse_qsl, is_py2
+from streamlink.compat import is_py2, parse_qsl, urlparse, urlunparse
8
from streamlink.plugin import Plugin, PluginError, PluginArguments, PluginArgument
9
from streamlink.plugin.api import validate, useragents
10
from streamlink.plugin.api.utils import itertags, parse_query
@@ -165,6 +165,10 @@ class YouTube(Plugin):
165
166
def __init__(self, url):
167
super(YouTube, self).__init__(url)
168
+ parsed = urlparse(self.url)
169
+ if parsed.netloc == 'gaming.youtube.com':
170
+ self.url = urlunparse(parsed._replace(netloc='www.youtube.com'))
171
+
172
self.author = None
173
self.title = None
174
self.video_id = None
0 commit comments