Hello everyone
I have made a PHP site that connects to the plex web api, locally stored on your pc. It lists all subtitles that you have and lets you delete those that are not integrated in a video file.
The point with this was to make it easy to see what automatically downloaded subtitle belongs to what video file. It also shows the locally stored subtitles so you can see what you have.
Please give me some feedback on this.
System requirements:
A webserver that is configured to run PHP.
DevTools (Made by dane22) version >0.0.0.8. Available in The Unsupported Appstore or in the forum thread
Installation:
- Download the Zip-file and unpack it in your web directory
- Modify "settings.php" and change:
- $DevToolsSecret to the same you've set when installing DevTools.
- $Server to point to your PMS server. If it's running on the same as your webserver, then you don't need to change this.
- Enjoy
Recommended way of usage:
- Remove the subtitles you want via this script.
- Use the new button added in 0.5.4 to let the script to the refresh of Plex for you.
Changelog
Updated post with version 0.5.4
A few things have happened since the last update:
- Requirements of DevTools changed to 0.0.0.8
- Added link to let user force refresh the section from the tool. Visible next to the page numbers.
- Changed the "recommended way of usage"
- Added an auto select for duplicate subtitles from opensubtitle agent.
- Fixed a bug with "Show only multiple/language"
Updated post with version 0.5.1
Updated post with version 0.4.2
Changes:
Corrected the error with "localhost".
Updated post with version 0.4.1
Changes:
Added some logging.
Can be forced by changing Debug to true in Settings.php. This is a very basic and much information log so don't use it unless you have to.
Also, the $Server variable needs to be ip-adress. I've noticed a massive performance hit when using dns name, even localhost. So use ip-adress.
Updated post with version 0.4
Changes:
- Moved away from databaseaccess and is now fully using the webapi.
- I recommend using https://forums.plex.tv/topic/121506-rel-devtools/ as that allows the script to automatically detect the path to Plex Media Server/Media/Localhost.
- If you select a subtitle in the Plex.tv/web interface, it will be marked as such when displayed in the script as can be seen on the screenshot.
- When you delete a subtitle, Plex is not updated automatically. The script will however notice that the subtitle isn't there anymore and mark the row accordingly.
- The search feature is now working properly.
- The interface has had a facelift.
- Added some more options to control output.
- The pagesystem is now working as intended and reacts to options and search results.
As usual, i've tested it but report if you find anything wrong or have suggestions for improvements.
Massive thanks to dane22 for help with finding subtitles/hashes and for hinting me about devtools.
Moved to GitHub: