Movie scraper doesn't work with some files

Hi guys, I’ve searched for this issue with no luck, I’m sorry if this has been already resolved.
With some files, all 4K HDR x265 ripped from UHD Blu-ray, I cannot get any name from the scraper.
Looking into the log I can only find this string:

19:25:23.756 T:4069900896 WARNING: No information found for item ‘nfs://192.168.1.4/volume1/MOVIES/Skyscraper.2018.mkv’, it won’t be added to the library.
19:25:34.585 T:3858756336 ERROR: EXCEPTION: Non-Existent Control 300
19:25:40.154 T:3543896816 WARNING: CPythonInvoker(12): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.

Every other 1080 x264 rip gets his name from the scraper. Any suggestion?

Try enabling debug logging

https://paste.osmc.tv/losusetivu

I think it is searching the name within the file, maybe in some metadata, because I’ve renamed it but in the log it appears with the scene name

Yes, the scraper is using the MKV “file title”.

Something that always works is to add a minimal .NFO file for the scraper to find. For the movie in question, this would be:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<movie>
    <title>Skyscraper</title>
</movie>
http://www.imdb.com/title/tt5758778/

Don’t worry about using IMDB instead of the Movie Database in the file…the scraper will look up the IMDB ID at the Movie Database.

So I just need to put a .nfo file like that with the same file name?

Exactly.

Do the same for other files that won’t scrape right (changing the <title> and URL to match the movie, of course).

Compared the scraper search in your log with a test on my system:

...
19:59:15.329 T:4068233824   DEBUG: CNFSFile::Open - opened volume1/MOVIES/Skyscraper.2018.mkv
19:59:15.342 T:3658822384   DEBUG: Thread VideoInfoDownloader start, auto delete: false
19:59:15.342 T:3658822384   DEBUG: FindMovie: Searching for 'Skyscraper.2018.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ' using The Movie Database scraper (path: '/home/osmc/.kodi/addons/metadata.themoviedb.org', content: 'movies', version: '5.1.4')
19:59:15.360 T:3658822384   DEBUG: scraper: CreateSearchUrl returned <url>https://api.tmdb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&amp;query=Skyscraper.2018.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ&amp;year=0&amp;language=en</url>
19:59:15.361 T:3658822384   DEBUG: CurlFile::Open(0xafea2460) https://api.tmdb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&query=Skyscraper.2018.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ&year=0&language=en
19:59:15.361 T:3658822384    INFO: easy_acquire - Created session to https://api.tmdb.org
19:59:15.698 T:3658822384   DEBUG: Get: Using "UTF-8" charset for "https://api.tmdb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&query=Skyscraper.2018.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ&year=0&language=en"
19:59:15.700 T:3658822384   DEBUG: scraper: GetSearchResults returned <results></results>

my system, looking vor “Zurück in die Zukunft 1885”

...
10:15:13.745 T:4057985792   DEBUG: VideoInfoScanner: No NFO file found. Using title search for '/mnt/Intenso2766GB/video/Filme/Filme_neu/ZURÃœCK_IN_DIE_ZUKUNFT_1985.mkv'
10:15:13.746 T:4057985792   DEBUG: FindMovie: Searching for 'ZURÃœCK IN DIE ZUKUNFT' using The Movie Database scraper (path: '/home/osmc/.kodi/addons/metadata.themoviedb.org', content: 'movies', version: '5.1.4')
10:15:13.763 T:4057985792   DEBUG: scraper: CreateSearchUrl returned <url>https://api.tmdb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&amp;query=ZUR%c3%9cCK%20IN%20DIE%20ZUKUNFT&amp;year=1985&amp;language=de</url>
10:15:13.763 T:4057985792   DEBUG: CurlFile::Open(0xd746eab0) https://api.tmdb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&query=ZUR%c3%9cCK%20IN%20DIE%20ZUKUNFT&year=1985&language=de
10:15:14.145 T:3399480064   DEBUG: ffmpeg[CA9FF300]: [swscaler] No accelerated colorspace conversion found from yuv420p to bgra.
10:15:14.160 T:4057985792   DEBUG: Get: Using "UTF-8" charset for "https://api.tmdb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&query=ZUR%c3%9cCK%20IN%20DIE%20ZUKUNFT&year=1985&language=de"
10:15:14.164 T:4057985792   DEBUG: scraper: GetSearchResults returned <results><entity><title>Back to the Future</title><id>105</id><year>1985</year><url cache="tmdb-de-105.json">https://api.tmdb.org/3/movie/105?api_key=f090bb54758cabf231fb605d3e3e0468&amp;language=de</url></entity><entity><title>Zurück in die Zukunft</title><id>105</id><year>1985</year><url cache="tmdb-de-105.json">https://api.tmdb.org/3/movie/105?api_key=f090bb54758cabf231fb605d3e3e0468&amp;language=de</url></entity></results>

