How to use "--abort-on-unavailable-fragment" option inside a python script?
See original GitHub issueDO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
- I understand that I will be blocked if I remove or skip any mandatory* field
Checklist
- I’m asking a question and not reporting a bug or requesting a feature
- I’ve looked through the README
- I’ve verified that I’m running yt-dlp version 2022.08.19 (update instructions) or later (specify commit)
- I’ve searched the bugtracker for similar questions including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
Please make sure the question is worded well enough to be understood
Is there a way to use “--abort-on-unavailable-fragment
” option inside a python script (using module yt_dlp
)? I know that YoutubeDL() uses a dictionary of options but I don’t know how to make --abort-on-unavailable-fragment
into a key value pair.
Provide verbose output that clearly demonstrates the problem
- Run your yt-dlp command with -vU flag added (
yt-dlp -vU <your command line>
) - Copy the WHOLE output (starting with
[debug] Command-line config
) and insert it below
Complete Verbose Output
No response
Issue Analytics
- State:
- Created a year ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Python Tutorial - Getting Started with Python and Python Basics
First Python Script - hello.py. Use a programming text editor to write the following Python script and save as " hello.py " in...
Read more >How do I abort the execution of a Python script? - Stack Overflow
To exit a script you can use, import sys sys.exit(). You can also provide an exit status value, usually an integer. import sys...
Read more >GetMediaForFragmentList - Amazon Kinesis Video Streams
Gets media for a list of fragments (specified by fragment number) from the archived data in an Amazon Kinesis video stream.
Read more >ABORTION - OHCHR
Human rights bodies have provided clear guidance on the need to decriminalize abortion. Ensuring access to these services in accordance with human rights....
Read more >HEALTH AND SAFETY CODE CHAPTER 171. ABORTION
(a) If an abortion is performed or induced on a pregnant woman because of a medical emergency, the physician who performs or induces...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Although I’m unable to verify your solution right now (videos are downloading fine without skipped fragments), it seems logical enough (and I guess that’s what @pukkandan was hinting at in the earlier comment), so I guess I’ll close the issue. Thanks.
This is useful