strip https in vtuner station urls
This commit is contained in:
parent
e8e5451dc7
commit
83ad5733ed
1 changed files with 7 additions and 1 deletions
|
@ -7,6 +7,12 @@ def get_init_token():
|
|||
return XML_HEADER + '<EncryptedToken>0000000000000000</EncryptedToken>'
|
||||
|
||||
|
||||
def strip_https(url):
|
||||
if url.startswith('https://'):
|
||||
url = 'http://' + url[8:]
|
||||
return url
|
||||
|
||||
|
||||
class Page:
|
||||
def __init__(self):
|
||||
self.items = []
|
||||
|
@ -88,7 +94,7 @@ class Station:
|
|||
self.uid = uid
|
||||
self.name = name
|
||||
self.description = description
|
||||
self.url = url
|
||||
self.url = strip_https(url)
|
||||
self.logo = logo
|
||||
self.genre = genre
|
||||
self.location = location
|
||||
|
|
Loading…
Add table
Reference in a new issue