@@ -110,7 +110,7 @@ def get_videolibrary_support():
|
|||||||
|
|
||||||
|
|
||||||
def get_channel_url(findhostMethod=None, name=None, forceFindhost=False):
|
def get_channel_url(findhostMethod=None, name=None, forceFindhost=False):
|
||||||
from core import jsontools, httptools
|
from core import jsontools
|
||||||
import inspect
|
import inspect
|
||||||
|
|
||||||
LOCAL_FILE = os.path.join(get_runtime_path(), "channels.json")
|
LOCAL_FILE = os.path.join(get_runtime_path(), "channels.json")
|
||||||
@@ -129,8 +129,7 @@ def get_channel_url(findhostMethod=None, name=None, forceFindhost=False):
|
|||||||
jsontools.update_node(url, name, 'url')
|
jsontools.update_node(url, name, 'url')
|
||||||
return url
|
return url
|
||||||
else:
|
else:
|
||||||
url = httptools.downloadpage(channels_data['direct'][name], follow_redirects=True, only_headers=True).url
|
return channels_data['direct'][name]
|
||||||
return url
|
|
||||||
|
|
||||||
|
|
||||||
def get_system_platform():
|
def get_system_platform():
|
||||||
|
|||||||
Reference in New Issue
Block a user