mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 05:16:58 -05:00
17 lines
441 B
Python
17 lines
441 B
Python
import json
|
|
|
|
|
|
class Lineup_JSON():
|
|
lineup_json = None
|
|
|
|
def __init__(self, settings, origserv):
|
|
self.config = settings
|
|
self.origserv = origserv
|
|
|
|
def get_lineup_json(self, base_url, force_update=False):
|
|
if not self.lineup_json or force_update:
|
|
jsonlineup = self.origserv.get_station_list(base_url)
|
|
self.lineup_json = json.dumps(jsonlineup, indent=4)
|
|
|
|
return self.lineup_json
|