From 0e1d3f35680e0b90b50931b89e0db2496881a88f Mon Sep 17 00:00:00 2001 From: azzy9 <19675382+azzy9@users.noreply.github.com> Date: Fri, 1 Mar 2024 19:57:44 +0000 Subject: [PATCH] Add check for live stream in title --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 78404da..96c5863 100644 --- a/main.py +++ b/main.py @@ -306,8 +306,10 @@ def dir_list_create( data, cat, video_type='video', search = False, play=0 ): title = re.compile(r']+)?>(.*)', re.DOTALL|re.IGNORECASE).findall(video) link = re.compile(r'', re.DOTALL|re.IGNORECASE).findall(video) img = re.compile(r'([^\<]+)(\s*', re.DOTALL|re.IGNORECASE).findall(video) @@ -322,7 +324,7 @@ def dir_list_create( data, cat, video_type='video', search = False, play=0 ): #open get url and open player add_dir( video_title, BASE_URL + link[0], 4, images, '', cat, False, True, play, { 'name' : channel_link[0], 'subscribe': True } ) - + return amount elif video_type == 'cat_list':