Posts: 8
Joined: Dec 2022
Reputation:
0
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?
Posts: 8
Joined: Dec 2022
Reputation:
0
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)
Posts: 8
Joined: Dec 2022
Reputation:
0
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
Posts: 8
Joined: Dec 2022
Reputation:
0
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.