Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP link does not scan for additional subtitles #25072

Open
6 tasks
azukaar opened this issue Apr 27, 2024 · 2 comments
Open
6 tasks

HTTP link does not scan for additional subtitles #25072

azukaar opened this issue Apr 27, 2024 · 2 comments
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it

Comments

@azukaar
Copy link

azukaar commented Apr 27, 2024

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:

While streaming a local file, in the folder /some/path, Kodi will scan /some for subtitles. But, when using VFS with HTTP Web Server, Kodi won't even attempt to read them.

Expected Behavior

Here is a clear and concise description of what was expected to happen:

When reading an HTTP stream, Kodi should attempt to match the path as if it was a folder, since VFS plugins actually do expose plugins

Actual Behavior

The scan does not happen at all (not even tried)

Possible Fix

Scan for subtitles. If an error happen, simply silently fail (as in not in the UI) which should happen when the HTTP link is not exposing a folder

To Reproduce

Steps to reproduce the behavior:

  1. Add Web HTTP Folder as VFS
  2. Start movie
  3. See missing subtitles

Debuglog

The debuglog can be found here:

  • For a working local file:
2024-04-27 15:42:29.664 T:19968    info <general>: VideoPlayer::OpenFile: videodb://movies/titles/2?xsp=%7b%22limit%22%3a15%2c%22order%22%3a%7b%22direction%22%3a%22descending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22dateadded%22%7d%2c%22rules%22%3a%7b%22and%22%3a%5b%7b%22field%22%3a%22dateadded%22%2c%22operator%22%3a%22after%22%2c%22value%22%3a%5b%222012-01-01%22%5d%7d%2c%7b%22field%22%3a%22playcount%22%2c%22operator%22%3a%22lessthan%22%2c%22value%22%3a%5b%221%22%5d%7d%5d%7d%2c%22type%22%3a%22movies%22%7d
2024-04-27 15:42:29.665 T:21956   debug <general>: Thread VideoPlayer start, auto delete: false
2024-04-27 15:42:29.665 T:19968   debug <general>: CApplicationPlayerCallback::OnPlayBackStarted: CApplication::OnPlayBackStarted
2024-04-27 15:42:29.665 T:21956    info <general>: Creating InputStream
2024-04-27 15:42:29.666 T:9604    debug <general>: Loading settings for videodb://movies/titles/2?xsp=%7b%22limit%22%3a15%2c%22order%22%3a%7b%22direction%22%3a%22descending%22%2c%22ignorefolders%22%3a0%2c%22method%22%3a%22dateadded%22%7d%2c%22rules%22%3a%7b%22and%22%3a%5b%7b%22field%22%3a%22dateadded%22%2c%22operator%22%3a%22after%22%2c%22value%22%3a%5b%222012-01-01%22%5d%7d%2c%7b%22field%22%3a%22playcount%22%2c%22operator%22%3a%22lessthan%22%2c%22value%22%3a%5b%221%22%5d%7d%5d%7d%2c%22type%22%3a%22movies%22%7d
2024-04-27 15:42:29.667 T:21956   debug <general>: CUtil::ScanForExternalSubtitles: Searching for subtitles...
2024-04-27 15:42:29.668 T:21956    info <general>: CUtil::ScanPathsForAssociatedItems: found associated file C:\Users\azuka\Desktop\KodUp\movies\Asterix and Cleopatra (1968)\Asterix and Cleopatra (1968) Bluray-720p Proper.de.srt
2024-04-27 15:42:29.668 T:21956    info <general>: CUtil::ScanPathsForAssociatedItems: found associated file C:\Users\azuka\Desktop\KodUp\movies\Asterix and Cleopatra (1968)\Asterix and Cleopatra (1968) Bluray-720p Proper.en.forced.srt
2024-04-27 15:42:29.668 T:21956    info <general>: CUtil::ScanPathsForAssociatedItems: found associated file C:\Users\azuka\Desktop\KodUp\movies\Asterix and Cleopatra (1968)\Asterix and Cleopatra (1968) Bluray-720p Proper.en.srt
2024-04-27 15:42:29.668 T:21956    info <general>: CUtil::ScanPathsForAssociatedItems: found associated file C:\Users\azuka\Desktop\KodUp\movies\Asterix and Cleopatra (1968)\Asterix and Cleopatra (1968) Bluray-720p Proper.es.srt
2024-04-27 15:42:29.668 T:21956    info <general>: CUtil::ScanPathsForAssociatedItems: found associated file C:\Users\azuka\Desktop\KodUp\movies\Asterix and Cleopatra (1968)\Asterix and Cleopatra (1968) Bluray-720p Proper.fr.srt
2024-04-27 15:42:29.668 T:21956   debug <general>: CUtil::ScanForExternalSubtitles: END (total time: 0 ms)
2024-04-27 15:42:29.668 T:21956   debug <general>: CUtil::GetExternalStreamDetailsFromFilename - Language = 'ger' / Name = '(External)' / Flag = '0' from C:\Users\azuka\Desktop\KodUp\movies\Asterix and Cleopatra (1968)\Asterix and Cleopatra (1968) Bluray-720p Proper.de.srt
2024-04-27 15:42:29.668 T:21956   debug <general>: CUtil::GetExternalStreamDetailsFromFilename - Language = 'eng' / Name = '(External)' / Flag = '64' from C:\Users\azuka\Desktop\KodUp\movies\Asterix and Cleopatra (1968)\Asterix and Cleopatra (1968) Bluray-720p Proper.en.forced.srt
2024-04-27 15:42:29.668 T:21956   debug <general>: CUtil::GetExternalStreamDetailsFromFilename - Language = 'eng' / Name = '(External)' / Flag = '0' from C:\Users\azuka\Desktop\KodUp\movies\Asterix and Cleopatra (1968)\Asterix and Cleopatra (1968) Bluray-720p Proper.en.srt
2024-04-27 15:42:29.668 T:21956   debug <general>: CUtil::GetExternalStreamDetailsFromFilename - Language = 'spa' / Name = '(External)' / Flag = '0' from C:\Users\azuka\Desktop\KodUp\movies\Asterix and Cleopatra (1968)\Asterix and Cleopatra (1968) Bluray-720p Proper.es.srt
2024-04-27 15:42:29.668 T:21956   debug <general>: CUtil::GetExternalStreamDetailsFromFilename - Language = 'fre' / Name = '(External)' / Flag = '0' from C:\Users\azuka\Desktop\KodUp\movies\Asterix and Cleopatra (1968)\Asterix and Cleopatra (1968) Bluray-720p Proper.fr.srt
2024-04-27 15:42:29.668 T:21956    info <general>: Creating Demuxer
2024-04-27 15:42:29.668 T:21956   debug <general>: CDVDDemuxFFmpeg::Open - probing detected format [matroska,webm]
2024-04-27 15:42:29.668 T:21956   debug <general>: CDVDDemuxFFmpeg::Open - avformat_find_stream_info starting
2024-04-27 15:42:29.670 T:21956   debug <general>: CDVDDemuxFFmpeg::Open - av_find_stream_info finished
  • For a broken HTTP link of the same folder:
