use epg global variable at process_running_channel
This commit is contained in:
parent
13aeeb36a4
commit
189a9e81a9
1 changed files with 2 additions and 2 deletions
|
@ -52,6 +52,7 @@ def get_core_process_details(client, process_id):
|
||||||
|
|
||||||
# Process a running channel
|
# Process a running channel
|
||||||
def process_running_channel(database, scheduler, stream_id, stream_name, stream_description, stream_hls_url):
|
def process_running_channel(database, scheduler, stream_id, stream_name, stream_description, stream_hls_url):
|
||||||
|
global epg
|
||||||
if stream_id in database:
|
if stream_id in database:
|
||||||
# Skip learned channels
|
# Skip learned channels
|
||||||
return
|
return
|
||||||
|
@ -167,8 +168,7 @@ def exec_stream(stream_id, stream_name, stream_prio, stream_hls_url):
|
||||||
# Datarhei CORE API sync
|
# Datarhei CORE API sync
|
||||||
def core_api_sync():
|
def core_api_sync():
|
||||||
global database
|
global database
|
||||||
global epg
|
|
||||||
|
|
||||||
new_ids = []
|
new_ids = []
|
||||||
try:
|
try:
|
||||||
process_list = client.v3_process_get_list()
|
process_list = client.v3_process_get_list()
|
||||||
|
|
Loading…
Add table
Reference in a new issue