2020-05-17, 10:30
(2020-03-23, 13:44)Statler1978 Wrote:If the addon wouldn't know the title it would of fail to find the subtitle. But is not the case. The addon is searching and downloading the correct subtitle for the correct file. It then pass the downloaded file info to GUIDialogSubtitles which decide where to save the subtitle based on user settings(next to the movie or custom folder).(2020-03-23, 13:20)shmizan Wrote:(2020-03-22, 14:07)Klojum Wrote: Sure, that would be it. IMHO, if this was truly a Kodi problem, at half of all Windows users would be kicking and screaming here, probably some of the other OS users as well. But that is not the case. Here we have not even a handful cases where properly storing subtitles is a problem. So it's either a write permission issue, outside interference or divine intervention. So far we haven't been able to replicate the problem.will someone look into it, if I post logs?
"Play next video automatically" is a fairly overlooked feature, so I am not sure about the screaming and kicking part..
it's not permission issue, since it saves next to the files perfectly fine if I turn it off.
It's actually a relative path 'issue' . Play next sends relative path to player and therefore can't search for subtitles as there is no title to search with. This is not a Kodi problem but an addon issue. The addons cannot translate the relative path to a title and therefore won't work. Kodi needs to use relative path in order to be able to create a playlist. Unfortunately it's not the answer you were looking for but it's an answer nonetheless.
1. When GUIDialogSubtitles is call it search for available subtitle addons and it present a list of them to the user
2. When user is choosing an addon GUIDialogSubtitles calls the addon with parameters: action=search, languages to search for and a preferred language if one is set.
Note that the title or the database id of the movie is never passed to the addon
3. The addon is identifying the playing title and is searching subtitles for requested languages. When finished it passes back to GUIDialogSubtitles a list of found subtitles from which the user can choose. This list must contain the addon ID and the link of the subtitle.
4. When user choose one subtitle GUIDialogSubtitles is calling again the addon this time with parameters: action=download and the url of the subtitle.
5. The addon is downloading the requested subtitle, store it in a temp folder of its own and pass back to GUIDialogSubtitles this location.
6. GUIDialogSubtitles take the subtitle file and based on user settings(next to the movie or custom folder) make a decission and copy the subtitle to its final destination.
So is kodi who fail to get the correct path and title. You can tell that by the fact that even if the addon is doawnloading and passing to Kodi a file named correct_title_name.srt Kodi save it as something like 9985.srt. That number is the database uniqueid of the title.