themoviedb and year of the movie - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Information Providers (scrapers) (https://forum.kodi.tv/forumdisplay.php?fid=147) +----- Forum: Movie Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=302) +----- Thread: themoviedb and year of the movie (/showthread.php?tid=370738) |
themoviedb and year of the movie - Napkin4297 - 2022-12-11 I am looking at the kodi.log for some movies that do not get recognised by themoviedb. I can see the following log: 2022-12-11 12:53:26.681 T:5801 INFO <general>: [metadata.themoviedb.org.python]: Find movie with title 'Rob Roy (1995)' from year '0' My question is how should the "year" get set for the python script to pass it to themoviedb? Is it a specific field in the mkv metadata? RE: themoviedb and year of the movie - Karellen - 2022-12-11 (2022-12-11, 04:59)Napkin4297 Wrote: 'Rob Roy (1995)'That looks correct. Provide the full debug log and I'll have a look RE: themoviedb and year of the movie - Napkin4297 - 2022-12-11 I take it you didn't want the entire debug log, just the relevant section. It is interesting to note that if I search TheMovieDB for the text "rob roy (1995)" or "rob roy 1995" it returns nothing. Only search text of "Rob Roy" returns anything and then it returns multiple entries. Here is the extract from the debug log: 2022-12-11 17:21:11.668 T:9442 INFO <general>: initializing python engine. 2022-12-11 17:21:11.668 T:9442 DEBUG <general>: CPythonInvoker(29, /storage/.kodi/addons/metadata.themoviedb.org.python/python/scraper.py): start processing 2022-12-11 17:21:11.669 T:9442 DEBUG <general>: CPythonInvoker(29, /storage/.kodi/addons/metadata.themoviedb.org.python/python/scraper.py): entering source directory /storage/.kodi/addons/metadata.themovie db.org.python/python 2022-12-11 17:21:11.669 T:9442 DEBUG <general>: CPythonInvoker(29, /storage/.kodi/addons/metadata.themoviedb.org.python/python/scraper.py): instantiating addon using automatically obtained id of "metadata. themoviedb.org.python" dependent on version 3.0.0 of the xbmc.python api 2022-12-11 17:21:11.685 T:9442 INFO <general>: [metadata.themoviedb.org.python]: Find movie with title 'Rob Roy (1995)' from year '0' 2022-12-11 17:21:11.686 T:9442 DEBUG <general>: using title of rob roy (1995) to find movie 2022-12-11 17:21:11.686 T:9442 DEBUG <general>: Calling URL "https://api.themoviedb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&language=en-US&query=rob+roy+%281995%29&year=0" 2022-12-11 17:21:12.108 T:9442 DEBUG <CAddonSettings[metadata.themoviedb.org.python]>: trying to load setting definitions from old format... 2022-12-11 17:21:12.109 T:9442 DEBUG <general>: using title of rob roy (1995) to find movie 2022-12-11 17:21:12.109 T:9442 DEBUG <general>: Calling URL "https://api.themoviedb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&language=en-US&query=rob+roy+%281995%29&year=-1" 2022-12-11 17:21:12.489 T:9442 DEBUG <general>: using title of rob roy (1995) to find movie 2022-12-11 17:21:12.489 T:9442 DEBUG <general>: Calling URL "https://api.themoviedb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&language=en-US&query=rob+roy+%281995%29&year=1" 2022-12-11 17:21:12.880 T:9442 DEBUG <general>: using title of rob roy (1995) to find movie 2022-12-11 17:21:12.880 T:9442 DEBUG <general>: Calling URL "https://api.themoviedb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&language=en-US&query=rob+roy+%281995%29" 2022-12-11 17:21:13.274 T:9442 INFO <general>: CPythonInvoker(29, /storage/.kodi/addons/metadata.themoviedb.org.python/python/scraper.py): script successfully run 2022-12-11 17:21:13.275 T:9556 DEBUG <general>: Thread VideoInfoDownloader 3100185216 terminating 2022-12-11 17:21:13.308 T:994 DEBUG <general>: CSMBFile::Close closing fd 10002 2022-12-11 17:21:13.309 T:994 WARNING <general>: No information found for item 'smb://activenas/9_movies/DVD0001-1000/DVD0201-0300/DVD0218_Rob_Roy_(1995).mkv', it won't be added to the library. 2022-12-11 17:21:13.311 T:994 DEBUG <general>: ------ Window Init (DialogConfirm.xml) ------ 2022-12-11 17:21:13.546 T:994 DEBUG <general>: ------ Window Deinit (DialogConfirm.xml) ------ 2022-12-11 17:21:31.948 T:9515 DEBUG <general>: Thread JobWorker 3084415616 terminating (autodelete) RE: themoviedb and year of the movie - Napkin4297 - 2022-12-11 I also had a look at the URL and "https://api.themoviedb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&language=en-US&query=rob+roy&year=1995" does actually return a result RE: themoviedb and year of the movie - Karellen - 2022-12-11 (2022-12-11, 08:25)Napkin4297 Wrote: DVD0218_Rob_Roy_(1995).mkvYour filename is the problem. Rename it to Rob_Roy_(1995).mkv and it should work. Some info on how to search movies in the scraper... https://kodi.wiki/view/Add-on:The_Movie_Database_Python#Search RE: themoviedb and year of the movie - Napkin4297 - 2022-12-11 I renamed the filename and no change. Here are the logs: https://paste.kodi.tv/raw/nediqafusi RE: themoviedb and year of the movie - Karellen - 2022-12-11 (2022-12-11, 09:18)Napkin4297 Wrote: https://paste.kodi.tv/raw/nediqafusiI need the full debug log RE: themoviedb and year of the movie - Napkin4297 - 2022-12-11 Thanks for the help. Here is the full log: xutihiwema.kodi (paste) RE: themoviedb and year of the movie - Karellen - 2022-12-11 (2022-12-11, 09:36)Napkin4297 Wrote: Thanks for the help. Here is the full log:You said that you renamed the movie. I still see the original filename. Have you modified any regexes for Clean Strings? Have you modified any code in the scraper or any regex in Kodi? I am at a loss as to why Kodi is ignoring the year. Your filenaming certainly does not help the situation. I have a suspicion you have modified a regex somewhere to overcome your filenaming. Nor can I figure out why the scraper is creating multiple search strings to the API. But at the end of the log, it looks like Rob Roy was scraped into the library. RE: themoviedb and year of the movie - Napkin4297 - 2022-12-11 Yep I definitely renamed the file: 2022-12-11 18:07:32.753 T:994 DEBUG <general>: CSMBFile::Open - opened smb://USERNAMEASSWORD@activenas/9_movies/DVD0001-1000/DVD0201-0300/Rob_Roy_(1995).mkv, fd=10002 I haven't modified any regex. The only modifications to the system is to add mysql as a back end database. I have 2 different kodi's, running libreelec and they both do the same thing. I can see in /storage/.kodi/addons/metadata.themoviedb.org.python/python/scraper.py: if year is not None: if not search_results: search_results = scraper.search(title,str(int(year)-1)) if not search_results: search_results = scraper.search(title,str(int(year)+1)) I thought this might explain the 2 lines in the logfile: 2022-12-11 17:21:12.109 T:9442 DEBUG <general>: Calling URL "https://api.themoviedb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&language=en-US&query=rob+roy+%281995%29&year=-1" 2022-12-11 17:21:12.489 T:9442 DEBUG <general>: Calling URL "https://api.themoviedb.org/3/search/movie?api_key=f090bb54758cabf231fb605d3e3e0468&language=en-US&query=rob+roy+%281995%29&year=1" It is almost as if year is not null, but has a non year value. Do you know how year is extracted? Is it from scraping the title? RE: themoviedb and year of the movie - Napkin4297 - 2022-12-11 I tried removing the path on the drive with the filename renamed and same result: colufutigo.kodi (paste) RE: themoviedb and year of the movie - Karellen - 2022-12-11 @rmrector any ideas? RE: themoviedb and year of the movie - Karellen - 2022-12-11 @Napkin4297 I didn't think of this yesterday as I was ready for bed Can you check item 1d here... https://forum.kodi.tv/showthread.php?tid=336969 If you enabled it, disable it. Then... 1. try rescraping and provide that log and 2. drop the mkv file into the Header Editor of MKVToolNix, go to Segment information > Title and post a screenshot of the Current value Thanks RE: themoviedb and year of the movie - Napkin4297 - 2022-12-12 Sorry for the delay. Got sidetracked. I turned off "Video file Tags" and this resolved the issue: 2022-12-12 21:54:55.253 T:1826 INFO <general>: [metadata.themoviedb.org.python]: Find movie with title 'Shark's Machine' from year '1981' It now picks up the title and the year. Do you know if there might be an development to allow the correct year to be determined from the video tags? Thanks for all your help, this was a tricky one. RE: themoviedb and year of the movie - Karellen - 2022-12-12 (2022-12-12, 13:54)Napkin4297 Wrote: o you know if there might be an development to allow the correct year to be determined from the video tags?I highly doubt it. |