jmbannon / ytdl-sub

Lightweight tool to automate downloading and metadata generation with yt-dlp
https://ytdl-sub.readthedocs.io
GNU General Public License v3.0
1.71k stars 66 forks source link

Use local files as a source #155

Open jmbannon opened 2 years ago

jmbannon commented 2 years ago

Add ability to update file names and metadata if the config or metadata changes

jmbannon commented 2 years ago

This would need each entry to store its info.json file somewhere and add it to the archive. In addition, ytdl-sub needs to be able to differentiate which files it saves, like whether it's truly the video file, NFO file, thumbnail, etc.

Might have to only support a subset of features, like

And have an entirely different command from dl or sub, maybe update

Code-Slave commented 2 years ago

update for nfo would be great. as i screwed up and forgot plot metadata

jmbannon commented 2 years ago

@Code-Slave

would it make sense to download the metada as a json via the built in ytdlp support then parse it offline? that way if someone changes what metadata they want to associate it easier to parse json local instead of online calls again?

I think it makes sense to add a field called output_options.info_json_path where it saves that metadata file (we already download it behind the scenes).

Having that would allow us to change file names, NFOs, music tags.

We wouldn't be able to get subtitles or changes to the title/description/etc since that requires calling yt-dlp again. Maybe it makes sense to have two different types of updating: online and offline.

jmbannon commented 2 years ago

This would require a massive amount of work though.

It's probably an entire release worth's of work. I don't think it's that urgent of a change since there's a simple workaround - redownload everything. Would still be nice to have.

Code-Slave commented 2 years ago

Its only an issue for hoarders like me. I have 8-10 tb of channels to archive. (Mostly instructional things like diy, woodworking, tractor maintenance etc etc) and some that just arent available anymore. From an archive perspective having the json is ideal. Even better if the tools can modify the nfo etc from it

jmbannon commented 2 years ago

Totally understand. I'll definitely add output_options.info_json_path, that would at least allow people to write scripts to update things.

Code-Slave commented 2 years ago

for sure. can be a long term goal. The json will help

funar commented 2 years ago

Its only an issue for hoarders like me. I have 8-10 tb of channels to archive.

Hoarders unite! ;)

The JSON will definitely help.

jmbannon commented 2 years ago

https://github.com/jmbannon/ytdl-sub/issues/172

jmbannon commented 1 year ago

Decided local files as source would be too cumbersome for renaming since it'd require creating a new subscription for every subscription you want to modify. Instead, proposing a reformat command, tracked here: https://github.com/jmbannon/ytdl-sub/issues/536