test
This commit is contained in:
parent
0741dd84f9
commit
867a92f7ba
@ -17,6 +17,8 @@ class Plugin_OBJ():
|
|||||||
|
|
||||||
def get_channels(self):
|
def get_channels(self):
|
||||||
|
|
||||||
|
channel_list = []
|
||||||
|
|
||||||
channels_url = "https://tv.jsrdn.com/tv_v5/getfeed.php"
|
channels_url = "https://tv.jsrdn.com/tv_v5/getfeed.php"
|
||||||
payload = {}
|
payload = {}
|
||||||
url_headers = {
|
url_headers = {
|
||||||
@ -30,13 +32,16 @@ class Plugin_OBJ():
|
|||||||
'referer': 'https://www.distro.tv/live',
|
'referer': 'https://www.distro.tv/live',
|
||||||
'accept-language': 'en-US,en;q=0.9'
|
'accept-language': 'en-US,en;q=0.9'
|
||||||
}
|
}
|
||||||
"""
|
# chan_req = self.plugin_utils.web.session.get(channels_url, headers=url_headers, data=payload)
|
||||||
chan_req = self.plugin_utils.web.session.get(channels_url, headers=url_headers, data=payload)
|
chan_req = self.plugin_utils.web.session.get(channels_url)
|
||||||
data = json.loads(chan_req.content)
|
data = json.loads(chan_req.content)
|
||||||
print(data)
|
print(data)
|
||||||
"""
|
|
||||||
|
|
||||||
channel_list = []
|
data = chan_req.content.json()
|
||||||
|
print(data)
|
||||||
|
|
||||||
|
return channel_list
|
||||||
|
|
||||||
response = requests.request("GET", channels_url, headers=url_headers, data=payload).content
|
response = requests.request("GET", channels_url, headers=url_headers, data=payload).content
|
||||||
data = json.loads(response)
|
data = json.loads(response)
|
||||||
print(data)
|
print(data)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user