Kodi Community Forum

Full Version: Strange movie scraper bug
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I am a happy french user.
I have a KODI 19.2 installed version with shared database on my SYNOLOGY NAS.
More than 100 movies correctly loaded and scraped... but when I try to manually add a new one (Rush Hour 2) via the dialog box "Analyser vers la médiathèque", python scraper returns an error (see below). Any idea ?

2021-10-17 18:17:19.981 T:18772    INFO <general>: [metadata.themoviedb.org.python]: Find movie with title 'Rush Hour 2' from year 'None'
2021-10-17 18:17:19.984 T:18772   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'UnboundLocalError'>
                                                   Error Contents: local variable 'search_results' referenced before assignment
                                                   Traceback (most recent call last):
                                                     File "C:\Users\hugue\AppData\Roaming\Kodi\addons\metadata.themoviedb.org.python\python\scraper.py", line 185, in <module>
                                                       run()
                                                     File "C:\Users\hugue\AppData\Roaming\Kodi\addons\metadata.themoviedb.org.python\python\scraper.py", line 172, in run
                                                       search_for_movie(params["title"], params.get("year"), params['handle'], settings)
                                                     File "C:\Users\hugue\AppData\Roaming\Kodi\addons\metadata.themoviedb.org.python\python\scraper.py", line 40, in search_for_movie
                                                       if not search_results:
                                                   UnboundLocalError: local variable 'search_results' referenced before assignment
                                                   -->End of Python script error report<--
(2021-10-17, 18:21)hfer Wrote: [ -> ]ny idea ?

We always prefer a complete debug log (wiki) to get the complete picture (pun intended), provided via a pastebin sharing website. So kindly do not paste log parts directly into forum.
Also make sure you have the latest version of your scraper add-ons.
(2021-10-17, 19:24)Klojum Wrote: [ -> ]
(2021-10-17, 18:21)hfer Wrote: [ -> ]ny idea ?

We always prefer a complete debug log (wiki) to get the complete picture (pun intended), provided via a pastebin sharing website. So kindly do not paste log parts directly into forum.
Also make sure you have the latest version of your scraper add-ons.
Ok, full log here : https://paste.kodi.tv/ozezayoqut.kodi
Checked scraper add-ons versions, didn't notice anything strange.
Best regards
Something went sideways for you here:

Code:
2021-10-17 19:57:32.801 T:16536 ERROR <general>: CCurlFile::Open failed with code 0 for https://ftp.heanet.ie/mirrors/xbmc/addon...-1.4.7.zip:
2021-10-17 19:57:32.801 T:16536 ERROR <general>: CAddonInstallJob[metadata.tvshows.themoviedb.org.python]: failed to download special://home/addons/packages/metadata.tvshows.themoviedb.org.python-1.4.7.zip

The download works for me using a web browser, but apparently your Kodi setup couldn't retrieve the zip file. And consequently, the scraper misfired.
(2021-10-17, 22:06)Klojum Wrote: [ -> ]Something went sideways for you here:

Code:
2021-10-17 19:57:32.801 T:16536 ERROR <general>: CCurlFile::Open failed with code 0 for https://ftp.heanet.ie/mirrors/xbmc/addon...-1.4.7.zip:
2021-10-17 19:57:32.801 T:16536 ERROR <general>: CAddonInstallJob[metadata.tvshows.themoviedb.org.python]: failed to download special://home/addons/packages/metadata.tvshows.themoviedb.org.python-1.4.7.zip

The download works for me using a web browser, but apparently your Kodi setup couldn't retrieve the zip file. And consequently, the scraper misfired.
Hi,
I have made a clean install, to solve some overlapping add-on versions (erase all in kodi folder). Still have this bug (see log).

https://paste.kodi.tv/exayumunal.kodi
best regards
@hfer

You have the same issue as reported here... https://forum.kodi.tv/showthread.php?tid...pid3065488

Please give us some time for the developer to investigate.

You can switch to the XML scraper which is not subject to the above error.

I'll move you to the correct forum.
@hfer

A fix should be available in the repo soon... https://github.com/xbmc/metadata.themovi...n/pull/109