Webtool, Subtitle Manager (Development)

It as like that from the start. The only file I can edit or delete is the local file which is the only one I want to keep…

Hmm. Paths paths paths. I’ll add logs for paths. That must be it. That the paths for agents gets messed up somewhere on linux. I’ll fix that logging as soon as i can.


The script checks if it can find the subtitle in question, otherwise mark it in red and assume deleted.

Dane22, were you not able to delete any subs?

Dane22, were you not able to delete any subs?

Only sidecars

I'm stucked with Agent provided ones.

/T

@Ismelda:

Did you use the DevTools plugin I wrote, or did you enter the path your self?

If so, I think you got it wrong!

/T

And P.S.

Congratz with the Ninja title

I didn’t do anything with your tool. I think dagalufh integrates it in his program so no one has to touch anything in the config right?

I unpacked the program and ran it. Nothing more.

PS: thanks :slight_smile:

I don't include devtools, since it's a plex plugin and not a seperate website... It has to be installed manually to Plex Plugins.

I'm working on the logs.

Currently the script didn't log as much as needed so i'm fixing that.

dane22, sidecars = local srts?

For you they don't show up as removed already, the script can find them atleast?

Perhaps the script dosn't have permissions to remove the files? I'm looking at adding a check for file permissions to ensure that it's not an issue during removal..

Paths or permissions. It has to be one of those as it's working on Windows. That points to permissions, but pathing could be wrong aswell with slashes or such..

Can you somehow check that the user running the webservice has the correct permissions on your files?

Ismelda, can you check if the user is allowed to browse down to the srt:s?

Yes i am allowed. I think the problem has to do with this :


    
        
            
                
                    
                    
                        
                        
                        
                        
                        
                        
                        
                        
                    
                
            
        
    

and the fact that there is no 'cb8f957774ad11d4ab310f756711d57160ef373' folder in the media/7/

I don't know how but the path given by the xml is not valid.

It should be media/localhost/7/cb8f957774ad11d4ab310f756711d57160ef373.bundle/

And that should be what the script uses to check if the file exists.

exactly but i don't have that folder...

scrap that folder is here now.

I must be delirious or something.

the path to english subs:

PlexMediaServer\Library\Plex Media Server\Media\localhost\7\cb8f957774ad11d4ab310f756711d57160ef373.bundle\Contents\Subtitles\en

But it's odd that you still get that they are "removed from plex" message.

If the files are there, and the webbuser is allowed to see them, it should work. But then i again, we'll see once it push the new update that logs paths.

yeah it lists each of them to tell me that are not here, while they are.

@Ismelda, Can you please give this one a go?

Start it up, choose a library, let it finish loading.

Then take the plexusmerror.log and sent it to me and i'll see what i can find.

The only thing that's added to this is additional logging and thats just that it logs paths for found items and not found items so to speak.. That way i can see where it searches.

If you don't want to send me the file, i'm interested in a row that contains "Unable to find" and also the finding the same file referense in "Found subtitle".

here it is

@Ismelda, go to https://forums.plex.tv/topic/121506-rel-devtools/ and download/install that plugin made by dane22. Without that you have to set the path yourself.

The odd thing is that it claims that it is successfull... Hmm... I will look into why it's not getting mad about not finding it. Anyway, either configure your PathToPlexMediaFolder yourself or install the plugin from Tommy.

That should get rid of the issues with unaccessable files in your case.. Please do that, remove the plexusmerror.log and then retry everything.

Did i make any sense now? (Needs tea.)

i did insall did already. Well added it into the plug-ins folder.

Also did a reboot of plex for the same error.

The value inside the settings.php for $PathToPlexMediaFolder is a fallback if you don't have the devtools..

In functions.php there is a function called check_settings that fetches from devtools and should overwrite the path.

It feels like there is something wrong there, that it simply dosn't find the values. Can you go to:

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

and perhaps copy that output here? 

I don't have a pref folder... and your link leads me nowhere. (404)

Hmm. dane22, i need some help here since you are the father of that script.

If Ismelda goes to http://ip-to-qnap:32400/:/plugins/com.plexapp.plugins.DevTools/prefs

should she not be able to get that view? :s

I just tried it at home via remotedesktop (not at home). And i got the output that Tommy showed on page 2.

i put the devTools there:

PlexMediaServer\Library\Plex Media Server\Plug-ins\DevTools.bundle-master

was that alright?