crunchy-labs / crunchy-cli

👇 Command-line downloader for Crunchyroll
MIT License
606 stars 63 forks source link

Override default configuration with a file #245

Closed kennedy closed 9 months ago

kennedy commented 1 year ago

Is your feature request related to a problem? Please describe.

When using a media organizer (i.e tinymediamanager), its best to organize files in {series_name}/Season{season_number}/S{season_number}E{relative_episode_number} - {title}.mp4. However, the default configuration is {title}.mp4. I would either have to write that template out over and over, scroll through cli history, or forget and have to redownload/use a renaming tool. This can be quite error prone.

Describe the solution you'd like Most cli applications can override default configurations using some kind of config file such as .env. It would be great if crunchy-cli can read a config file and override defaults for download, search, or achieve. This way, it would be consistent every time and easily referenced.

Additional context Add any other context or screenshots about the feature request here.

Nannk commented 11 months ago

Using alias would be one of the solutions. As example, ive set mine like that: alias crunchy-cli-archive="crunchy-cli archive --ffmpeg-preset av1-lossless --skip-existing -s de-DE -a ja-JP -o \"S{season_number}E{episode_number} {series_name} - {title}.mkv\""

kennedy commented 11 months ago

@Nannk Good tip. I am currently doing that now, definitely a great alternative

bytedream commented 9 months ago

I'm closing this issue for now. The alias option suggested by @Nannk is a very good alternative way which I personally prefer. I already started an implementation twice but questioned the usefulness of it and discarded the changes. I see some advantages of a config file but they aren't high enough to convince me to implement and maintain it.