Count --max-downloads only if the file actually is downloaded #1834

Closed
opened 2026-02-21 00:07:21 -05:00 by deekerman · 2 comments
Owner

Originally created by @davidhedlund on GitHub (Feb 8, 2014).

youtube-dl --version
2014.02.08

Etnica - Floating Universe
[youtube:search] query "Etnica - Floating Universe": Downloading page 1
[download] Downloading playlist: Etnica - Floating Universe
[youtube:search] playlist Etnica - Floating Universe: Collected 10 video ids (downloading 10 of them)
[download] Downloading video #1 of 10
[youtube] Setting language
[youtube] m34r0BLy5YU: Downloading webpage
[youtube] m34r0BLy5YU: Downloading video info webpage
[youtube] m34r0BLy5YU: Extracting video information
ERROR: unable to download video data: HTTP Error 410: Gone
[download] Downloading video #2 of 10
[youtube] V0mRSz6hXAA: Downloading webpage
[youtube] V0mRSz6hXAA: Downloading video info webpage
[youtube] V0mRSz6hXAA: Extracting video information
[info] Maximum number of downloaded files reached.
--max-download limit reached, aborting.

Originally created by @davidhedlund on GitHub (Feb 8, 2014). youtube-dl --version 2014.02.08 Etnica - Floating Universe [youtube:search] query "Etnica - Floating Universe": Downloading page 1 [download] Downloading playlist: Etnica - Floating Universe [youtube:search] playlist Etnica - Floating Universe: Collected 10 video ids (downloading 10 of them) [download] Downloading video #1 of 10 [youtube] Setting language [youtube] m34r0BLy5YU: Downloading webpage [youtube] m34r0BLy5YU: Downloading video info webpage [youtube] m34r0BLy5YU: Extracting video information ERROR: unable to download video data: HTTP Error 410: Gone [download] Downloading video #2 of 10 [youtube] V0mRSz6hXAA: Downloading webpage [youtube] V0mRSz6hXAA: Downloading video info webpage [youtube] V0mRSz6hXAA: Extracting video information [info] Maximum number of downloaded files reached. --max-download limit reached, aborting.
deekerman 2026-02-21 00:07:21 -05:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@arrabal commented on GitHub (Dec 17, 2015):

I can confirm this is happening. For instance, if I try to download formats until I find a video smaller than 50Mb, I will use -f X,Y,Z,... --max-filesize 50MB --max-dowloads 1
If X is not downloaded because it is >50MB, it ends with:
[info] Maximum number of downloaded files reached.
--max-download limit reached, aborting.

@arrabal commented on GitHub (Dec 17, 2015): I can confirm this is happening. For instance, if I try to download formats until I find a video smaller than 50Mb, I will use -f X,Y,Z,... --max-filesize 50MB --max-dowloads 1 If X is not downloaded because it is >50MB, it ends with: [info] Maximum number of downloaded files reached. --max-download limit reached, aborting.
Author
Owner

@dstftw commented on GitHub (May 8, 2017):

Duplicate of #1686.

@dstftw commented on GitHub (May 8, 2017): Duplicate of #1686.
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#1834
No description provided.