2024-04-27 15:43:43.649 T:19968    info <general>: VideoPlayer::OpenFile: http://192.168.1.102:8080/file/Asterix%20and%20Cleopatra%20%281968%29/Asterix%20and%20Cleopatra%20%281968%29%20Bluray-720p%20Proper.mkv
2024-04-27 15:43:43.649 T:14000   debug <general>: Thread VideoPlayer start, auto delete: false
2024-04-27 15:43:43.649 T:19968   debug <general>: CApplicationPlayerCallback::OnPlayBackStarted: CApplication::OnPlayBackStarted
2024-04-27 15:43:43.650 T:11548   debug <general>: Thread BackgroundLoader start, auto delete: false
2024-04-27 15:43:43.650 T:14000   debug <general>: CCurlFile::XFILE::CCurlFile::GetMimeType - <http://192.168.1.102:8080/file/Asterix%20and%20Cleopatra%20%281968%29/Asterix%20and%20Cleopatra%20%281968%29%20Bluray-720p%20Proper.mkv> -> video/x-matroska
2024-04-27 15:43:43.650 T:14000    info <general>: Creating InputStream
2024-04-27 15:43:43.650 T:14000   debug <general>: CurlFile::XFILE::CCurlFile::Open - <http://192.168.1.102:8080/file/Asterix%20and%20Cleopatra%20%281968%29/Asterix%20and%20Cleopatra%20%281968%29%20Bluray-720p%20Proper.mkv>
2024-04-27 15:43:43.651 T:14000   debug <general>: CFileCache::XFILE::CFileCache::Open - <http://192.168.1.102:8080/file/Asterix%20and%20Cleopatra%20%281968%29/Asterix%20and%20Cleopatra%20%281968%29%20Bluray-720p%20Proper.mkv> opening
2024-04-27 15:43:43.651 T:14000   debug <general>: CurlFile::XFILE::CCurlFile::Open - <http://192.168.1.102:8080/file/Asterix%20and%20Cleopatra%20%281968%29/Asterix%20and%20Cleopatra%20%281968%29%20Bluray-720p%20Proper.mkv>
2024-04-27 15:43:43.652 T:14000   debug <general>: CFileCache::XFILE::CFileCache::Open - <http://192.168.1.102:8080/file/Asterix%20and%20Cleopatra%20%281968%29/Asterix%20and%20Cleopatra%20%281968%29%20Bluray-720p%20Proper.mkv> source chunk size is 0, setting cache chunk size to 131072
2024-04-27 15:43:43.652 T:14000   debug <general>: CFileCache::XFILE::CFileCache::Open - <http://192.168.1.102:8080/file/Asterix%20and%20Cleopatra%20%281968%29/Asterix%20and%20Cleopatra%20%281968%29%20Bluray-720p%20Proper.mkv> using double memory cache each sized 10485760 bytes
2024-04-27 15:43:43.652 T:4600    debug <general>: Loading settings for http://192.168.1.102:8080/file/Asterix%20and%20Cleopatra%20%281968%29/Asterix%20and%20Cleopatra%20%281968%29%20Bluray-720p%20Proper.mkv
2024-04-27 15:43:43.652 T:6064    debug <general>: Thread FileCache start, auto delete: false
2024-04-27 15:43:43.652 T:14000    info <general>: Creating Demuxer
2024-04-27 15:43:43.652 T:11548   debug <general>: Thread BackgroundLoader 11548 terminating
2024-04-27 15:43:43.652 T:14000   debug <general>: CDVDDemuxFFmpeg::Open - probing detected format [matroska,webm]
2024-04-27 15:43:43.652 T:14000   debug <general>: CDVDDemuxFFmpeg::Open - avformat_find_stream_info starting
2024-04-27 15:43:43.654 T:14000   debug <general>: CDVDDemuxFFmpeg::Open - av_find_stream_info finished

