Webtool, Subtitle Manager (Development)

Uploaded new version with a few fixes.

I will try to transfer my own plex database to a linux pc and see if i can get it to behave. Not easy to verify against a synology, but if anyone can provide any logs i can try to sort it out on those aswell.

I've look at the PlexExport and how they do it, it's a nice method but i can't manage to find the hash of the movie with that method. And that is needed in order to find automatically downloaded subtitles.

https://forums.plex.tv/topic/118992-where-are-the-subs/?p=708406

/T

Brilliant! I will use this method, definetly. That answer was the key i needed.

Now i will spend some time with my head in the code once again. Thank you dane22. I will post a new version of this when i have sorted this out.

Brilliant! I will use this method, definetly. That answer was the key i needed.

Now i will spend some time with my head in the code once again. Thank you dane22. I will post a new version of this when i have sorted this out.

If you go by the http api, then why not do it for all the requests, instead of accessing the database directly?

Reason for asking is, that you then could switch into Python, and make it a complete crossplatform plugin

/T

Yeah, already thought of that. Dev version that i have don’t use db at all. :slight_smile: hope to release it in a day or three. Still in php though… Need to freshen up my python skills before thinking about that.

Brilliant! I will use this method, definetly. That answer was the key i needed.

Now i will spend some time with my head in the code once again. Thank you dane22. I will post a new version of this when i have sorted this out.

FUI: It's from here:

https://forums.plex.tv/topic/87348-undocumented-functionality-and-tips-tricks/

/T

A little progress update:

- Moved it completly to webapi

- Corrected pagenumbers

- Sorted out search

- Taging the subtitle that is selected for a specific movie/show in Plex to make it very easy to see what to remove and what not to.

I'm currently thinking of improving the appearence and structure of the results but have not yet come up with a solution.

If you want, i can release it as is (the current view can be seen on the screenshot at first page). It works, but it's not all that pretty in displaying search results from tv shows. As said, havn't come up with a nice solution to that yet...

The only thing i havn't been able to figure out via webapi is the location of the media/localhost/ folder. So that still needs to be manually input in the "settings.php" file.

The only thing i havn't been able to figure out via webapi is the location of the media/localhost/ folder. So that still needs to be manually input in the "settings.php" file.

I feel your pain here, and don't think it can be done.

As such, I created a small overkill solution for this, but since the solution can be used for much more, if needed, I decided to go with it anyway.....

Github link: https://github.com/ukdtom/DevTools.bundle

Anyway....Install the attached bundle, which will be invisible within Plex when running

After starting up PMS, browse to the following URL:

http://:32400/:/plugins/com.plexapp.plugins.DevTools/prefs

Do let me know if this is usefull in any way, but think so, since we now actually have a way to get everything out of the API, and into 3.Party stuff not running within Plex itself

/Tommy

Edit: Removed attachment. See this thread instead https://forums.plex.tv/topic/121506-rel-devtools/

And it'll return the following, when using the URL




/Tommy

And do note the following:

Don't just hunt for the value field.....

Hunt for the id='Home', and then digest the value field, cuz otherwise, your solution will break, if other stuff is added to this

/T

I’ll check that out! Sounds like an awsome tool. :slight_smile:

So, spent 5 seconds implementing the use of that bundle if it's available. Works like a charm! :)

So, spent 5 seconds

ROTFL...

And since you like it, I'll put it on GitHub soon, create a thread of it's own for it, as well as ask Mike to get it into the unsupported AppStore

/T

Forum link

/T

Great dane22 :)

I've updated the first post with a new version, give it a go if you want and toss me some feedback. :)

I'm really happy about the new feature that shows what subtitle is selected in the plex web interface. It feels like that is a real key when choosing what subtitle to keep and not to, since you can just select the one that is correct that you want to keep and then remove the rest of them.

Okay...Tried it, but sadly doesn't seem to work.

Can't even list the libraries

Running it on the same box as my PMS

(A QNAP box)

Since I've developed several plug-ins so far, can I humbly suggest, that you impliment some kinda logging, cuz. otherwise, supporting this will be living hell.

And when/if logging is implemented, I'll take it for another spin, and report back what I find in the logs ;-)

/Tommy

Edit: And forgot: Page shows nicely, but in the welcome box, it tell's me to make sure, that a devtools plugin is installed  :D

And server is set to the loopback:32400

And can verify, that the plugin url resolves

If your not getting any libraries, something is very wrong… I’ll see what i can find. Are you using php5? Did the php errorlog give anything?


I will try to fix a nice logging in the coming days or so.

Are you using php5? 

Yep

Did the php errorlog give anything?

No such thing on a QNAP sadly

I will try to fix a nice logging in the coming days or so.

Cool

And note that I stepped by your error reporting site with report on a complete blocker  :D

Yeah, i noticed :) A really bad misstake on my part, i'll fix the comments :)

I'll have a peek at Plex Web Export again since it seems you can run that? Thought i saw your name pop up in that thread and i am using the same method to fetch the xmls.

But i'll check how Plex Web Export is verifying that the fetch works etc.

Yeah, i noticed :) A really bad misstake on my part, i'll fix the comments :)

ROTFL

I'll have a peek at Plex Web Export again since it seems you can run that? Thought i saw your name pop up in that thread and i am using the same method to fetch the xmls.

But i'll check how Plex Web Export is verifying that the fetch works etc.

Yep, and the PHP version on my QNAP is 5.3.28

/Tommy ifrän hinsidan