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

Allow to override config values from the command line #1010

Open
ajimix opened this issue Jun 26, 2024 · 4 comments
Open

Allow to override config values from the command line #1010

ajimix opened this issue Jun 26, 2024 · 4 comments
Labels
feature request Request for a brand new feature

Comments

@ajimix
Copy link

ajimix commented Jun 26, 2024

I'm trying to override config working_directory when calling the command line but looks like it's not possible:

Trying like this:

ytdl-sub --config config.yaml --configuration.working_directory ".ytdl-sub-downloads-abcd" dl --tv --url "https://www.youtube.com/watch?v=abc1234"

Gives error: ytdl-sub: error: argument subparser: invalid choice: '.ytdl-sub-downloads-abcd' (choose from 'sub', 'dl', 'view')

Tried also:

ytdl-sub --config config.yaml dl --configuration.working_directory ".ytdl-sub-downloads-abcd" --tv --url "https://www.youtube.com/watch?v=abc1234"

That gives error: Validation error in cli-dl-b3683b3c: 'cli-dl-b3683b3c' contains the field 'configuration' which is not allowed. Allowed fields: _view, audio_extract, chapters, date_range, download, embed_thumbnail, file_convert, filter_exclude, filter_include, format, match_filters, music_tags, nfo_tags, output_directory_nfo_tags, output_options, overrides, preset, regex, split_by_chapters, subtitles, throttle_protection, video_tags, ytdl_options

@jmbannon jmbannon added the feature request Request for a brand new feature label Jul 6, 2024
@jmbannon
Copy link
Owner

What is the end-goal of overriding the working dir?

@ajimix
Copy link
Author

ajimix commented Sep 21, 2024

@jmbannon I’m trying to download several individual videos on demand, which can happen in parallel. I’m using an API built on top of ytdl-sub.

So each new instance of ytdl-sub needs a different working directory

@jmbannon
Copy link
Owner

Got it. Perhaps we can make it so if no working directory is specified, it will use a random temp folder each time

@ajimix
Copy link
Author

ajimix commented Sep 22, 2024

@jmbannon yes that would be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request for a brand new feature
Projects
None yet
Development

No branches or pull requests

2 participants