For whatever reasons your file name Skyscraper.2018.mkv gets extended to Skyscraper.2018.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ and later a search with this title and year=0 is started on themoviedb.org … which of course does not get a valid result back.

I don’t know why this title is expanded such way on your system … but others are welcome to help.

@ivancaregnato It would be good if we could find out more about the file you are having issues playing. Please see the mediainfo section in How to submit a useful support request - General - OSMC.

You can also create the mediainfo-output of the affected media file on the OSMC device:

  1. login via SSH, user osmc, password osmc
  2. if not already installed: sudo apt-get update && sudo apt-get install mediainfo
  3. cdto the directory containing the video/audio material in question
  4. mediainfo -f "<media file>"|paste-log, where <media file> is your video/audio
  5. publish the returned URL here in this topic

Thx for your help.

I’ve just mounted the NFS share and launched mediainfo but I don’t see anything on the URL it gave me back:

osmc@osmc:/mnt/MOVIES$ mediainfo -f “Skyscraper.2018.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv”|paste-log
https://paste.osmc.tv/ratupiruba

Believing your log the file has partial path soemwhere on your system ...volume1/MOVIES/Skyscraper.2018.mkv.

Really, deleting |paste-log nothing appears…

Yes, it’s a share inside Kodi, is there any way to enter into that share?

Ok, your files are not mounted in the root file system, so try the following

1. SSH login as user osmc/osmc
2. cd /mnt
3. sudo mkdir ivan
4. sudo mount -t nfs 192.168.1.4:/volume1/MOVIES ivan
5. cd ivan
6. mediainfo -f "Skyscraper.2018.mkv"|paste-log
7. provide the returned URL, here
8. cd /mnt
9. sudo umount ivan
10. sudo rmdir ivan

I’ve mounted the NFS share correctly so your way is the same way I’ve used to mount the NFS share at the first time…I don’t know, the only way is try directly from NAS or from a PC/MAC, I’ll let you know as soos as I’ll go back home later

Well, your configuration looks a bit confusing for other people.

I can see that you defined a MOVIES source in the mediacenter with has two nfs sources

nfs://192.168.1.4/volume1/MOVIES/
nfs://192.168.1.4/volumeUSB2/usbshare/MOVIES/

(volume1 + volumeUSB2 means to me this could be a Synology NAS)

But there seem to be two instances of the video as well

nfs://192.168.1.4/volume1/MOVIES/Skyscraper.2018.mkv
nfs://192.168.1.4/volume1/MOVIES/Skyscraper.2018.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv

Might be this is one possible root cause which confuses things, here.

Sorry for that JimKnopf, I’ve only tried to rename the movie thinking to resolve any “chars” or other kind of problem given by the name of the file, then I’ve revert the change.
Yes the MOVIES share has been created by 2 NAS NFS shares, one from HDD (Volume1) and one from an old USBDISK (VolumeUSB2).

So, there is only ONE Skyscraper video file?

Yes, it’s the same file, the logs are from 2 different days.
I have mediainfo and filebot installed on my Synology if it could help…I don’t know what info you need (I don’t know mediainfo either…the syntax etc to get infos)

I thought that the second long file name was constructed by some meta data in the video file … we shouldn’t follow that at the moment.

What I would do:

  1. rename video file to something unknown like “blablabla.mkv.old”
  2. clean the video library from all non-existing files, somehwere under settings->media->library->video library->clean library
  3. rename the video file to something which tmdb can find like “Skyscraper 2018.mkv”, “Skyscraper_2018.mkv”, etc.
  4. run a library update

You were right, in fact after renamed it (in the short way) the scraper continues to read the “extended” name, probably from the file metadata. The strange thing is that for different files (1080 x264 for example, but also for Matrix and Transformers that are both 4K UHD x265) the scraper gives me the possibility to insert a manual string to search it into IMDB or TMDB…in this case it just reports that no info were found, doesn’t let me to insert any other string.