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

Generate folder structure and manage files #20

Open
Overlord360 opened this issue Oct 4, 2023 · 2 comments
Open

Generate folder structure and manage files #20

Overlord360 opened this issue Oct 4, 2023 · 2 comments

Comments

@Overlord360
Copy link
Contributor

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
Copy link

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

@Overlord360
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants