1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 05:46:58 -05:00

repair hdhr

This commit is contained in:
deathbybandaid 2021-01-29 16:21:02 -05:00
parent a7c854bcd4
commit 5f4092bdc8
7 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@ import urllib.parse
class Auto(): class Auto():
endpoints = ['/hdhr/auto/<channel>'] endpoints = ['/auto/<channel>', '/hdhr/auto/<channel>']
endpoint_name = "hdhr_auto" endpoint_name = "hdhr_auto"
def __init__(self, fhdhr): def __init__(self, fhdhr):

View File

@ -3,7 +3,7 @@ import json
class Discover_JSON(): class Discover_JSON():
endpoints = ["/hdhr/discover.json"] endpoints = ["/discover.json", "/hdhr/discover.json"]
endpoint_name = "hdhr_discover_json" endpoint_name = "hdhr_discover_json"
def __init__(self, fhdhr): def __init__(self, fhdhr):

View File

@ -5,7 +5,7 @@ from fHDHR.tools import channel_sort
class Lineup_JSON(): class Lineup_JSON():
endpoints = ["/hdhr/lineup.json"] endpoints = ["/lineup.json", "/hdhr/lineup.json"]
endpoint_name = "hdhr_lineup_json" endpoint_name = "hdhr_lineup_json"
def __init__(self, fhdhr): def __init__(self, fhdhr):
@ -42,7 +42,7 @@ class Lineup_JSON():
'GuideNumber': channel_obj.number, 'GuideNumber': channel_obj.number,
'GuideName': channel_obj.dict['name'], 'GuideName': channel_obj.dict['name'],
'Tags': ",".join(channel_obj.dict['tags']), 'Tags': ",".join(channel_obj.dict['tags']),
'URL': '/hdhr/auto/v' % channel_obj.number, 'URL': '/hdhr/auto/v%s' % channel_obj.number,
'HD': channel_obj.dict["HD"], 'HD': channel_obj.dict["HD"],
"Favorite": channel_obj.dict["favorite"], "Favorite": channel_obj.dict["favorite"],
} }

View File

@ -4,7 +4,7 @@ from fHDHR.exceptions import TunerError
class Lineup_Post(): class Lineup_Post():
endpoints = ["/hdhr/lineup.post"] endpoints = ["/lineup.post", "/hdhr/lineup.post"]
endpoint_name = "hdhr_lineup_post" endpoint_name = "hdhr_lineup_post"
endpoint_methods = ["POST"] endpoint_methods = ["POST"]

View File

@ -3,7 +3,7 @@ import json
class Lineup_Status_JSON(): class Lineup_Status_JSON():
endpoints = ["/hdhr/lineup_status.json"] endpoints = ["/lineup_status.json", "/hdhr/lineup_status.json"]
endpoint_name = "hdhr_lineup_status_json" endpoint_name = "hdhr_lineup_status_json"
def __init__(self, fhdhr): def __init__(self, fhdhr):

View File

@ -6,7 +6,7 @@ from fHDHR.tools import channel_sort, sub_el
class Lineup_XML(): class Lineup_XML():
endpoints = ["/hdhr/lineup.xml"] endpoints = ["/lineup.xml", "/hdhr/lineup.xml"]
endpoint_name = "hdhr_lineup_xml" endpoint_name = "hdhr_lineup_xml"
def __init__(self, fhdhr): def __init__(self, fhdhr):
@ -43,7 +43,7 @@ class Lineup_XML():
'GuideNumber': channel_obj.number, 'GuideNumber': channel_obj.number,
'GuideName': channel_obj.dict['name'], 'GuideName': channel_obj.dict['name'],
'Tags': ",".join(channel_obj.dict['tags']), 'Tags': ",".join(channel_obj.dict['tags']),
'URL': '/hdhr/auto/v' % channel_obj.number, 'URL': '/hdhr/auto/v%s' % channel_obj.number,
'HD': channel_obj.dict["HD"], 'HD': channel_obj.dict["HD"],
"Favorite": channel_obj.dict["favorite"], "Favorite": channel_obj.dict["favorite"],
} }

View File

@ -3,7 +3,7 @@ import urllib.parse
class Tuner(): class Tuner():
endpoints = ['/hdhr/tuner<tuner_number>/<channel>'] endpoints = ['/tuner<tuner_number>/<channel>', '/hdhr/tuner<tuner_number>/<channel>']
endpoint_name = "hdhr_tuner" endpoint_name = "hdhr_tuner"
def __init__(self, fhdhr): def __init__(self, fhdhr):