Celedhrim / docker-kodi-server

Runs Kodi in headless mode with docker
MIT License
79 stars 20 forks source link

Scan Video Libray #30

Closed avogabo closed 7 months ago

avogabo commented 3 years ago

I don't know why it doesn't scrape new movies. Can you look at some log to see the failure?

thezoggy commented 3 years ago

I've also seen it no longer scraping tv series.. I see it getting the scan command but it instantly comes back with nothing to be found

Celedhrim commented 3 years ago

Hello,

No issue for me.

Must be your scraper / kodi config

thezoggy commented 3 years ago

Are you using thetvdb for tv scraping?

Celedhrim commented 3 years ago

No i don't anymore because some issues ( some informations missing)

I switched to tmdb scraper before summer and never regrets it.

thezoggy commented 3 years ago

the tvdb move to a paid subscription is v4 stuff (which has been delayed several times) and not yet a thing... let alone for apps like kodi/plex they have a deal where they are still going to have access and not push the cost onto the user. but regardless that v4 kodi scraper is out but has issues (and you would have to go get it from tvdb's repo specifically to use). so for the context of the conversation below the 'new' tvdb scraper is just the updated python3 variant which is needed for kodi v19+ (but still uses tvdb v3 api).

i figured out what was going on with why tvdb scanning had stopped working. this docker I've been using for awhile and back on kodi v18 and older it used the old python2 tvdb scraper metadata.tvdb.com and when matrix came about it never fetched the python3 version metadata.tvdb.com.python, oddly it did grab the updated movie scraper metadata.tvshows.themoviedb.org.python and thats why that kept working just fine. So tv scraping had just been silently broken on this kodi instance. Because as all my other kodi instances did upgrade and in my kodi db the media path 'strScraper' are set to use metadata.tvdb.com.python means that I needed this scraper installed/working for this headless instance to update.

so that started my quest to figure out how to update a headless kodi instance.

the easy way is to just use a gui kodi instance and load the kodi headless data, enable the addon.. let it do its thing and be done.

if you fetch the package manually and extract it in the right spot... the addon wont be enabled and it wont install the dependencies required to make it work.

for those that did fetch the package manually, you can toggle it via the kodi web client like:

load up kodi web access (http://ip:8089) then navigate to settings > general - add-ons > xbmc.metadata.scraper.tvshows and enable "The TVDB (new)" then hit save

and in the logs you will see what dependencies you are missing (which may be for the plugin or the plugin's dependents)

2021-10-05 21:13:56.088 T:311   WARNING <general>: CAddonMgr: 'script.module.chardet' required by 'script.module.trakt' is missing. Add-on may not function correctly
2021-10-05 21:13:56.088 T:311   WARNING <general>: CAddonMgr: 'script.module.idna' required by 'script.module.trakt' is missing. Add-on may not function correctly
2021-10-05 21:13:56.088 T:311   WARNING <general>: CAddonMgr: 'script.module.urllib3' required by 'script.module.trakt' is missing. Add-on may not function correctly
2021-10-05 21:13:56.088 T:311   WARNING <general>: CAddonMgr: 'script.module.six' required by 'script.module.trakt' is missing. Add-on may not function correctly
2021-10-05 21:13:56.088 T:311   WARNING <general>: CAddonMgr: 'script.module.arrow' required by 'script.module.trakt' is missing. Add-on may not function correctly
2021-10-05 21:13:56.088 T:311   WARNING <general>: CAddonMgr: 'script.module.chardet' required by 'script.module.tvdbsimple' is missing. Add-on may not function correctly
2021-10-05 21:13:56.088 T:311   WARNING <general>: CAddonMgr: 'script.module.idna' required by 'script.module.tvdbsimple' is missing. Add-on may not function correctly

so you'd have to go grab those manually as well, restart kodi so they get seen then go use web client to enable them.. then those may have things not installed

2021-10-05 21:25:28.106 T:300   WARNING <general>: CAddonMgr: 'script.module.dateutil' required by 'script.module.arrow' is missing. Add-on may not function correctly
2021-10-05 21:25:28.106 T:300   WARNING <general>: CAddonMgr: 'script.module.typing_extensions' required by 'script.module.arrow' is missing. Add-on may not function correctly
2021-10-05 21:25:28.113 T:300     DEBUG <general>: CAddonMgr: enabled script.module.arrow
2021-10-05 21:25:28.119 T:300     DEBUG <general>: CAddonMgr: enabled script.module.chardet
2021-10-05 21:25:28.125 T:300     DEBUG <general>: CAddonMgr: enabled script.module.idna
2021-10-05 21:25:28.130 T:300     DEBUG <general>: CAddonMgr: enabled script.module.urllib3

as you can see this is not great

the end goal, that if your kodi.log shows it actually trying to do an addon check for the scraper then you should be good. as below here it has the older (python2 scraper) and the newer python3 scraper

2021-10-05 21:30:08.428 T:280     DEBUG <general>: ADDONS: update check: addonID = metadata.tvdb.com / Origin = repository.xbmc.org / Version = 3.2.8
2021-10-05 21:30:08.428 T:280     DEBUG <general>: ADDONS: update check: addonID = metadata.tvdb.com.python / Origin =  / Version = 1.0.3

to report back, after adding the python3 version of the thetvdb scraper this has been back to reliable again.