question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use "--abort-on-unavailable-fragment" option inside a python script?

See original GitHub issue

DO 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:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Ghostfreak803commented, Aug 29, 2022

{'skip_unavailable_fragments': False} to do the same thing as --abort-on-unavailable-fragment

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.

0reactions
SkyzcYoucommented, Sep 13, 2022

{'skip_unavailable_fragments': False} to do the same thing as --abort-on-unavailable-fragment

This is useful

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found