From 5379207af6099b14b84ecf0917196d6ba01042d7 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sat, 6 May 2023 18:48:35 -0600 Subject: [PATCH] fix unavailable video crash --- process/threads.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/process/threads.py b/process/threads.py index 6edbf58..125f7f1 100644 --- a/process/threads.py +++ b/process/threads.py @@ -90,10 +90,8 @@ def download_video(args) -> dict: output_dict['video_critical_err_msg_short'].append('unavailable.') return output_dict - # Clean the strings of forign languages + # Clean of forign languages video['title'] = unidecode(video['title']) - video['uploader'] = unidecode(video['uploader']) - # Get a bar locked = False if len(kwargs['bars']): @@ -123,7 +121,7 @@ def download_video(args) -> dict: # We created a new dict video['title'] = unidecode(video['title']) - video['uploader'] = unidecode(video['uploader']) + video['uploader'] = unidecode(video['uploader']) # now the additional info is present since we fetched it video_filename = remove_special_chars_linux(ydl.get_output_templ(video_id=video['id'], title=video['title'], uploader=video['uploader'], uploader_id=video['uploader_id'], include_ext=False), special_chars=['/'])