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

using -s -a option can lead to "indefinite" output #28120

Closed
1 of 2 tasks
emcodemall opened this issue Feb 8, 2021 · 7 comments
Closed
1 of 2 tasks

using -s -a option can lead to "indefinite" output #28120

emcodemall opened this issue Feb 8, 2021 · 7 comments
Labels

Comments

@emcodemall
Copy link

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

Verbose log

C:\Users\emcodem>"C:\dev\FFAStrans\FFAStrans\processors\FFmpeg\youtube-dl.exe" -v -s -a c:\temp\yt.txt
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-s', '-a', 'c:\temp\yt.txt']
[debug] Batch file urls: ['https://www.youtube.com/watch?v=iGh6ONUhyec&list=UUD-4g5w1h8xQpLaNS_ghU4g&index=10']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2021.02.04.1
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
[debug] Proxy map: {}
[youtube:tab] Downloading playlist UUD-4g5w1h8xQpLaNS_ghU4g - add --no-playlist to just download video iGh6ONUhyec
[youtube:tab] UUD-4g5w1h8xQpLaNS_ghU4g: Downloading webpage
[youtube:tab] UUD-4g5w1h8xQpLaNS_ghU4g: Downloading webpage
[download] Downloading playlist: Uploads from NewRetroWave
[youtube:tab] Downloading page 1
[youtube:tab] Downloading page 2
[youtube:tab] Downloading page 3
[youtube:tab] Downloading page 4
[youtube:tab] Downloading page 5
[youtube:tab] Downloading page 6
[youtube:tab] Downloading page 7
[youtube:tab] Downloading page 8

Description

Above will run forever. When specifying the input URL directly and therefore omitting -a we get the expected result

@dstftw
Copy link
Collaborator

dstftw commented Feb 8, 2021

It won't run forever, it will run until it browses all pages of this 2378 videos playlist.

@dstftw dstftw closed this as completed Feb 8, 2021
@dstftw dstftw added the invalid label Feb 8, 2021
@emcodemall
Copy link
Author

emcodemall commented Feb 8, 2021

Uhm ok but why does it make such a huge difference between providing the url on comandline VS using -a
Does -a imply that the specified index url parameter is ignored?

@dstftw
Copy link
Collaborator

dstftw commented Feb 8, 2021

It does not make any difference.

@emcodemall
Copy link
Author

Sorry, maybe i didnt make myself clear enough
This works:
"C:\dev\FFAStrans\FFAStrans\processors\FFmpeg\youtube-dl.exe" -v -s https://www.youtube.com/watch?v=iGh6ONUhyec&list=UUD-4g5w1h8xQpLaNS_ghU4g&index=10

While writint the exact url into a txt file an use -a option parses the whole playlist

@emcodemall
Copy link
Author

emcodemall commented Feb 8, 2021

Uff, i am sorry for opening an issue prematurely and ok i understand that the commandline ignores the & parameter and that i should have recognized that. But why the hell does &index=10 imply for youtueb-dl that it needs to download the full playlist while the same video plays in my browser regardless of the &index parmeter?
Is there some kind of usage guide for this?

@dstftw
Copy link
Collaborator

dstftw commented Feb 8, 2021

Read FAQ.

--no-playlist                        Download only the video, if the URL
                                     refers to a video and a playlist.
--yes-playlist                       Download the playlist, if the URL
                                     refers to a video and a playlist.

@ytdl-org ytdl-org locked and limited conversation to collaborators Feb 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants