package(tubesync): patch yt-dlp options to ensure integrity
This commit is contained in:
parent
9f055cbe9b
commit
1067c27fad
2 changed files with 14 additions and 0 deletions
|
@ -55,6 +55,7 @@
|
|||
./gunicorn-env.patch
|
||||
./state-dir-env.patch
|
||||
./database-local-socket.patch
|
||||
./ensure-fragments.patch
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
13
package/tubesync/ensure-fragments.patch
Normal file
13
package/tubesync/ensure-fragments.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
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 = {
|
Loading…
Add table
Add a link
Reference in a new issue