Hi all,
When wanting to download the subtitles for an episode, it seems to make the right query but the results show a query from the next item in the folder. This happens only in one particular folder, in all other folders it works just fine. Also when I use the manual search for the same item, I find the right subtitles.
The files in the folder:
p0c@server ~ $ ls -l media/series/Star\ Trek\:\ Deep\ Space\ Nine/Season\ 1/
total 7172960
-rw-r--r-- 1 p0c p0c 733722628 Dec 7 2015 'S01E01E02 - Emissary.avi'
-rw-r--r-- 1 p0c p0c 366892756 Dec 7 2015 'S01E03 - Past Prologue.avi'
-rw-r--r-- 1 p0c p0c 367290512 Dec 7 2015 'S01E04 - A Man Alone.avi'
-rw-r--r-- 1 p0c p0c 366742378 Dec 7 2015 'S01E05 - Babel.avi'
-rw-r--r-- 1 p0c p0c 366677772 Dec 7 2015 'S01E06 - Captive Pursuit.avi'
-rw-r--r-- 1 p0c p0c 366726366 Dec 7 2015 'S01E07 - Q-Less.avi'
-rw-r--r-- 1 p0c p0c 367869756 Dec 7 2015 'S01E08 - Dax.avi'
-rw-r--r-- 1 p0c p0c 367678378 Dec 7 2015 'S01E09 - The Passenger.avi'
-rw-r--r-- 1 p0c p0c 366908678 Dec 7 2015 'S01E10 - Move Along Home.avi'
-rw-r--r-- 1 p0c p0c 367490162 Dec 7 2015 'S01E11 - The Nagus.avi'
-rw-r--r-- 1 p0c p0c 366899336 Dec 7 2015 'S01E12 - Vortex.avi'
-rw-r--r-- 1 p0c p0c 367093352 Dec 7 2015 'S01E13 - Battle Lines.avi'
-rw-r--r-- 1 p0c p0c 367843594 Dec 7 2015 'S01E14 - The Storyteller.avi'
-rw-r--r-- 1 p0c p0c 367958618 Dec 7 2015 'S01E15 - Progress.avi'
-rw-r--r-- 1 p0c p0c 367324466 Dec 7 2015 'S01E16 - If Wishes Were Horses.avi'
-rw-r--r-- 1 p0c p0c 367734240 Dec 7 2015 'S01E17 - The Forsaken.avi'
-rw-r--r-- 1 p0c p0c 366826908 Dec 7 2015 'S01E18 - Dramatis Personae.avi'
-rw-r--r-- 1 p0c p0c 367695160 Dec 7 2015 'S01E19 - Duet.avi'
-rw-r--r-- 1 p0c p0c 367648962 Dec 7 2015 'S01E20 - In The Hands Of The Prophets.avi'
The listing of all episodes: https://drive.google.com/open?id=0B3TPPg…3BPZkxrR2M
When I make a search for the episode name (this show the problem in one picture): https://drive.google.com/open?id=0B3TPPg…3d1SVZkX0k
This is the relevant debug log at the same time. Seems to me that it’s making the right query..
13:32:59 T:1948516352 DEBUG: ------ Window Init (DialogSeekBar.xml) ------
13:32:59 T:1850733472 DEBUG: StartScript - calling plugin OpenSubtitles.org('plugin://service.subtitles.opensubtitles/','1','?action=search&languages=English&preferredlanguage=Unknown')
13:32:59 T:1850733472 DEBUG: WaitOnScriptResult - waiting on the OpenSubtitles.org (id=1) plugin...
13:32:59 T:1572856736 DEBUG: Thread LanguageInvoker start, auto delete: false
13:32:59 T:1572856736 INFO: initializing python engine.
13:32:59 T:1572856736 DEBUG: CPythonInvoker(1, /home/p0c/.kodi/addons/service.subtitles.opensubtitles/service.py): start processing
13:32:59 T:1572856736 DEBUG: -->Python Interpreter Initialized<--
13:32:59 T:1572856736 DEBUG: CPythonInvoker(1, /home/p0c/.kodi/addons/service.subtitles.opensubtitles/service.py): the source file to load is "/home/p0c/.kodi/addons/service.subtitles.opensubtitles/service.py"
13:32:59 T:1572856736 DEBUG: CPythonInvoker(1, /home/p0c/.kodi/addons/service.subtitles.opensubtitles/service.py): setting the Python path to /home/p0c/.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
13:32:59 T:1572856736 DEBUG: CPythonInvoker(1, /home/p0c/.kodi/addons/service.subtitles.opensubtitles/service.py): entering source directory /home/p0c/.kodi/addons/service.subtitles.opensubtitles
13:32:59 T:1572856736 DEBUG: CPythonInvoker(1, /home/p0c/.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
13:33:00 T:1572856736 DEBUG: ### [__main__] - action 'search' called
13:33:00 T:1572856736 DEBUG: ### [__main__] - VideoPlayer.OriginalTitle not found
13:33:00 T:1572856736 DEBUG: ### [OSUtilities] - Search String [ Star+Trek:+Deep+Space+Nine+S01E03 ]
13:33:00 T:1572856736 DEBUG: ### [OSUtilities] - Hash Standard file
13:33:00 T:1572856736 DEBUG: ### [OSUtilities] - OpenSubtitles module hash [81b6e7b390f01c2d] and size [366892756]
13:33:00 T:1850733472 DEBUG: WaitOnScriptResult- plugin returned successfully
13:33:00 T:1572856736 INFO: CPythonInvoker(1, /home/p0c/.kodi/addons/service.subtitles.opensubtitles/service.py): script successfully run
13:33:00 T:1572856736 INFO: Python script stopped
13:33:00 T:1572856736 DEBUG: Thread LanguageInvoker 1572856736 terminating
13:33:01 T:1618998176 DEBUG: webserver: request received for /jsonrpc
13:33:01 T:1572856736 DEBUG: Previous line repeats 5 times.
13:33:01 T:1572856736 DEBUG: GetMovieId (/home/p0c/media/series/Star Trek: Deep Space Nine/Season 1/S01E03 - Past Prologue.avi), query = select idMovie from movie where idFile=368
13:33:01 T:1572856736 DEBUG: GetEpisodeId (/home/p0c/media/series/Star Trek: Deep Space Nine/Season 1/S01E03 - Past Prologue.avi), query = select idEpisode from episode where idFile=368
13:33:04 T:1572856736 DEBUG: webserver: request received for /jsonrpc
13:33:04 T:1618998176 DEBUG: Previous line repeats 5 times.
13:33:04 T:1618998176 DEBUG: GetMovieId (/home/p0c/media/series/Star Trek: Deep Space Nine/Season 1/S01E03 - Past Prologue.avi), query = select idMovie from movie where idFile=368
13:33:04 T:1618998176 DEBUG: GetEpisodeId (/home/p0c/media/series/Star Trek: Deep Space Nine/Season 1/S01E03 - Past Prologue.avi), query = select idEpisode from episode where idFile=368
13:33:07 T:1618998176 DEBUG: webserver: request received for /jsonrpc
13:33:07 T:1572856736 DEBUG: Previous line repeats 5 times.
13:33:07 T:1572856736 DEBUG: GetMovieId (/home/p0c/media/series/Star Trek: Deep Space Nine/Season 1/S01E03 - Past Prologue.avi), query = select idMovie from movie where idFile=368
13:33:07 T:1572856736 DEBUG: GetEpisodeId (/home/p0c/media/series/Star Trek: Deep Space Nine/Season 1/S01E03 - Past Prologue.avi), query = select idEpisode from episode where idFile=368
13:33:10 T:1572856736 DEBUG: webserver: request received for /jsonrpc
13:33:10 T:1948516352 DEBUG: Previous line repeats 3 times.
13:33:10 T:1948516352 INFO: Python, unloading python shared library because no scripts are running anymore
13:33:10 T:1572856736 DEBUG: webserver: request received for /jsonrpc
13:33:10 T:1948516352 DEBUG: UnloadExtensionLibs, clearing python extension libraries
13:33:10 T:1746924448 DEBUG: webserver: request received for /jsonrpc
13:33:10 T:1746924448 DEBUG: GetMovieId (/home/p0c/media/series/Star Trek: Deep Space Nine/Season 1/S01E03 - Past Prologue.avi), query = select idMovie from movie where idFile=368
13:33:10 T:1746924448 DEBUG: GetEpisodeId (/home/p0c/media/series/Star Trek: Deep Space Nine/Season 1/S01E03 - Past Prologue.avi), query = select idEpisode from episode where idFile=368
The odd thing in this case is maybe the “S01E01E02 – Emissary.avi” episode, though it didn’t fix the issue when I split this up into two episodes (resp. S01E01 and S01E02).
Any suggestions?