File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
import logging
2
2
import re
3
3
4
+ from streamlink .compat import parse_qsl , urlparse
4
5
from streamlink .plugin import Plugin
5
- from streamlink .plugin .api import validate
6
+ from streamlink .plugin .api import useragents
6
7
from streamlink .plugin .api .utils import itertags
7
8
from streamlink .stream import HLSStream , HTTPStream
8
9
@@ -37,8 +38,12 @@ def _get_stream_info_url(self, url):
37
38
return "https:{domain}/iframe/datalive/id/{id}/sid/{sid}" .format (** data )
38
39
else :
39
40
return "https:{domain}/iframe/datavideo/id/{id}/sid/{sid}" .format (** data )
41
+ else :
42
+ args = dict (parse_qsl (urlparse (url ).query ))
43
+ return "https://player.vgtrk.com/iframe/datalive/id/{id}/sid/{sid}" .format (** args )
40
44
41
45
def _get_streams (self ):
46
+ self .session .http .headers .update ({"User-Agent" : useragents .FIREFOX })
42
47
iframe_url = self ._get_iframe_url (self .url )
43
48
44
49
if iframe_url :
@@ -73,9 +78,4 @@ def _get_streams(self):
73
78
log .error ("Could not find video iframe" )
74
79
75
80
76
-
77
-
78
-
79
-
80
-
81
81
__plugin__ = LiveRussia
You can’t perform that action at this time.
0 commit comments