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

Some Posters Not Displayed If Scanning Local Media Info Via FTP #22922

Closed
MidnightWatcher opened this issue Mar 6, 2023 · 2 comments
Closed

Comments

@MidnightWatcher
Copy link

Bug report

Kodi 20 Nexus not displaying some movie posters of locally stored nfo information

Describe the bug

After scraping all movies in my library using TinyMediaManager 4.3.8.1 to create the .nfo and save the movie poster, fanart and clearlogo in each movie's directory, I then proceeded to download a custom movie poster for some of titles since I didn't like any of the options available in TMM. Once completed, I had multiple Kodi devices scrape all movies using Local information only.

Expected Behavior

All devices should use local .nfo information and display posters, fanart and clearlogo.

Actual Behavior

I used three Kodi devices. For two devices, most titles displayed the posters, fanart and clearlogo correctly, however Kodi did not display some of the custom movie posters that I downloaded and told TMM to use. The filenames for the posters are correct in the movie folder's directly (movie_name-poster.jpg) and I can manually select and use the custom poster after browsing to the Item Folder. For the third device, however, everything displayed correctly as expected, including all custom movie posters. There were no issues.

After some investigation, it was discovered that scanning Local information only via FTP is the culprit. The two devices that were having the issue (Firestick 4K, Windows 11 HTPC) were scanning my media via an FTP server (which I decided to use at some point for maximum speed since these two are connected via WiFi) whereas the third device (nVidia Shield Pro) that displayed all custom movie posters correctly as expected had scanned all local media via a SMB server. When I tested the WIFI Firestick 4K and the Windows 10 HTPC using SMB as the source, it also displayed all movie posters correctly as expected (tried both the official Kodi 20 release as well as the 21 Alpha1 and both had the same results).

Possible Fix

Determine why scanning via FTP results in some custom movie posters failing to be displayed in Kodi.

To Reproduce

To reproduce this bug:

  1. Scan in a few titles using TinyMediaManager (https://www.tinymediamanager.org/)
  2. Download a preferred poster from http://www.impawards.com/
  3. Have TinyMediaManager use the downloaded poster
  4. Scan media via FTP in Kodi

Debuglog

Here is one such title "9 (2009)" that is not showing movie poster, but a screenshot instead (log excerpt is from the Windows 11 HTPC):

2023-03-06 15:47:10.875 T:16112 info : CCurlFile::XFILE::CCurlFile::Stat - <ftp://USERNAME:PASSWORD@192.168.1.13:21/HD Movies/9 (2009)/> Content length failed: No error(0)
2023-03-06 15:47:10.875 T:16112 debug : CurlFile::XFILE::CCurlFile::Open - ftp://USERNAME:PASSWORD@192.168.1.13:21/HD%20Movies/9%20(2009)/
2023-03-06 15:47:10.896 T:16112 debug : VideoInfoScanner: Scanning dir 'ftp://192.168.1.13:21/HD Movies/9 (2009)/' as not in the database
2023-03-06 15:47:10.897 T:16112 debug : CurlFile::XFILE::CCurlFile::Open - ftp://USERNAME:PASSWORD@192.168.1.13:21/HD%20Movies/9%20(2009)/9.bluray.nfo
2023-03-06 15:47:10.950 T:16112 debug : VideoInfoScanner: Found matching full NFO file: ftp://192.168.1.13:21/HD Movies/9 (2009)/9.bluray.nfo
2023-03-06 15:47:10.951 T:16112 debug : CFileCache::XFILE::CFileCache::Open - <ftp://192.168.1.13:21/HD Movies/9 (2009)/9.bluray.mkv> opening
2023-03-06 15:47:10.951 T:16112 debug : CurlFile::XFILE::CCurlFile::Open - ftp://USERNAME:PASSWORD@192.168.1.13:21/HD%20Movies/9%20(2009)/9.bluray.mkv
2023-03-06 15:47:11.066 T:16112 debug : CFileCache::XFILE::CFileCache::Open - <ftp://192.168.1.13:21/HD Movies/9 (2009)/9.bluray.mkv> source chunk size is 0, setting cache chunk size to 131072
2023-03-06 15:47:11.066 T:16112 debug : CFileCache::XFILE::CFileCache::Open - <ftp://192.168.1.13:21/HD Movies/9 (2009)/9.bluray.mkv> using double memory cache each sized 52428800 bytes
2023-03-06 15:47:11.066 T:15440 debug : Thread FileCache start, auto delete: false
2023-03-06 15:47:11.067 T:16112 debug : CDVDDemuxFFmpeg::Open - probing detected format [matroska,webm]
2023-03-06 15:47:11.067 T:15440 debug : CurlFile::CReadState::XFILE::CCurlFile::CReadState::Connect - (0x29b4491ee60) Resume from position 2615295126
2023-03-06 15:47:11.156 T:15440 debug : CDoubleCache::XFILE::CDoubleCache::Reset - (0x29b4491f5e0) Cache miss for 2615295126 with new=0-0 and old=0-14600
2023-03-06 15:47:11.156 T:15440 debug : CFileCache::XFILE::CFileCache::Process - <ftp://192.168.1.13:21/HD Movies/9 (2009)/9.bluray.mkv> cache completely reset for seek to position 2615295126
2023-03-06 15:47:11.156 T:16112 debug : CFileCache::XFILE::CFileCache::Seek - <ftp://192.168.1.13:21/HD Movies/9 (2009)/9.bluray.mkv> waiting for position 2615394569
2023-03-06 15:47:11.162 T:15440 debug : CurlFile::CReadState::XFILE::CCurlFile::CReadState::Connect - (0x29b4491ee60) Resume from position 14600
2023-03-06 15:47:11.241 T:16112 debug : CDVDDemuxFFmpeg::Open - avformat_find_stream_info starting
2023-03-06 15:47:11.243 T:16112 debug : CDVDDemuxFFmpeg::Open - av_find_stream_info finished
2023-03-06 15:47:11.243 T:16112 debug : CDVDDemuxFFmpeg::AddStream ID: 0
2023-03-06 15:47:11.243 T:16112 debug : CDVDDemuxFFmpeg::AddStream ID: 1
2023-03-06 15:47:11.245 T:15440 debug : Thread FileCache 15440 terminating
2023-03-06 15:47:11.246 T:16112 debug : VideoInfoScanner: Extracted filestream details from video file ftp://192.168.1.13:21/HD Movies/9 (2009)/9.bluray.mkv
2023-03-06 15:47:11.246 T:16112 debug : VideoInfoScanner: Adding new item to movies:ftp://192.168.1.13:21/HD Movies/9 (2009)/9.bluray.mkv
2023-03-06 15:47:11.341 T:16112 debug : VideoInfoScanner: Finished adding information from dir ftp://192.168.1.13:21/HD Movies/9 (2009)/

Your Environment

  • [X ] Android (Firestick 4K) - Using FTP - Does not display some custom posters
  • [X ] Android (nVidia Shield Pro) - Using SMB, Displays all posters
  • [X ] Windows 11 HTPC - Using FTP - Does not display some custom posters
@frezeen
Copy link

frezeen commented Apr 27, 2023

confirm this.

kodi on win11 too dont found extra arts,like discarts when FTP remote path is used.
its ok with smb protocol.

@MidnightWatche
do u found a temp fix?

@arnova
Copy link
Member

arnova commented May 4, 2023

You need to explicitly enable this using advancedsettings.xml: See https://kodi.wiki/view/Advancedsettings.xml

@arnova arnova closed this as completed May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants