fix(tubesync): patch yt-dlp options

These options disable continue.
This commit is contained in:
514fpv 2024-03-14 18:51:59 +08:00
parent 6383f4bc43
commit 1ec95fe714
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw

View file

@ -1,13 +1,14 @@
diff --git a/tubesync/sync/youtube.py b/tubesync/sync/youtube.py
index 4ac6e83..2915bf9 100644
index 4ac6e83..f0cf5b7 100644
--- a/tubesync/sync/youtube.py
+++ b/tubesync/sync/youtube.py
@@ -119,6 +119,8 @@ def download_media(url, media_format, extension, output_file, info_json,
@@ -119,6 +119,9 @@ def download_media(url, media_format, extension, output_file, info_json,
'writesubtitles': write_subtitles,
'writeautomaticsub': auto_subtitles,
'subtitleslangs': sub_langs.split(','),
+ 'fragment_retries': 65536,
+ 'skip_unavailable_fragments': False,
+ 'continue_dl': False,
}
sbopt = {