From 4341c81c0597c8c71798a189b964df3884c6e966 Mon Sep 17 00:00:00 2001 From: 514fpv Date: Thu, 21 Mar 2024 09:06:23 +0800 Subject: [PATCH] fix(tubesync): patch yt-dlp options These options print newlines as progress. --- package/tubesync/ensure-fragments.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/tubesync/ensure-fragments.patch b/package/tubesync/ensure-fragments.patch index 42c38673..f25534ea 100644 --- a/package/tubesync/ensure-fragments.patch +++ b/package/tubesync/ensure-fragments.patch @@ -1,11 +1,12 @@ diff --git a/tubesync/sync/youtube.py b/tubesync/sync/youtube.py -index 4ac6e83..f0cf5b7 100644 +index 4ac6e83..192b031 100644 --- a/tubesync/sync/youtube.py +++ b/tubesync/sync/youtube.py -@@ -119,6 +119,9 @@ def download_media(url, media_format, extension, output_file, info_json, +@@ -119,6 +119,10 @@ def download_media(url, media_format, extension, output_file, info_json, 'writesubtitles': write_subtitles, 'writeautomaticsub': auto_subtitles, 'subtitleslangs': sub_langs.split(','), ++ 'progress_with_newline': True, + 'fragment_retries': 65536, + 'skip_unavailable_fragments': False, + 'continue_dl': False,