Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--max-size no longer works #22133

Open
triplesixman opened this issue Aug 17, 2019 · 4 comments
Open

--max-size no longer works #22133

triplesixman opened this issue Aug 17, 2019 · 4 comments

Comments

@triplesixman
Copy link

Checklist

  • [* ] I'm reporting a broken site support issue
  • [* ] I've verified that I'm running youtube-dl version 2019.08.13
  • [* ] I've checked that all provided URLs are alive and playable in a browser
  • [ *] I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • [* ] I've searched the bugtracker for similar bug reports including closed ones
  • [ *] I've read bugs section in FAQ

Verbose log

:~/test# youtube-dl --max-filesize 20m https://www.youtube.com/watch?v=h2zkV-l_TbY
[youtube] h2zkV-l_TbY: Downloading webpage
[youtube] h2zkV-l_TbY: Downloading video info webpage
[download] Destination: ☕ Restaurant Ambience • 10H Busy Coffee Shop Background Noise-h2zkV-l_TbY.f313.webm
[download]   0.2% of 5.55GiB at  5.91MiB/s ETA 15:59^C
ERROR: Interrupted by user

Description

Hello,

I notice that the "--max-size" function no longer works on youtube-dl updated.

@chuckn408
Copy link

works for me:::

youtube-dl --max-filesize 20m https://www.youtube.com/watch?v=h2zkV-l_TbY
[youtube] h2zkV-l_TbY: Downloading webpage
[youtube] h2zkV-l_TbY: Downloading video info webpage
WARNING: Unable to extract video title
[download] Destination: _-h2zkV-l_TbY.f313.webm
[download] File is larger than max-filesize (30690430 bytes > 20971520 bytes). Aborting.
[download] Destination: _-h2zkV-l_TbY.f251.webm
[download] File is larger than max-filesize (30429877 bytes > 20971520 bytes). Aborting.

Did you cancel it too prematurely?

@triplesixman
Copy link
Author

Nope. It must have been fixed during a recent update, it works now. :)

@ohhai
Copy link

ohhai commented Feb 15, 2020

Sorry for the example, but it does not work everywhere, at least:

$ /usr/local/bin/youtube-dl --max-filesize 1m https://www.pornhub.com/view_video.php?viewkey=ph5e272646bddb8
[PornHub] ph5e272646bddb8: Downloading pc webpage
[PornHub] ph5e272646bddb8: Downloading m3u8 information
[PornHub] ph5e272646bddb8: Downloading m3u8 information
[PornHub] ph5e272646bddb8: Downloading m3u8 information
[PornHub] ph5e272646bddb8: Downloading m3u8 information
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 266
[download] Destination: Mom's secret night life - Crystal Rush-ph5e272646bddb8.mp4
[download]   1.9% of ~94.33MiB at 804.45KiB/s ETA 03:35^C
ERROR: Interrupted by user

Version:

[debug] youtube-dl version 2020.01.24
[debug] Python version 3.7.6 (CPython) - Linux-5.4.17-200.fc31.x86_64-x86_64-with-fedora-31-Thirty_One
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, phantomjs 2.1.1

@marczz
Copy link

marczz commented Apr 20, 2020

With youtube-dl version 2020.03.24 it does not work even with the youtube-dl test video:

$ youtube-dl  --max-filesize 1M --restrict-filename https://www.youtube.com/watch?v=BaW_jenozKc
[youtube] BaW_jenozKc: Downloading webpage
[download] File is larger than max-filesize (2208750 bytes > 1048576 bytes). Aborting.
[download] Destination: youtube-dl_test_video_a-BaW_jenozKc.f140.m4a
[download] 100% of 154.06KiB in 00:00

But by using a format it is ok:

$ youtube-dl  -f "[filesize < 1M]" --restrict-filename https://www.youtube.com/watch?v=BaW_jenozKc
[youtube] BaW_jenozKc: Downloading webpage
[download] Destination: youtube-dl_test_video_a-BaW_jenozKc.mp4
[download] 100% of 354.29KiB in 00:01

Version:

[debug] youtube-dl version 2020.03.24
[debug] Python version 3.7.3 (CPython) - Linux-4.19.0-8-amd64-x86_64-with-debian-10.3
[debug] exe versions: ffmpeg 4.1.4-1, ffprobe 4.1.4-1, phantomjs 2.1.1, rtmpdump 2.4
[debug] Default format spec: bestvideo+bestaudio/best

@ytdl-org ytdl-org deleted a comment from walkman99 Jun 8, 2020
@ytdl-org ytdl-org locked and limited conversation to collaborators Jun 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants