From 6a0f2cf3d4facd5755af3aead48d9f523e0120fc Mon Sep 17 00:00:00 2001 From: Andreas Demmelbauer Date: Tue, 1 Dec 2020 21:24:22 +0100 Subject: [PATCH] fix --- demotape.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/demotape.py b/demotape.py index 47f74e9..3f0c2e9 100644 --- a/demotape.py +++ b/demotape.py @@ -82,7 +82,7 @@ def my_ytdl_hook(d): def download_stream(channel): now = datetime.now() # current date and time - dest_dir = DISTRICT_PATH + '/' + channel['name'] +'/' + dest_dir = ROOT_PATH + '/' + channel['name'] +'/' dest_filename = now.strftime("%Y-%m-%d--%H.%M.%S") # create directory if it doesn't exist @@ -149,16 +149,16 @@ def main(): print('end main (this shouldn\'t happen!)') -main() +# main() -#test_channel = { -# 'name': 'Test Channel', -# 'url': 'https://1000338copo-app2749759488.r53.cdn.tv1.eu/1000518lf/1000338copo/live/app2749759488/w2928771075/live247.smil/playlist.m3u8' -# } +test_channel = { + 'name': 'Test Channel', + 'url': 'https://1000338copo-app2749759488.r53.cdn.tv1.eu/1000518lf/1000338copo/live/app2749759488/w2928771075/live247.smil/playlist.m3u8' + } -#download_stream(test_channel) +download_stream(test_channel)