Subtitle downloader doesnt work if previous video wasnt played until the end


I believe, I found a small bug in OSMC.

If you stop previous video early (let say, skip credits), subtitle downloader will fail. There is blank space where name of actualy playing video should be when you try to download subtitles. This issue doesnt occur when previous video run to the end and close naturaly.

If this happens, all what is need to do is to move any video to the end so it close naturaly and downloader is working again, it is a bit annoying solution thou.

To get a better understanding of the problem you are experiencing we need more information from you. The best way to get this information is for you to upload logs that demonstrate your problem. You can learn more about how to submit a useful support request here.

Depending on the used skin you have to set the settings-level to standard or higher, in summary:

  • enable debug logging at settings->system->logging

  • reboot the OSMC device

  • reproduce the issue

  • upload the log set either using the Log Uploader method within the My OSMC menu in the GUI or the ssh method invoking command grab-logs -A

  • publish the provided URL from the log set upload, here

Thanks for your understanding. We hope that we can help you get up and running again shortly.

OSMC skin screenshot:

here you go :slight_smile:

2020-01-29 20:26:58.746 T:1471144672 DEBUG: ### [BSPlayer.params] - Current Action: search.
2020-01-29 20:26:58.746 T:1471144672 DEBUG: ### [BSPlayer.video_path] - Current Video Path: .
2020-01-29 20:26:58.746 T:1471144672 DEBUG: ### [BSPlayer.languages] - Current Languages: {‘slo’: ‘Slovak’, ‘eng’: ‘English’, ‘cze’: ‘Czech’}.
2020-01-29 20:26:58.748 T:1471144672 DEBUG: ### [BSPlayer.api_request] - Sending request: logIn.
2020-01-29 20:26:58.877 T:1471144672 DEBUG: ### [BSPlayer.login] - Logged In Successfully.
2020-01-29 20:26:58.877 T:1471144672 DEBUG: ### [utils.movie_size_and_hash] - ERROR: SizeError (0).
2020-01-29 20:26:58.877 T:1471144672 DEBUG: ### [BSPlayer.api_request] - Sending request: logOut.
2020-01-29 20:26:59.009 T:1471144672 DEBUG: ### [BSPlayer.logout] - Logged Out Successfully.

I would suggest contacting the maintainer of the subtitle provider you are using.

I dont think there is problem in subtitle provider code. I believe I tracked problem to xbmc python api.

log(“BSPlayer.params”, “Current Action: %s.” % params[‘action’])
if params[‘action’] == ‘search’:
video_path = get_video_path() <— this returns nothing
if video_path.startswith(‘http://’) or video_path.startswith(‘https://’):
notify(scriptname, language, 32001)
log(“BSPlayer.get_video_path”, “Streaming not supported.”)
log(“BSPlayer.video_path”, “Current Video Path: %s.” % video_path) <-- Line from debug
languages = get_languages_dict(params[‘languages’])

xbmc.Player().getPlayingFile() probably return empty string. Where should I report this problem ?

I would start a post on Kodi forums or a GitHub issue with logs and a script to reproduce the problem.