Kodi Community Forum

Full Version: CleanSubs - (Clean subtitles from the ads and other rubbish)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
So I just leave the nfs alone, because is not used in this setup. SMB works on windows and Android once you remove smb://....

or maybe I should make a warning if I detect NFS: shares in library that it doesn't work with my addon?
(2016-12-04, 19:02)DaLanik Wrote: [ -> ]So I just leave the nfs alone, because is not used in this setup. SMB works on windows and Android once you remove smb://....

or maybe I should make a warning if I detect NFS: shares in library that it doesn't work with my addon?

That's a good idea. You can even try to detect linux/OpenELEC/LibreELEC OS and warn for nfs and smb.

I managed to get the interactive work but in a special way : I set a special folder for subtitles instead of having them sit alongside the videos. And this special folder being /storage/.kodi/temp (special://temp on LibreELEC) :

Code:
18:09:13 T:139825302894336   DEBUG: OnDownloadComplete - Saved subtitle /storage/.kodi/userdata/addon_data/service.subtitles.opensubtitles/temp/b8bb0899-e254-4205-a064-cba30774d2a5.srt to /storage/.kodi/temp/The 100 S01E01 L'Exil.en.srt
18:09:13 T:139825044891392   DEBUG: GetExternalStreamDetailsFromFilename - Language = 'eng' / Name = '(Externe)' / Flag = '0' from /storage/.kodi/temp/The 100 S01E01 L'Exil.en.srt
18:09:13 T:139825044891392  NOTICE: Closing stream player 3
18:09:13 T:139825044891392  NOTICE: Opening stream: 0 source: 1026
18:09:13 T:139825061676800    INFO: Python script stopped
18:09:13 T:139825061676800   DEBUG: Thread LanguageInvoker 139825061676800 terminating
18:09:13 T:139827804018752   DEBUG: ------ Window Deinit (DialogSubtitles.xml) ------
18:09:13 T:139827804010240   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
18:09:13 T:139827804010240   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
18:09:13 T:139825086854912   DEBUG: CDVDAudio::Resume - resume audio stream
18:09:13 T:139827775497984   DEBUG: ActiveAE - start sync of audio stream
18:09:13 T:139827775497984   DEBUG: ActiveAE::SyncStream - average error of 193.185584, start adjusting
18:09:13 T:139827775497984   DEBUG: ActiveAE::SyncStream - average error 11.837096 below threshold of 30.000000
18:09:14 T:139826401629952   DEBUG: CLEANSUBS >> GONNA STOP TIMER - NOT IN SUBS DIALOG ANYMORE
18:09:14 T:139825202063104   DEBUG: CLEANSUBS >> SUBS ADDED >>The 100 S01E01 L'Exil.en.srt
18:09:14 T:139825202063104   DEBUG: CLEANSUBS >> SUB STATS WILL BE ADDED TO LOCAL DATABASE
18:09:14 T:139825202063104   DEBUG: CLEANSUBS >> ENC >> OPENED WITH ENCODING: utf-8
18:09:14 T:139825202063104   DEBUG: CLEANSUBS >> PROVIDER LOGO:
18:09:15 T:139826401629952   DEBUG: CLEANSUBS >> STOPPING TIMER
18:09:16 T:139827804018752   DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
18:09:16 T:139825202063104   DEBUG: CLEANSUBS >> REMOVED TOTAL NR OF LINES: 2
18:09:16 T:139825202063104   DEBUG: CLEANSUBS >> PROCESSED IN 2.22 SECONDS
18:09:16 T:139825202063104   DEBUG: CLEANSUBS >> SUBS PROCESSED >>The 100 S01E01 L'Exil.en.srt
18:09:16 T:139825044891392   DEBUG: GetExternalStreamDetailsFromFilename - Language = 'eng' / Name = '(Externe)' / Flag = '0' from /storage/.kodi/temp/The 100 S01E01 L'Exil.en.srt
18:09:16 T:139825044891392  NOTICE: Closing stream player 3

Is this supposed to work that way ?
It is ONLY monitoring temp folder, I thought it is default.... You play a movie, open subtitles download addon (i.e. opensubtitles.org) and it downloads subs to it's own folder and copies to TEMP. This is where I catch 'em and clean 'em Smile
(2016-12-04, 19:40)DaLanik Wrote: [ -> ]It is ONLY monitoring temp folder, I thought it is default.... You play a movie, open subtitles download addon (i.e. opensubtitles.org) and it downloads subs to it's own folder and copies to TEMP. This is where I catch 'em and clean 'em Smile

Ok I got it.

Well I may be wrong but :
For now you detect when the subtitles download window is opened/closed and start a timer to monitor added files in the temp folder and when there is a new file and it's a subtitle you clean it.
Why not getting the subtitle filename using player.getSubtitles() ? If it works you would not need to monitor the temp folder and, as a bonus, you could clean a subtitle file anywhere as you know where it is.

What do you think ?
(2016-12-05, 13:07)incubus Wrote: [ -> ]
(2016-12-04, 19:40)DaLanik Wrote: [ -> ]It is ONLY monitoring temp folder, I thought it is default.... You play a movie, open subtitles download addon (i.e. opensubtitles.org) and it downloads subs to it's own folder and copies to TEMP. This is where I catch 'em and clean 'em Smile

Ok I got it.

Well I may be wrong but :
For now you detect when the subtitles download window is opened/closed and start a timer to monitor added files in the temp folder and when there is a new file and it's a subtitle you clean it.
Why not getting the subtitle filename using player.getSubtitles() ? If it works you would not need to monitor the temp folder and, as a bonus, you could clean a subtitle file anywhere as you know where it is.

What do you think ?
Sounds interesting, I'll have a look Smile

Sent from my GT-N7100
OK, had a look Smile

According to this (rather old) post, it returns only filename of subtitle, not the directory. I'll have to make some tests to see for myself.

Also, this also has to be on some timer or trigger...

But I have an idea... gimme a couple of days Smile
Maybe InfoTagVideo.getPath() triggered by player.onPlayBackStarted()
There is getInfoLabel('Player.Filenameandpath'), I'll do it somehow just to work with local movie paths and then I'll try to optimize the logic Smile
Ah yes ! And Player.Folderpath too !
v2.7
- NSF warning, local movies fix

So the way it is working now is that it checks if the movie is a stream (subtitles will be downloaded to temp folder) or if it is local. If it is local, subs will be downloaded (and cleaned) in movie folder. The difference is that if it is a stream, subs will be deleted, if it's local, it will leave susb in their place and won't try to clean 'em second time when the movie is played.
Thank you DaLanik !

Will try it asap.
v2.8
- SMB fix
Path detection works ok but after it doesn't clean the subtitle :
Code:
20:26:23 T:139828343904320   DEBUG: ------ Window Init (DialogSeekBar.xml) ------
20:26:23 T:139826242234112   DEBUG: StartScript - calling plugin OpenSubtitles.org('plugin://service.subtitles.opensubtitles/','17','?action=search&languages=English%2CFrench&preferredlanguage=French')
20:26:23 T:139825598609152   DEBUG: Thread LanguageInvoker start, auto delete: false
20:26:23 T:139825598609152    INFO: initializing python engine.
20:26:23 T:139825598609152   DEBUG: CPythonInvoker(29, /storage/.kodi/addons/service.subtitles.opensubtitles/service.py): start processing
20:26:23 T:139825925576448   DEBUG: CDVDAudio::Pause - pausing audio stream
20:26:23 T:139825598609152   DEBUG: -->Python Interpreter Initialized<--
20:26:23 T:139825598609152   DEBUG: CPythonInvoker(29, /storage/.kodi/addons/service.subtitles.opensubtitles/service.py): the source file to load is "/storage/.kodi/addons/service.subtitles.opensubtitles/service.py"
20:26:23 T:139825598609152   DEBUG: CPythonInvoker(29, /storage/.kodi/addons/service.subtitles.opensubtitles/service.py): setting the Python path to /storage/.kodi/addons/service.subtitles.opensubtitles:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gtk-2.0
20:26:23 T:139825598609152   DEBUG: CPythonInvoker(29, /storage/.kodi/addons/service.subtitles.opensubtitles/service.py): entering source directory /storage/.kodi/addons/service.subtitles.opensubtitles
20:26:23 T:139825598609152   DEBUG: CPythonInvoker(29, /storage/.kodi/addons/service.subtitles.opensubtitles/service.py): instantiating addon using automatically obtained id of "service.subtitles.opensubtitles" dependent on version 2.1.0 of the xbmc.python api
20:26:23 T:139827743807232   DEBUG: Skin Helper Service --> Kodi_Monitor: sender xbmc - method: Player.OnPause  - data: {"item":{"id":2770,"type":"episode"},"player":{"playerid":1,"speed":0}}
20:26:23 T:139827223721728   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:23 T:139827223721728   DEBUG: CLEANSUBS >> CURRENT WINDOW 10153 - STARTING TIMER
20:26:23 T:139825598609152   DEBUG: ### [__main__] - action 'search' called
20:26:23 T:139825598609152   DEBUG: ### [__main__] - VideoPlayer.OriginalTitle not found
20:26:24 T:139825598609152   DEBUG: ### [OSUtilities] - Search String [ The+100+S01E02 ]
20:26:24 T:139825598609152   DEBUG: ### [OSUtilities] - Hash Standard file
20:26:24 T:139825598609152   DEBUG: ### [OSUtilities] - OpenSubtitles module hash [6da2988fc1f619cf] and size [1582480208]
20:26:24 T:139828343904320   DEBUG: LIRC: Update - NEW at 564430:a1 0 KEY_EJECTCD_UP devinput (KEY_EJECTCD_UP)
20:26:24 T:139825598609152    INFO: CPythonInvoker(29, /storage/.kodi/addons/service.subtitles.opensubtitles/service.py): script successfully run
20:26:24 T:139825598609152    INFO: Python script stopped
20:26:24 T:139825598609152   DEBUG: Thread LanguageInvoker 139825598609152 terminating
20:26:24 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:24 T:139825911412480   DEBUG: CLEANSUBS >> CURRENT WINDOW 10153 - STARTING TIMER
20:26:24 T:139827223721728   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:27 T:139828343904320   DEBUG: Previous line repeats 4 times.
20:26:27 T:139828343904320   DEBUG: LIRC: Update - NEW at 567481:67 0 KEY_UP devinput (KEY_UP)
20:26:27 T:139828343904320   DEBUG: OnKey: 166 (0xa6, obc89) pressed, action is Up
20:26:27 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:27 T:139828343904320   DEBUG: LIRC: Update - NEW at 568021:67 0 KEY_UP_UP devinput (KEY_UP_UP)
20:26:27 T:139827223721728   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:28 T:139828343904320   DEBUG: LIRC: Update - NEW at 568738:67 0 KEY_UP devinput (KEY_UP)
20:26:28 T:139828343904320   DEBUG: OnKey: 166 (0xa6, obc89) pressed, action is Up
20:26:28 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:29 T:139828343904320   DEBUG: Previous line repeats 1 times.
20:26:29 T:139828343904320   DEBUG: LIRC: Update - NEW at 569232:67 0 KEY_UP_UP devinput (KEY_UP_UP)
20:26:29 T:139828343904320   DEBUG: LIRC: Update - NEW at 569274:67 0 KEY_UP devinput (KEY_UP)
20:26:29 T:139828343904320   DEBUG: OnKey: 166 (0xa6, obc89) pressed, action is Up
20:26:29 T:139828343904320   DEBUG: LIRC: Update - NEW at 569689:67 0 KEY_UP_UP devinput (KEY_UP_UP)
20:26:29 T:139828343904320   DEBUG: LIRC: Update - NEW at 569735:67 0 KEY_UP devinput (KEY_UP)
20:26:29 T:139828343904320   DEBUG: OnKey: 166 (0xa6, obc89) pressed, action is Up
20:26:29 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:30 T:139828343904320   DEBUG: LIRC: Update - NEW at 570152:67 0 KEY_UP_UP devinput (KEY_UP_UP)
20:26:30 T:139828343904320   DEBUG: LIRC: Update - NEW at 570195:67 0 KEY_UP devinput (KEY_UP)
20:26:30 T:139828343904320   DEBUG: OnKey: 166 (0xa6, obc89) pressed, action is Up
20:26:30 T:139827223721728   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:30 T:139828343904320   DEBUG: LIRC: Update - NEW at 570647:67 0 KEY_UP_UP devinput (KEY_UP_UP)
20:26:30 T:139828343904320   DEBUG: LIRC: Update - NEW at 570692:67 0 KEY_UP devinput (KEY_UP)
20:26:30 T:139828343904320   DEBUG: OnKey: 166 (0xa6, obc89) pressed, action is Up
20:26:30 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:30 T:139828343904320   DEBUG: LIRC: Update - NEW at 571070:67 0 KEY_UP_UP devinput (KEY_UP_UP)
20:26:30 T:139828343904320   DEBUG: LIRC: Update - NEW at 571115:67 0 KEY_UP devinput (KEY_UP)
20:26:30 T:139828343904320   DEBUG: OnKey: 166 (0xa6, obc89) pressed, action is Up
20:26:31 T:139827223721728   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:31 T:139828343904320   DEBUG: LIRC: Update - NEW at 571569:67 0 KEY_UP_UP devinput (KEY_UP_UP)
20:26:31 T:139828343904320   DEBUG: LIRC: Update - NEW at 571608:67 0 KEY_UP devinput (KEY_UP)
20:26:31 T:139828343904320   DEBUG: OnKey: 166 (0xa6, obc89) pressed, action is Up
20:26:31 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:31 T:139828343904320   DEBUG: LIRC: Update - NEW at 572106:67 0 KEY_UP_UP devinput (KEY_UP_UP)
20:26:32 T:139827223721728   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:32 T:139828343904320   DEBUG: LIRC: Update - NEW at 572611:67 0 KEY_UP devinput (KEY_UP)
20:26:32 T:139828343904320   DEBUG: OnKey: 166 (0xa6, obc89) pressed, action is Up
20:26:32 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:33 T:139828343904320   DEBUG: LIRC: Update - NEW at 573152:67 0 KEY_UP_UP devinput (KEY_UP_UP)
20:26:33 T:139827223721728   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:33 T:139828343904320   DEBUG: LIRC: Update - NEW at 573320:67 0 KEY_UP devinput (KEY_UP)
20:26:33 T:139828343904320   DEBUG: OnKey: 166 (0xa6, obc89) pressed, action is Up
20:26:33 T:139828343904320   DEBUG: LIRC: Update - NEW at 573819:67 0 KEY_UP_UP devinput (KEY_UP_UP)
20:26:33 T:139828343904320   DEBUG: LIRC: Update - NEW at 574028:67 0 KEY_UP devinput (KEY_UP)
20:26:33 T:139828343904320   DEBUG: OnKey: 166 (0xa6, obc89) pressed, action is Up
20:26:33 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:34 T:139828343904320   DEBUG: Previous line repeats 1 times.
20:26:34 T:139828343904320   DEBUG: LIRC: Update - NEW at 574568:67 0 KEY_UP_UP devinput (KEY_UP_UP)
20:26:34 T:139828343904320   DEBUG: LIRC: Update - NEW at 574693:67 0 KEY_UP devinput (KEY_UP)
20:26:34 T:139828343904320   DEBUG: OnKey: 166 (0xa6, obc89) pressed, action is Up
20:26:35 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:35 T:139828343904320   DEBUG: LIRC: Update - NEW at 575239:67 0 KEY_UP_UP devinput (KEY_UP_UP)
20:26:35 T:139827223721728   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:35 T:139828343904320   DEBUG: LIRC: Update - NEW at 575826:6c 0 KEY_DOWN devinput (KEY_DOWN)
20:26:35 T:139828343904320   DEBUG: OnKey: 167 (0xa7, obc88) pressed, action is Down
20:26:36 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:36 T:139828343904320   DEBUG: LIRC: Update - NEW at 576365:6c 0 KEY_DOWN_UP devinput (KEY_DOWN_UP)
20:26:36 T:139827223721728   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:36 T:139828343904320   DEBUG: LIRC: Update - NEW at 576656:160 0 KEY_OK devinput (KEY_OK)
20:26:36 T:139828343904320   DEBUG: OnKey: 11 (0x0b, obc244) pressed, action is Select
20:26:36 T:139825738934016   DEBUG: StartScript - calling plugin OpenSubtitles.org('plugin://service.subtitles.opensubtitles/','18','?action=download&link=http://dl.opensubtitles.org/en/download/src-api/vrf-f5290bb2/sid-es,ngc9yaeeuiSNAyLtGn19pyqd/sub/5602138&ID=1954188023&filename=The.100.S01E02.HDTV.x264-BATV.srt&format=srt')
20:26:36 T:139825598609152   DEBUG: Thread LanguageInvoker start, auto delete: false
20:26:36 T:139825598609152    INFO: initializing python engine.
20:26:36 T:139825598609152   DEBUG: CPythonInvoker(30, /storage/.kodi/addons/service.subtitles.opensubtitles/service.py): start processing
20:26:36 T:139825598609152   DEBUG: -->Python Interpreter Initialized<--
20:26:36 T:139825598609152   DEBUG: CPythonInvoker(30, /storage/.kodi/addons/service.subtitles.opensubtitles/service.py): the source file to load is "/storage/.kodi/addons/service.subtitles.opensubtitles/service.py"
20:26:36 T:139825598609152   DEBUG: CPythonInvoker(30, /storage/.kodi/addons/service.subtitles.opensubtitles/service.py): setting the Python path to /storage/.kodi/addons/service.subtitles.opensubtitles:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gtk-2.0
20:26:36 T:139825598609152   DEBUG: CPythonInvoker(30, /storage/.kodi/addons/service.subtitles.opensubtitles/service.py): entering source directory /storage/.kodi/addons/service.subtitles.opensubtitles
20:26:36 T:139825598609152   DEBUG: CPythonInvoker(30, /storage/.kodi/addons/service.subtitles.opensubtitles/service.py): instantiating addon using automatically obtained id of "service.subtitles.opensubtitles" dependent on version 2.1.0 of the xbmc.python api
20:26:37 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:37 T:139828343904320   DEBUG: LIRC: Update - NEW at 577200:160 0 KEY_OK_UP devinput (KEY_OK_UP)
20:26:37 T:139825598609152   DEBUG: ### [OSUtilities] - Download Using XMLRPC
20:26:37 T:139825598609152    INFO: CPythonInvoker(30, /storage/.kodi/addons/service.subtitles.opensubtitles/service.py): script successfully run
20:26:37 T:139825738934016   DEBUG: OnDownloadComplete - Saving subtitle /storage/.kodi/temp/The 100 S01E02 Signes de vie.en.srt to /storage/video2/Series/The 100 (2014)/Season 1/The 100 S01E02 Signes de vie.en.srt
20:26:37 T:139825640568576   DEBUG: GetExternalStreamDetailsFromFilename - Language = 'eng' / Name = '(Externe)' / Flag = '0' from /storage/video2/Series/The 100 (2014)/Season 1/The 100 S01E02 Signes de vie.en.srt
20:26:37 T:139825640568576  NOTICE: Closing stream player 3
20:26:37 T:139825640568576  NOTICE: Opening stream: 0 source: 1024
20:26:37 T:139825598609152    INFO: Python script stopped
20:26:37 T:139825598609152   DEBUG: Thread LanguageInvoker 139825598609152 terminating
20:26:37 T:139828343904320   DEBUG: ------ Window Deinit (DialogSubtitles.xml) ------
20:26:37 T:139828343895808   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
20:26:37 T:139828343895808   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
20:26:37 T:139825925576448   DEBUG: CDVDAudio::Resume - resume audio stream
20:26:37 T:139827223721728   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:37 T:139828315346688   DEBUG: ActiveAE - start sync of audio stream
20:26:37 T:139827743807232   DEBUG: Skin Helper Service --> Kodi_Monitor: sender xbmc - method: Player.OnPlay  - data: {"item":{"id":2770,"type":"episode"},"player":{"playerid":1,"speed":1}}
20:26:37 T:139825911412480   DEBUG: CLEANSUBS >> PLAYBACK >>RESUMED<<
20:26:37 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:37 T:139827223721728   DEBUG: CLEANSUBS >> PLAYBACK >>RESUMED<<
20:26:37 T:139827223721728   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:37 T:139828315346688   DEBUG: ActiveAE::SyncStream - average error of 228.478067, start adjusting
20:26:37 T:139825623787264   DEBUG: CPullupCorrection: detected pattern of length 1: 41708.33, frameduration: 41708.333333
20:26:37 T:139828315346688   DEBUG: ActiveAE::SyncStream - average error 15.140520, last average error: 228.478067
20:26:37 T:139828315346688   DEBUG: ActiveAE::SyncStream - average error of -16.875179, start adjusting
20:26:37 T:139828315346688   DEBUG: ActiveAE::SyncStream - average error 15.124821 below threshold of 30.000000
20:26:38 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:38 T:139825911412480   DEBUG: CLEANSUBS >> GONNA STOP TIMER - NOT IN SUBS DIALOG ANYMORE
20:26:38 T:139827223721728   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/video2/Series/The 100 (2014)/Season 1
20:26:38 T:139827223721728   DEBUG: CLEANSUBS >> GONNA STOP TIMER - NOT IN SUBS DIALOG ANYMORE
20:26:39 T:139825911412480   DEBUG: CLEANSUBS >> STOPPING TIMER
20:26:39 T:139825925576448   DEBUG: Previous line repeats 1 times.
20:26:39 T:139825925576448   DEBUG: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:34579.508529, adjusted:41708.333333
20:26:40 T:139828343904320   DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
20:27:06 T:139826242234112   DEBUG: Thread JobWorker 139826242234112 terminating (autodelete)
20:27:07 T:139825738934016   DEBUG: Thread JobWorker 139825738934016 terminating (autodelete)
20:28:05 T:139828343904320   DEBUG: LIRC: Update - NEW at 665893:80 0 KEY_STOP devinput (KEY_STOP)
20:28:05 T:139828343904320   DEBUG: OnKey: guide (0xe0) pressed, action is Stop
20:28:05 T:139828343904320  NOTICE: CVideoPlayer::CloseFile()
20:28:05 T:139828343904320  NOTICE: VideoPlayer: waiting for threads to exit
20:28:05 T:139825640568576  NOTICE: CVideoPlayer::OnExit()
20:28:05 T:139825640568576  NOTICE: Closing stream player 1
20:28:05 T:139825640568576  NOTICE: Waiting for audio thread to exit
20:28:05 T:139825925576448  NOTICE: thread end: CVideoPlayerAudio::OnExit()
20:28:05 T:139825925576448   DEBUG: Thread VideoPlayerAudio 139825925576448 terminating
20:28:05 T:139825640568576  NOTICE: Closing audio device
20:28:05 T:139825640568576   DEBUG: CDVDAudio::Flush - flush audio stream
20:28:05 T:139828315346688   DEBUG: CActiveAE::DiscardStream - audio stream deleted
20:28:05 T:139828315346688   DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
20:28:05 T:139825640568576   DEBUG: Previous line repeats 2 times.
20:28:05 T:139825640568576  NOTICE: Deleting audio codec
20:28:05 T:139828306953984    INFO: CActiveAESink::OpenSink - initialize sink
20:28:05 T:139825640568576  NOTICE: Closing stream player 2
20:28:05 T:139825640568576  NOTICE: waiting for video thread to exit
20:28:05 T:139825623787264  NOTICE: thread end: video_thread
20:28:05 T:139825623787264   DEBUG: Thread VideoPlayerVideo 139825623787264 terminating
20:28:05 T:139825640568576  NOTICE: deleting video codec
20:28:05 T:139825640568576   DEBUG: VAAPI::Release pre-cleanup
20:28:05 T:139825640568576  NOTICE: Closing stream player 3
20:28:05 T:139825640568576   DEBUG: OnPlayBackStopped: play state was 2, starting 0
20:28:05 T:139825640568576   DEBUG: Thread VideoPlayer 139825640568576 terminating
20:28:05 T:139828343904320  NOTICE: VideoPlayer: finished waiting
20:28:05 T:139828343895808   DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
20:28:05 T:139828343895808   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
20:28:05 T:139828343904320   DEBUG: DeleteRenderer - deleting renderer
20:28:05 T:139828343904320  NOTICE: VAAPI::Close
20:28:05 T:139825933969152  NOTICE: COutput::OnExit: Output Thread terminated
20:28:05 T:139825933969152   DEBUG: Thread Vaapi-Output 139825933969152 terminating
20:28:05 T:139828343904320   DEBUG: VAAPI::FiniVAAPIOutput destroying 5 video surfaces
20:28:05 T:139828343904320  NOTICE: VAAPI::Close - closing decoder context
20:28:05 T:139828343904320   DEBUG: LinuxRendererGL: Cleaning up GL resources
20:28:05 T:139828343904320   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
20:28:05 T:139828343904320   DEBUG: ------ Window Deinit (VideoFullScreen.xml) ------
20:28:05 T:139828343904320  NOTICE: CWinSystemX11::SetFullScreen - calling xrandr
20:28:05 T:139828343904320   DEBUG: OnLostDevice - notify display change event
20:28:05 T:139825911412480   DEBUG: CLEANSUBS >> PLAYBACK >>STOPPED<<
20:28:05 T:139827743807232   DEBUG: Skin Helper Service --> Kodi_Monitor: sender xbmc - method: Player.OnStop  - data: {"end":false,"item":{"id":2770,"type":"episode"}}
20:28:05 T:139827223721728   DEBUG: CLEANSUBS >> PLAYBACK >>STOPPED<<
2
But it's working on real local files :
Code:
20:44:29 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/videos
20:44:29 T:139828315346688   DEBUG: Previous line repeats 1 times.
20:44:29 T:139828315346688   DEBUG: ActiveAE::SyncStream - average error of 176.150061, start adjusting
20:44:29 T:139825622591232   DEBUG: CLEANSUBS >> SUBS ADDED >>Lincoln (2012) h264-1080p DTSHD-ES-7 6ch.en.srt
20:44:29 T:139825622591232   DEBUG: Previous line repeats 1 times.
20:44:29 T:139825622591232   DEBUG: CLEANSUBS >> SUB STATS WILL BE ADDED TO LOCAL DATABASE
20:44:29 T:139825622591232   DEBUG: CLEANSUBS >> ENC >> OPENED WITH ENCODING: utf-8
20:44:29 T:139825706546944   DEBUG: CLEANSUBS >> SUB STATS WILL BE ADDED TO LOCAL DATABASE
20:44:29 T:139825706546944   DEBUG: CLEANSUBS >> ENC >> OPENED WITH ENCODING: utf-8
20:44:29 T:139828315346688   DEBUG: ActiveAE::SyncStream - average error 20.179778 below threshold of 30.000000
20:44:29 T:139827223721728   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/videos
20:44:29 T:139827223721728   DEBUG: CLEANSUBS >> GONNA STOP TIMER - NOT IN SUBS DIALOG ANYMORE
20:44:29 T:139825911412480   DEBUG: CLEANSUBS >> SUBTITLES DOWNLOAD PATH SET TO: /storage/videos
20:44:29 T:139825911412480   DEBUG: CLEANSUBS >> GONNA STOP TIMER - NOT IN SUBS DIALOG ANYMORE
20:44:29 T:139825622591232   DEBUG: CLEANSUBS >> PROVIDER LOGO:
20:44:30 T:139827223721728   DEBUG: Previous line repeats 1 times.
20:44:30 T:139827223721728   DEBUG: CLEANSUBS >> STOPPING TIMER
20:44:31 T:139828343904320   DEBUG: Previous line repeats 1 times.
20:44:31 T:139828343904320   DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
20:44:33 T:139826955286272   DEBUG: CPullupCorrection: detected pattern of length 1: 41708.33, frameduration: 41708.333333
20:44:51 T:139825622591232   DEBUG: CLEANSUBS >> PROCESSED IN 22.17 SECONDS, REMOVED 2 LINES:
20:44:51 T:139825622591232   DEBUG: CLEANSUBS >> SUBS PROCESSED >>Lincoln (2012) h264-1080p DTSHD-ES-7 6ch.en.srt
20:44:51 T:139825936590592   DEBUG: GetExternalStreamDetailsFromFilename - Language = 'eng' / Name = '(Externe)' / Flag = '0' from /storage/videos/Lincoln (2012) h264-1080p DTSHD-ES-7 6ch.en.srt
20:44:51 T:139825936590592  NOTICE: Closing stream player 3
20:44:51 T:139825936590592  NOTICE: Opening stream: 0 source: 1024
20:44:51 T:139825936590592   ERROR: OpenStream - Unable to create subtitle parser
20:44:51 T:139825706546944   DEBUG: CLEANSUBS >> COULDN'T RENAME TEMP SUBS
20:44:51 T:139825706546944   DEBUG: CLEANSUBS >> PROCESSED IN 22.17 SECONDS, REMOVED 2 LINES:
20:44:51 T:139825706546944   DEBUG: CLEANSUBS >> SUBS PROCESSED >>Lincoln (2012) h264-1080p DTSHD-ES-7 6ch.en.srt
20:44:51 T:139825936590592   DEBUG: GetExternalStreamDetailsFromFilename - Language = 'eng' / Name = '(Externe)' / Flag = '0' from /storage/videos/Lincoln (2012) h264-1080p DTSHD-ES-7 6ch.en.srt
20:44:51 T:139825936590592  NOTICE: Opening stream: 0 source: 1024
20:44:51 T:139825936590592   ERROR: OpenStream - Unable to create subtitle parser
20:44:58 T:139825630983936   DEBUG: Thread JobWorker 139825630983936 terminating (autodelete)
2

Although it seems to process the subtitle twice.
Can't this be the rights issue? I'll test some more.

I ask because of this line:

CLEANSUBS >> COULDN'T RENAME TEMP SUBS

(in 2nd log)
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24