nixos/package/tubesync/ensure-fragments.patch
514fpv b5807f39f5
fix(tubesync): patch yt-dlp options
These new options ensure integrity.
2024-03-14 10:06:54 +08:00

14 lines
499 B
Diff

diff --git a/tubesync/sync/youtube.py b/tubesync/sync/youtube.py
index 4ac6e83..2915bf9 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,
'writesubtitles': write_subtitles,
'writeautomaticsub': auto_subtitles,
'subtitleslangs': sub_langs.split(','),
+ 'fragment_retries': 65536,
+ 'skip_unavailable_fragments': False,
}
sbopt = {