Matroxt / one-pace-to-plex

Guide to adapt One Pace releases to a format Plex can use
76 stars 8 forks source link

Generate folder structure and manage files #20

Open Overlord360 opened 11 months ago

Overlord360 commented 11 months ago

This is more to gauge interest.

It should be fairly trivial to use the tvdb4 file to get the folder names for the plex folder structure it could be possible to add a flag to generate the folder structure. This is most helpful when first setting up the folders, but could be expanded to dynamically adjust the folders when new arcs are added (e.g. trials of koby meppo or adventures of buggy's crew).

One Piece [tvdb4-81797]
   ├───Arc 01 - Romance Dawn
   │   ├───tvdb4.mapping
   │   └───One.Piece.E1.1080p.mkv
   ├───Arc 02 - Orange Town
   ├───Arc XX
   └───Arc 32 - Wano

Another feature could be moving the actual video files to the appropriate folders based on the episode number and the tvdb4 file as well as copying one tvdb4 file to all the sub directories (useful in case the tvdb4 file is updated e.g. due to a bugfix, new episodes, etc).

I'd be more than happy to code this, but I'm just gauging interest on whether it would be of value.

la-lo-go commented 9 months ago

I just discovered this project and I also thought it would be cool to automatically generate the folders and save you that step.

Overlord360 commented 9 months ago

I've started work on this, I can currently generate the directory structure from the TVDB4 file (and copy said file to said directories) as well as generate the TVDB4 file from the episode-references.json file. That's available on my fork. But I still plan on adding the ability to move epsiode files to their respective arc directory as well as update directory naming if the TVDB4 file changes (e.g. when we add the Trials of Koby Meppo arc, the numbering will change).

I'll add those features and then create a PR when it's ready