Does anyone else have an issue with the token expiring?
The script stopped seeing shows had been watched. Yet after updating my token it worked again
@jordanwade33 said:
Is it possible to have the script remove tv folders if they’re empty, not just movie folders?
I didn’t add removing tv folders because tv shows might keep going, and removing folders might mess up other programs.
@“Main Plex” said:
Does anyone else have an issue with the token expiring?
The script stopped seeing shows had been watched. Yet after updating my token it worked again
Ya I had my token expire somewhere in the middle, regenerating a new token and it has been working for over a week, don’t think anything is wrong though.
@ngovil21 said:
@“Main Plex” said:
Does anyone else have an issue with the token expiring?
The script stopped seeing shows had been watched. Yet after updating my token it worked againYa I had my token expire somewhere in the middle, regenerating a new token and it has been working for over a week, don’t think anything is wrong though.
Is there anyway to know in advance that its going to expire?
Script stopped working tonight even after changing out the token. Anyone else experiencing issues?
My bad. Had on deck enabled and the logic wasn’t deleting them.
@“Main Plex” said:
@ngovil21 said:
@“Main Plex” said:
Does anyone else have an issue with the token expiring?
The script stopped seeing shows had been watched. Yet after updating my token it worked againYa I had my token expire somewhere in the middle, regenerating a new token and it has been working for over a week, don’t think anything is wrong though.
Is there anyway to know in advance that its going to expire?
I don’t think there is a way, could do more to log when a bad token is provided. I think it has happened sometimes when the Plex Media Server is updated.
@“Main Plex” said:
Does anyone else have an issue with the token expiring?
The script stopped seeing shows had been watched. Yet after updating my token it worked again
Yup.
Seems like it works for awhile and then the token expires and after you update it manually it begins working again. Suspect OAuth2 token most likely.
Any way to leverage the user/pass and have the token that is issued stored and referenced?
On my Plex Server I am using both a local NAS as well as Amazon Cloud Drive. NAS for the shows I have not yet consumed and ACD for the ones I did consume (I might want to watch them again but not take up valuable space on the NAS)
When I try the script I does filter well the section but I would like to have an additional condition it which would be checking for the folder (i.e. if Folder /amz/ then not do anything. Any suggestion on how this could be implemented?
Edit:
I was able to get Python 3.6 to work alongside 2.7. Also saw that I was using a semi colon vs comma in the SectionList. It is now running and I was able to get the Token ID via an earlier post via Plex Web.
@spanishu said:
On my Plex Server I am using both a local NAS as well as Amazon Cloud Drive. NAS for the shows I have not yet consumed and ACD for the ones I did consume (I might want to watch them again but not take up valuable space on the NAS)When I try the script I does filter well the section but I would like to have an additional condition it which would be checking for the folder (i.e. if Folder /amz/ then not do anything. Any suggestion on how this could be implemented?
Files are not managed by the folder they are in. The best way to do this would be to create a library section in Plex that only has movies or shows on the NAS. Then use that library in PlexCleaner.
@MovieGhoul said:
Edit:
I was able to get Python 3.6 to work alongside 2.7. Also saw that I was using a semi colon vs comma in the SectionList. It is now running and I was able to get the Token ID via an earlier post via Plex Web.
The Settings conf is pretty picky because it is json. Glad you were able to get it working.
Hey guys so I was messaged by a Plex Ninja that the script spams devices on your user account so I have pushed out an update on the master branch that should resolve this. Please update the script now from Github to avoid this problem.
@ngovil21 said:
Hey guys so I was messaged by a Plex Ninja that the script spams devices on your user account so I have pushed out an update on the master branch that should resolve this. Please update the script now from Github to avoid this problem.
Just FYI… The script errors out when a network is not present. Adding in a bit of checking would alleviate this…
@d.g. said:
Looks like there is an issue with text encodings if a filename has special characters such as diacritics (accents), or the ‘wrong’ kind apostrophe…
Latest version fixed this
Presumably thanks to the new # reload sys to set default encoding to utf-8 section.
I saw someone in October of last year that mentioned seeing the same thing. Didn’t see a solution posted however.
I have a ton of these entries in my Devices section. Any idea how I can prevent this from occurring?
Can somebody please point me to the latest version of this script? I tried a few and none seem to work . The one on the main page is from 2013
@ngovil21 said:
Ya here it is:GitHub - ngovil21/Plex-Cleaner: A script to clean up movies and episodes in Plex Media Server
@MovieGhoul The new update will prevent multiple devices from popping up. Please use version 1.94. I’ll release an update soon that will help clear devices.
Hello,
Sorry to everyone, I’ve been away for sometime now.
Thank you to everyone that has contributed to this project.
I understand Plex has changed quite a bit and the original script I posted no longer works. (I will update the first post accordingly when I have am able to confirm the latest working version)…
I could work on new version myself, but I’d hate re-invent the wheel of all of those who have contributed.
I haven’t had a chance to look all of the contributions to this project, only the latest one by ngovil21.
I’m assuming Plex made changes since your last version which has caused complications.
The ideal goal of this project is to basically be as plug-n-play as it goes.
Someone can execute the script without doing any configurations…
The script merely report what it was going to do… Which would then Prompt the user to enable the acceptable actions (like delete).
I skimmed through the latest project and it looks like that it is all very well intact, but simply not working to a new change in Plex. I’d be happy to help and re-contribute to this project, so please let me know if I can help.
Once again thank you for everyone’s help to keep this project alive including all the interested parties.
@Steven4x4 As far as I know my update of the script is working. A user had an issue with authorization that I believe is resolved. I am not making any major changes, but if you would like to make contributions, you can see my GitHub:
Thanks for getting the script started, I based my version heavily on it.
@MovieGhoul I have introduced a new command line argument --clean_devices. This should delete those old devices. It will run 100 at a time, you can keep running the script until they are all deleted.
Also as a note, for those of you with unicode problems that relied on the reload(sys) fix, this option has been moved into a command line argument --reload_encoding. So those who choose to can use it.
To see the command line options run PlexCleaner.py --help.
@ngovil21 Confirmed working! Thank you for the update, it looks so much cleaner in the Devices section now.