Screenshots

Here are some links or screenshots to help explain the problem:

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

Subtitles are missing

3sub

But if I go to "browse" they appear:

image

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • Linux

  • macOS

  • [*] Windows

  • Windows UWP

  • Operating system version/name:

  • Kodi version: 21.0

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

@xbmc-gh-bot xbmc-gh-bot bot added the Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it label Apr 27, 2024
@sarbes sarbes added the Ignored rules issue that does not follow the rules (no template, missing debug log, ...) label Apr 29, 2024
@xbmc-gh-bot
Copy link

xbmc-gh-bot bot commented Apr 29, 2024

Thank you for using Kodi and our issue tracker. This is your friendly Kodi GitHub bot 😉

The issue that you have opened was marked as ignoring the rules of our bug tracker by a team member. Please review the following requirements for issue reports and make sure that you follow all of them:

  • Reports must follow our template and have all relevant fields filled in.
  • A full debug log is always mandatory.
    • Make sure that you restart Kodi after setting the log level to debug.
    • Log files may not be modified except for the removal of personally identifying information, usernames/passwords and similar.
    • For build errors, include a full build log instead.
  • You may not have any banned add-ons installed.
  • Bugs should be reproduced on a clean Kodi installation whenever possible.

Please understand that adherence to these rules is required for the team to be able to handle the volume of open issues efficiently. The issue will be closed after one week has passed without satisfactory follow-up from your side.

@azukaar
Copy link
Author

azukaar commented Apr 29, 2024

Here is the full debug log https://pastebin.com/nXH0YtGF @sarbes

@neo1973 neo1973 removed the Ignored rules issue that does not follow the rules (no template, missing debug log, ...) label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it
Projects
None yet
Development

No branches or pull requests

3 participants