perplex icon indicating copy to clipboard operation
perplex copied to clipboard

JustRename use first movie folder found as root for movies folder

Open dada051 opened this issue 2 years ago • 5 comments

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.

dada051 avatar Mar 28 '23 15:03 dada051

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.

windowslucker1121 avatar Apr 11 '23 11:04 windowslucker1121

Mail sent ;)

dada051 avatar Apr 13 '23 14:04 dada051

@windowslucker1121 Any news ?

dada051 avatar Aug 23 '23 16:08 dada051

@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. :-(

windowslucker1121 avatar Aug 23 '23 16:08 windowslucker1121

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.

dada051 avatar Aug 28 '23 10:08 dada051