rieck / perplex

A Movie Renamer for Plex Metadata
39 stars 17 forks source link

JustRename use first movie folder found as root for movies folder #12

Open dada051 opened 1 year ago

dada051 commented 1 year ago

Sample of dry run from "python3 perplex.py --load plex.db --justRename /movies/ --dry" Start Renaming the files in their original path /movies/Unsorted/12 Years A Slave/12 Years A Slave 1080p AC3.mkv /movies/Unsorted/12 Years A Slave/12 Years a Slave (2013)/12 Years a Slave (2013).mkv /movies/Unsorted/1917 (2019)/1917 (2019) 1080p AC3.mkv /movies/Unsorted/12 Years A Slave/1917 (2020)/1917 (2020).mkv /movies/Unsorted/2040 (2019)/2040 (2019) 1080p AC3.mkv /movies/Unsorted/12 Years A Slave/2040 (2019)/2040 (2019).mkv

12 Years A Slave is part of root folder after.

windowslucker1121 commented 1 year ago

Hey, hey. would you mind sharing your plex.db file? (if you dont want to share it public, just contact me via my email adress in my profile.)

NOTE: I cant say if the database does contain critical information, so it would be your choice to share your DB

But i was the one, adding the "justRename" feature to this repo - for me it was working fine, but i think you might hit an edge case which i didnt had in mind when programming it for my specific case.

dada051 commented 1 year ago

Mail sent ;)

dada051 commented 1 year ago

@windowslucker1121 Any news ?

windowslucker1121 commented 1 year ago

@windowslucker1121 Any news ?

I am so sorry, I will take a look into it at the weekend. I didn't realized that you send it, but indeed I received it. I will keep you updated!

@dada051 would you mind sharing the exact layout of your current file situation?

Like

/Movies -> unsorted/ -> -> 12 Years A Slave 1080p AC3.mkv -> -> anotherMovie.mkv

And what do you expect as an outcome, just for verification because a good amount of time has passed since I was coding it.

/Movies -> 12. Years a slave(DATE)/ -> -> 12 Years A Slave 1080p AC3 (DATE).mkv -> Another Movie(DATE)/ -> -> anotherMovie (DATE).mkv

Greetings and sorry that I missed your mail. :-(

dada051 commented 1 year ago

Don't worry for the missed mail.

Every movie is already in a subfolder (it's like the expected layout), but I need to rename every subfolder and the movie that is contained into. Probably the script is expecting that all movies are in the same folder.