ukdtom / WebTools.bundle

WebTools is a collection of tools for Plex Media Server. Like the Unsupported AppStore (UAS)
https://forums.plex.tv/discussion/288191
Mozilla Public License 2.0
1.3k stars 170 forks source link

Delete selected subtitles not working in search results for video #305

Closed ukdtom closed 6 years ago

ukdtom commented 7 years ago

See PR #304

creoludifico commented 7 years ago

2017-06-04 13:59:18,459 (2340) : DEBUG (logkit:13) - Recieved an apiV3 GET call for module: PMS for methode: DELETE 2017-06-04 13:59:18,459 (2340) : DEBUG (logkit:13) - Function to call is: DELSUB with params: ['key', '316', 'sub', '4968'] 2017-06-04 13:59:18,459 (2340) : DEBUG (logkit:13) - Delete subtitle requested 2017-06-04 13:59:18,460 (2340) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/316/tree' 2017-06-04 13:59:18,463 (2340) : CRITICAL (core:574) - Fatal error happened in delSub, when deleting E:\video\video\Action-Thriller\Pressed (2011)\Pressed.2011.720p.BRrip.x264.GAZ.YIFY.da.srt : [Error 3] Den angivne sti blev ikke fundet: u'\\?\E:\video\video\Action-Thriller\Pressed (2011)\Pressed.2011.720p.BRrip.x264.GAZ.YIFY.da.srt' (most recent call last): File "C:\Users\HomeJoe\AppData\Local\Plex Media Server\Plug-ins\WebToolsNext.bundle\Contents\Code\pmsV3.py", line 231, in DELSUB os.remove(filePath) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-b38628e\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 111, in os_remove return os._remove(longpathify(uni(path))) WindowsError: [Error 3] Den angivne sti blev ikke fundet: u'\\?\E:\video\video\Action-Thriller\Pressed (2011)\Pressed.2011.720p.BRrip.x264.GAZ.YIFY.da.srt'

2017-06-04 13:59:20,198 (2340) : DEBUG (logkit:13) - Recieved an apiV3 GET call for module: PMS for methode: DELETE 2017-06-04 13:59:20,200 (2340) : DEBUG (logkit:13) - Function to call is: DELSUB with params: ['key', '73', 'sub', '598'] 2017-06-04 13:59:20,200 (2340) : DEBUG (logkit:13) - Delete subtitle requested 2017-06-04 13:59:20,200 (2340) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/73/tree' 2017-06-04 13:59:20,203 (2340) : CRITICAL (core:574) - Fatal error happened in delSub, when deleting E:\video\video\Action-Thriller\36th Precinct (2004)\36 Quai des Orfèvres.idx : [Error 3] Den angivne sti blev ikke fundet: u'\\?\E:\video\video\Action-Thriller\36th Precinct (2004)\36 Quai des Orf\xe8vres.idx' (most recent call last): File "C:\Users\HomeJoe\AppData\Local\Plex Media Server\Plug-ins\WebToolsNext.bundle\Contents\Code\pmsV3.py", line 231, in DELSUB os.remove(filePath) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-b38628e\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 111, in os_remove return os._remove(longpathify(uni(path))) WindowsError: [Error 3] Den angivne sti blev ikke fundet: u'\\?\E:\video\video\Action-Thriller\36th Precinct (2004)\36 Quai des Orf\xe8vres.idx'

ukdtom commented 7 years ago

It works, but seems like FrontEnd is caching contents, and not refreshing it.... Leaving Subs module after a delete, and then returning again, do make it work

ukdtom commented 7 years ago

When said though, we need to work together on the Windows path I see in above, since that would be an issue

ukdtom commented 6 years ago

Since the origin problem is fixed, we'll close this