Download only filenames from YT

Hello. Is there a way to download only filenames from youtube's playlists (or videos with zero size)? i use Dopus for extra quick search in filenames from YT's playlists, creating new empty text files with video names from playlists. the problem is that with a large number of files in the playlist (800-1000), it is very difficult to get the names manually.

yt-dlp -i --get-filename --skip-download

Outputs a list. You need yt-dlp. I used Chocolatey to install it. The latest version has an unresolved malware detection, so I used

choco install yt-dlp --version=2023.03.04


Oh! Thanx a loooot! this works great for me:

yt-dlp.exe -i --get-filename --skip-download {clip} >C:\\1.txt

how was detected a malware? virustotal says nothing... 0/71

am i able to number names from playlist while downloading?

It's probably a false positive, but it's not resolved yet: VirusTotal

The output template works on the list. You probably want:

yt-dlp -i --get-filename --skip-download -o "%(playlist_index)s - %(title)s"

1 Like

sorry, but it doesn't work for me(( version=2023.03.04

"C:\Program Files\yt-dlp.exe" -i --get-filename --skip-download -o "%(playlist_index)s - %(title)s" {clip} 

when a playlist is in clipboard i got
when single video - got this :slight_smile: (title)s
'list' is not recognized as an internal or external command,
operable program or batch file.
'index' is not recognized as an internal or external command,
operable program or batch file.
'pp' is not recognized as an internal or external command,
operable program or batch file.

i have downloaded _x64 version, not _x86. last release 19 hours ago

Not sure what's wrong.

yt-dlp -i --get-filename --skip-download -o "%(playlist_index)s - %(title)s"
WARNING: [youtube:tab] YouTube said: INFO - Unavailable videos are hidden
001 - Rhysonic Live in Wellington, April 2019
002 - Making of "The Prodigy - Voodoo People" in Ableton by Jim Pavloff
003 - Can I record all my gear at the same time? Yes!
004 - Sequencing 1983 style with Jupiter-8, LinnDrum, and MSQ-700
005 - Introducing the NYX v2 Analog Synthesizer from Dreadbox
006 - Top 3 from Moogfest 2019  ⧸⧸ New, Old-ish, and... Pretty?
007 - Full Live Stream || WED 10 April 2019
008 - OP-Z USB MIDI Adventures (firmware 1.1.17, Dec 2018)
009 - Bastle Dude Mixer | Demo⧸Overview + 2 Kastle Synths!

it works wtih Standard function (opus or external), not with MS-DOS batch function. may be problems with " " ??
Dear, Leo, how to fix this problem with quotes in syntax (to make use MS-DOS batch) or prevent autoclosing window with Standard Function? with Standard Function >C:\\1.txt doesn't work and window autocloses, so i even can't copy results.

this syntax works with cmd.exe, not with Opus's MS-DOS batch

P.S. there's a solution from Alexander

Thank you, krisjohn, for your help.
I just found much faster syntax for getting only filenames:

"C:\Program Files\yt-dlp.exe" -i  --get-filename --flat-playlist  -o "%%(playlist_index)s %%(title)s" {clip}
1 Like

Do you need the @admin line there? A tool for saving a list of names from a website wouldn’t normally require administrator rights. (Unless it’s saving the file to a folder that needs them.)

yes, my root folder needs this, thank you