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

Use Python String Formatting Operations in the Download Archive option #16386

Closed
Slider-Whistle opened this issue May 6, 2018 · 1 comment
Closed

Comments

@Slider-Whistle
Copy link

@Slider-Whistle Slider-Whistle commented May 6, 2018

  • I've verified and I assure that I'm running youtube-dl 2018.05.01

  • At least skimmed through the README, most notably the FAQ and BUGS sections

  • Searched the bugtracker for similar issues including closed ones

  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

  • Feature request (request for a new functionality)


[debug] System config: []
[debug] User config: ['--netrc', '-o', '%userprofile%/Youtube Archives/%(uploade
r)s/%(title)s - %(upload_date)s.%(ext)s', '--write-info-json', '--write-thumbnai
l', '--download-archive', 'C:\\Users\\N_Boy\\Youtube Archives\\%(uploader)s\\LIS
T', '--write-description']
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/user/ClassicsOfGame']
[debug] Encodings: locale cp932, fs mbcs, out cp437, pref cp932
[debug] youtube-dl version 2018.05.01
[debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 4.0, ffprobe N-86848-g03a9e6f
[debug] Proxy map: {}

Forgive me if I show any lack of knowledge here, I'm not too experienced with this stuff.
I'd like for lists generated by download-archive to work by each user downloaded from, but as far as I can tell, it doesn't support any variable filenames/directories, or at least not the same variables covered by the "output" option. At the moment, I'm trying to make the option use generic files called "LIST" in the directory of the current video's uploader, but this doesn't work since the option doesn't recognise %(uploader). In my particular case, I've recently changed my file naming scheme, so if I tried to download new videos from a given channel, I couldn't just use download-archive to avoid duplicates.

As a working solution, I could just set the download-archive option to work from the current directory and cd whenever I'm downloading from a new user, but this would be inconvenient in cases where you're not setting out to archive an entire channel.

People might disagree over the sort of behaviour I'm asking for, so if there's some other kind of solution, I'd be happy to use that.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 6, 2018

@dstftw dstftw closed this May 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.