"Unable to find 'C:/users/Your Windows Account Name/AppData/Local/Plex Media Server/Media/Localhost/b/3450b4640cd87ff8e189f77ce85a9502504246c.bundle/Contents/Subtitles/fr//com.plexapp.agents.opensubtitles_0bc01a0f8166e7eee6800ec272ae1408c94823a5.srt' on disk."
that is not from her latest? Can't find it there...
That's from the public log, so guess that Ismelda PM'ed you some more?
Do the webbuser have write permissions in it's own directory? plexusm directory?
You are better that Sherlock Holmes here
I'll look into //, do you think it have an impact?
Yep, Linux systems are very sensitive regarding file names, cases and path, as well as forward vs. backslash
dagalufh was correct here....the web user only had read access to the doc root, so you have been bad, and messed with the file rights :lol:
I have admin right on all my NAS!!! I can write and delete almost everywhere.
I also host an ftp where users can read and write on a specific folder of the web folder and then see the other folders and read but not write in them. So yes i did managed the rights for the web folder.
Alright, i'll see to it that double / are removed. I was looking at it earlier but then i googled abit and regarding paths it said it didn't matter. But i couldn't really let it go...
It says it did remove that file. You mean it's still there?
There is no indications of any other deletions in the logfile.
If you look in delete.php you see that everything that passes through the for-loop and the unlink() command gets printed.
There is no record of it even receiving any paths relating to your agents subs... So even if the double slashes are causing some issues, it can't be this issue? Since the paths to the local srt:s are different allover than the agents.
I checked the latest log you posted, the one with a [5] in the end of the filename. But also see that after that, in the reload, it dosn't list any agents anymore..
@dane22, permissions in the plex agents subtitle folder for the webuser?
Don't know if you know much php but since you know python i figure you have no trouble at all understanding it.
Take a peek and see if you can find anything that could point to the issue that Ismelda is having?
I mean, the script dosn't say it's removing anything relating to agents, but still they get removed....
That's what I think as well.....
And now we are getting to a more critical issue here, regarding security, so I humbly doesn't think that's the way to go, but has a suggestion for you...
@dane22, yeah, sometimes, don't have it updated. But i'm easier to get a hold of on Google+ if you have it? Mikael Aspehed is the name :)
@ismelda: okey, i just tried this on my crunch and after just going all in since it's a testlab (chmod 777.... scary), i had no issues at all removing the wanted one. Both agent and local worked.
After talking to @dane22, he had a great suggestion for solving the issues with security. The new version will depend on DevTools being installed completely. No timeframe can be given at this time, i'll update this when there is a new version available.
14-09-30 20:09:34 [info] [/share/MD0_DATA/Web/plexusm/functions.php Line:227] Found correct DevTools. Found: [Error authenticating]
14-09-30 20:09:34 [info] [/share/MD0_DATA/Web/plexusm/functions.php Line:240] Set PathToPlexMediaFolder to: 'Error authenticating/Media/localhost/'
indicates that the secret set in settings.php and the one configured in DevTools via preferences in channels are not the same. Please set a new one and try again and see if the error reoccurs.
I'm working with Dane22 to solve some other issues that has occured. Thats why the download link had been taken down.
It seems there are 2 places where the subs are in the series:
1 - PlexMediaServer\Library\Plex Media Server\Media\localhost\7\cb8f957774ad11d4ab310f756711d57160ef373.bundle\Contents\Subtitles\en<br> and
2 - PlexMediaServer\Library\Plex Media Server\Media\localhost\7\cb8f957774ad11d4ab310f756711d57160ef373.bundle\Contents\Subtitle Contributions\com.plexapp.agents.opensubtitles\en<br> also they are listed in: 3 - PlexMediaServer\Library\Plex Media Server\Media\localhost\7\cb8f957774ad11d4ab310f756711d57160ef373.bundle\Contents\Subtitles.xml
As far I can tell, removing them from 1 (That is what your program is supposed to do) then refreshing the episode redownload all the previous ones and add a new one (current bug from the PMS).
The only way I could manage to remove the extra subs (manually) was to remove them from 1 & 2 then edit 3 to remove the deleted sub from it. After a refresh of the episode I had only the subs I kept (plus the new on due to that bug in PMS).
PS: did the secret thingy. I had no clue we had to set it manually. Server properly identified now
It seems there are 2 places where the subs are in the series:
1 - PlexMediaServer\Library\Plex Media Server\Media\localhost\7\cb8f957774ad11d4ab310f756711d57160ef373.bundle\Contents\Subtitles\en\
and
2 - PlexMediaServer\Library\Plex Media Server\Media\localhost\7\cb8f957774ad11d4ab310f756711d57160ef373.bundle\Contents\Subtitle Contributions\com.plexapp.agents.opensubtitles\en\
also they are listed in:
3 - PlexMediaServer\Library\Plex Media Server\Media\localhost\7\cb8f957774ad11d4ab310f756711d57160ef373.bundle\Contents\Subtitles.xml
As far I can tell, removing them from 1 (That is what your program is supposed to do) then refreshing the episode redownload all the previous ones and add a new one (current bug from the PMS).
The only way I could manage to remove the extra subs (manually) was to remove them from 1 & 2 then edit 3 to remove the deleted sub from it. After a refresh of the episode I had only the subs I kept (plus the new on due to that bug in PMS).
PS: did the secret thingy. I had no clue we had to set it manually. Server properly identified now
The subtitles are only located in the "Subtitles Contributions" directory.
The other ones are symbolic links
And regarding your findings, then that's the exact way I plan to develop
A new tool has been released in cooperation with Dane22.
This tool is almost the same as this one, except it dosn't require a PHP server or anything like that, you install it as a bundle and follow the instruction on the github wiki.
The features are basically the same, but it has a few more goodies up it's sleve.