Have a way to cancel the download programatically #6488

Open
opened 2026-02-21 03:17:45 -05:00 by deekerman · 2 comments
Owner

Originally created by @facundobatista on GitHub (Dec 26, 2015).

this way, it could be done the following:

ydl = youtube_dl.YoutubeDL(conf)
ydl.download([self.url])

at some point in the middle, from other thread:

ydl.cancel()

and it would stop downloading.

Originally created by @facundobatista on GitHub (Dec 26, 2015). this way, it could be done the following: ``` ydl = youtube_dl.YoutubeDL(conf) ydl.download([self.url]) ``` at some point in the middle, from other thread: ``` ydl.cancel() ``` and it would stop downloading.
Author
Owner

@santicalvo commented on GitHub (Jan 9, 2017):

I'd love to see this feature! Does anyone plan to implement it?

@santicalvo commented on GitHub (Jan 9, 2017): I'd love to see this feature! Does anyone plan to implement it?
Author
Owner

@andre487 commented on GitHub (Jun 5, 2021):

I'd like to see this feature too. When using youtube-dl on server side it should be way to cancel download by timeout or other condition

@andre487 commented on GitHub (Jun 5, 2021): I'd like to see this feature too. When using youtube-dl on server side it should be way to cancel download by timeout or other condition
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#6488
No description provided.