Webtool, Subtitle Manager (Development)

Dane22, can you please test the new version i've just uploaded?

Go into Settings.php and change Debug to true, start index.php once then send me the logfile plexusmerror.log and i'll see what i can dig out.

I just installed Plex Media Server on a rather fresh Crunchbang with an apache/php5 fresh installation just for this. It started up right away. It didn't have the DevTools plugin but still, it shows the Libraries i just created and gave no errors relating to that.

The only thing i can think of at this time is if it's something to do with paths, thats why i need the log.. And i do know that the logging system is rather crude, but it's a start and i really want to sort out whats causing the errors at first launch...

tried it, and sure enough.

From my plug-in I got the path: "/root/Library/Plex Media Server"

To that path, you add "/Media/Localhost", but @ least on a QNAP, that's wrong!

It's localhost, and not Localhost

Notice lowercase 'l'

/Tommy

Great, i'll change that. But that still dosn't explain it actually...

Since that is independent of loading the libraries...

Those are two different things. That path to the media/localhost is not used untill you want to delete a subtitle..

Can you check how the path that checks your libraries look?

It should start with "Received request to fetch xml from: 'http://127.0.0.1:32400/library/sections'"..

How does your line look? Does it look the same or is there something else.. And how does the following lines look? Any indication if it finds anything?

Great, i'll change that. But that still dosn't explain it actually...

Maybe this does: "I was stupid"  :D

I was so focused on the error message, that I never looked to the left side, where the section actually showed  ;)

It's working perfectly now, besides the simple fact of the upper/lower case localhost thing

Nice work

/Tommy

Ohhh.....And is it lowercase on your platforms as well?

(Windows doesn't care, only linux and it's crippled sister IOS)

/T

Yes it is localhost on windows aswell. It was an error by me to have it upper case. I have changed it on my version now and will upload it later. Just want to fix one little thing... :)

Glad to see it's working for you now. Please give it a good tryout if you want now that it's finally working.

What do you think about the layout of Movies, Shows, search results etc. Marks for what subtitle is selected in Plex Player etc...?

(Edited because.. Well, tonight spelling dosn't seem to be my a-game.)

What do you think about the layout of Movies, Shows, search results etc. Marks for what subtitle is selected in Plex Player etc...?

Well....the best way of saying what I think is the following:

I was in the middle of writing something siml, when I discovered your work, and loved the idea of using an external webpage instead, since the darn framework is so limited regarding it's presentation level, so I dropped my way ;-)

When said, my solution would have a special thing, that I think you should do as well:

When using the OpenSubtitle agent, and entering an account name for it, the subtitles would be duplicated each time you do a forced refresh....SIGH.....

As such, an option to auto-select every subtitle from OpenSubtitle agent, that is duplicated, so you very easy can delete those would be nice, if having a large library

You should track on multiple subtitles from the same agent and in the same language, and then autoselect all but 1

Best Regards

Tommy

Or if looking at the filesystem, on the file named com.plexapp.agents.opensubtitles.xml

Then the duplicates are identified like the following:

<?xml version='1.0' encoding='utf-8'?>

  
    
    
  

And notice, that the second one in it's download link has appended /sid-f0t5c6p74bm93ud32hvlt1nu15

The /sid- is the one pattern that indicates a duplicate, AFAICT

/T

Oooh, thats a damn nice idea Tommy!

Nice to hear you like the script. Hopefully it can be of use for people. :)

I will try to implement that. Well. Now you have ruined my sleep for a few days at least. Can't get a programming idea out of my head until it's solved. :)

I'll try to figure out a nice way of doing that. I have all the information loaded so to speak so it's just a matter of working with it and that should be easy to fix. :)

Atleast i will try to upload a version tomorrow with the correct "localhost" since i'm in the middle of adding a feature for easier navigation in shows. Making show title and season title links to move up the chain when browsing episodes.

And just saw your reply as i was writing this. I will look into that file and see what i can find. That feature would be really nice complement. 

Just FUI, no idea if it's usefull or not, but I wrote something called Plex2CSV, where I export almost everything from the web-interface into a csv file.

If you are banging your head on getting a particular field, feel free to steal from my source (Python that is)

/T

Yeah i've used that script to get information for myself out of Plex. Wonderfull thing. Works like a charm. Not used it in relation to programming but just to get a good view of how the library is setup.

I've made a browse through every single .xml file for com.plexapp.agents.opensubtitles.xml and com.plexapp.agents.podnapisi.xml.

I'm not able to locate any indication of duplicates for any of my files (gone through every library). Seems that they don't download duplicates? But then, why would you have one... Is it a setting? What could cause it to download the same file again?

If it is reliable to check for /sid- on atleast opensubtitles, then i can implement it. But since i have none of my own like that, it can be hard to verify full and stable functionality. And have no idea how podnapisi marks duplicates. If it even downloads duplicates. Perhaps it has verification that prevents it.

Updated post with version 0.4.2 that fixed the localhost typo.

So, now it should be working for everyone i hope.

What could cause it to download the same file again?

When using the OpenSubtitle agent, and entering an account name for it,

/T

Got it. Getting an account and will add it to the opensubtitleplugin. Then do a rescan and see.


Then: Get to work solving it. :slight_smile: already have the code baked to check the files.

It's ok to get out of my hideout now?  All solved?

I knew with Dane giganormous knowledge on QNAP that a solution would be found :)

Thanks a lot for this work!

Yeah Ismelda, it should be working now. Please try it out and give me some feedback. :slight_smile:

should be

Replace above with a "does"

/Tommy

It works!
 
Except that it doesn’t allow me to remove the subs added by plex?
 
pusm001.jpg

Hehehe....Actualy never tried to delete stuff yet...

Just tried, and looks like Sidecars can be deleted, but with subs downloaded by an agent, it doesn't happen!

I do however not see stuff in read like you did?

But speaking of that, did you do a refresh afterwards, cuz it looks to me like it actually did delete stuff for you, but is still in the database/xml files ?

/T