Downloading Video from playlist and assigning a name.... #965

Closed
opened 2026-02-20 22:02:59 -05:00 by deekerman · 1 comment
Owner

Originally created by @RingoTheDog on GitHub (Aug 12, 2013).

When I try to pull a specific video from a play list (ie URL contains &list=) this works correctly if I do NOT assign an output file name (ie -o) but fails when an output file name is included.

EXAMPLE1: (works with no assigned name)
C:\youtube-dl.py -v http://www.youtube.com/watch?v=OOOGuKa_HLc&list=TLn6fFfNvb6Ik
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.youtube.com/watch?v=OOOGuKa_HLc']
[debug] youtube-dl version 2013.08.09
[debug] Python version 2.7.1 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[youtube] Setting language
[youtube] OOOGuKa_HLc: Downloading video webpage
[youtube] OOOGuKa_HLc: Downloading video info webpage
[youtube] OOOGuKa_HLc: Extracting video information
[download] Destination: Appalachian Mountains _ New Brunswick, Canada-OOOGuKa_HL
c.mp4
[download] 100.0% of 3.24MiB at 2.66MiB/s ETA 00:0002
'list' is not recognized as an internal or external command,
operable program or batch file.

EXAMPLE2: (fails when assigning output file name)
C:\youtube-dl.py -v "http://www.youtube.com/watch?v=OOOGuKa_HLc&l
ist=TLn6fFfNvb6Ik" -o "C:\TESTVIZ"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.youtube.com/watch?v=OOOGuKa_HLc&list=TLn6fFfNvb6Ik', '-o', 'C:\TESTVIZ']
[debug] youtube-dl version 2013.08.09
[debug] Python version 2.7.1 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[youtube:playlist] TLn6fFfNvb6Ik: Downloading page #1
[download] Downloading playlist: Untitled list
[youtube:playlist] playlist 'Untitled list': Collected 0 video ids (downloading
0 of them)

Thanks in advance...
Ringo

Originally created by @RingoTheDog on GitHub (Aug 12, 2013). When I try to pull a specific video from a play list (ie URL contains &list=) this works correctly if I do NOT assign an output file name (ie -o) but fails when an output file name is included. EXAMPLE1: (works with no assigned name) C:\youtube-dl.py -v http://www.youtube.com/watch?v=OOOGuKa_HLc&list=TLn6fFfNvb6Ik [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['-v', 'http://www.youtube.com/watch?v=OOOGuKa_HLc'] [debug] youtube-dl version 2013.08.09 [debug] Python version 2.7.1 - Windows-7-6.1.7601-SP1 [debug] Proxy map: {} [youtube] Setting language [youtube] OOOGuKa_HLc: Downloading video webpage [youtube] OOOGuKa_HLc: Downloading video info webpage [youtube] OOOGuKa_HLc: Extracting video information [download] Destination: Appalachian Mountains _ New Brunswick, Canada-OOOGuKa_HL c.mp4 [download] 100.0% of 3.24MiB at 2.66MiB/s ETA 00:0002 'list' is not recognized as an internal or external command, operable program or batch file. EXAMPLE2: (fails when assigning output file name) C:\youtube-dl.py -v "http://www.youtube.com/watch?v=OOOGuKa_HLc&l ist=TLn6fFfNvb6Ik" -o "C:\TESTVIZ" [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['-v', 'http://www.youtube.com/watch?v=OOOGuKa_HLc&list=TLn6fFfNvb6Ik', '-o', 'C:\TESTVIZ'] [debug] youtube-dl version 2013.08.09 [debug] Python version 2.7.1 - Windows-7-6.1.7601-SP1 [debug] Proxy map: {} [youtube:playlist] TLn6fFfNvb6Ik: Downloading page #1 [download] Downloading playlist: Untitled list [youtube:playlist] playlist 'Untitled list': Collected 0 video ids (downloading 0 of them) Thanks in advance... Ringo
Author
Owner

@jaimeMF commented on GitHub (Aug 21, 2013):

The actual reason the first case doesn't fail is that you are not escaping then & and youtube-dl gets http://www.youtube.com/watch?v=OOOGuKa_HLc, while it gets http://www.youtube.com/watch?v=OOOGuKa_HLc&list=TLn6fFfNvb6Ik in the second case, you have to write "http://www.youtube.com/watch?v=OOOGuKa_HLc&list=TLn6fFfNvb6Ik".
The problem in the second case is that it tries to download the playlist instead of the video (see #755 for more info), using youtube-dl http://www.youtube.com/watch?v=OOOGuKa_HLc will work.

@jaimeMF commented on GitHub (Aug 21, 2013): The actual reason the first case doesn't fail is that you are not escaping then `&` and youtube-dl gets http://www.youtube.com/watch?v=OOOGuKa_HLc, while it gets http://www.youtube.com/watch?v=OOOGuKa_HLc&list=TLn6fFfNvb6Ik in the second case, you have to write `"http://www.youtube.com/watch?v=OOOGuKa_HLc&list=TLn6fFfNvb6Ik"`. The problem in the second case is that it tries to download the playlist instead of the video (see #755 for more info), using `youtube-dl http://www.youtube.com/watch?v=OOOGuKa_HLc` will work.
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#965
No description provided.