Unable to indext TV Shows 'File is not a zip file'

Hello,
Starting roughly 3 weeks ago, I’ve been unable to index new TV shows in OSMC. Looking at the kodi.log file, I see the following error:

2020-04-11 19:50:37.293 T:1471116000 NOTICE: script.tv.show.next.aired: ### TV Show - Next Aired starting background proc (6.0.15)
2020-04-11 19:50:39.906 T:1471116000 NOTICE: script.tv.show.next.aired: ### starting data update
2020-04-11 19:50:39.906 T:1471116000 NOTICE: script.tv.show.next.aired: ### grabbing a new country mapping list
2020-04-11 19:50:43.366 T:1471116000 ERROR: script.tv.show.next.aired: ### ERROR retreiving updates from thetvdb.com: File is not a zip file

2020-04-11 19:50:44.046 T:1471116000 NOTICE: script.tv.show.next.aired: ### data update finished

I’ve checked to ensure everything is up to date (both OSMC and any information provider addons (I’m only using the default one). I can view and play TV shows if I go through the file system, so Kodi can see the files and play them. Further, movies are being seen and scraped properly, its only TV shows.

Any ideas on what may be going on?

That addon should not have anything to do with scrapping.
Suggest to enable debug logging, scrape for new files and upload the logs.

Here is a relevant chunk from the log file. NOTE: I had to replace http with webprotocol as users can only post 5 links.

2020-04-11 21:05:57.761 T:1305473760 DEBUG: GetEpisodeId (smb://mediaserver.contoso.com/Video/TV/Good Girls/Season 3/S03E06.Frere Jacques.mkv), query = select idEpisode from episode where idFile=9268
2020-04-11 21:05:57.762 T:1305473760 DEBUG: GetEpisodeList: Searching ‘webprotocol://www.thetvdb.com/api/1D62F2F90030C444/series/328577/all/en.zip’ using The Movie Database scraper (file: ‘/home/osmc/.kodi/addons/metadata.tvshows.themoviedb.org’, content: ‘tvshows’, version: ‘3.5.2’)
2020-04-11 21:05:57.791 T:1305473760 DEBUG: CurlFile::Open(0x4d33d600) webprotocol://www.thetvdb.com/api/1D62F2F90030C444/series/328577/all/en.zip
2020-04-11 21:05:58.152 T:1305473760 DEBUG: CCurlFile::Open - effective URL: webprotocols://www.thetvdb.com/api/1D62F2F90030C444/series/328577/all/en.zip
2020-04-11 21:05:58.152 T:1305473760 ERROR: FileZip: extended local header, not supported!
2020-04-11 21:05:58.153 T:1305473760 WARNING: Get: “webprotocol://www.thetvdb.com/api/1D62F2F90030C444/series/328577/all/en.zip” looks like archive, but cannot be unpacked
2020-04-11 21:05:58.153 T:1305473760 DEBUG: Get: Using content of “webprotocol://www.thetvdb.com/api/1D62F2F90030C444/series/328577/all/en.zip” as binary or text with “UTF-8” charset
2020-04-11 21:05:58.154 T:1305473760 DEBUG: scraper: GetEpisodeList returned
2020-04-11 21:05:58.155 T:1305473760 WARNING: No information found for item ‘smb://mediaserver.contoso.com/Video/TV/Good Girls/’, it won’t be added to the library.

Anytime a new episode is found and attempting to be added, a similar message is thrown:

Another example:
2020-04-11 21:06:13.408 T:1305473760 DEBUG: GetEpisodeId (smb://mediaserver.contoso.com/Video/TV/Modern Family/Season 11/S11E14.Spuds.mkv), query = select idEpisode from episode where idFile=9121
2020-04-11 21:06:13.415 T:1305473760 DEBUG: GetEpisodeId (smb://mediaserver.contoso.com/Video/TV/Modern Family/Season 11/S11E15.Baby Steps.mkv), query = select idEpisode from episode where idFile=9234
2020-04-11 21:06:13.421 T:1305473760 DEBUG: GetEpisodeId (smb://mediaserver.contoso.com/Video/TV/Modern Family/Season 11/S11E16.I’m Going to Miss This.mkv), query = select idEpisode from episode where idFile=9279
2020-04-11 21:06:13.424 T:1305473760 DEBUG: GetEpisodeList: Searching ‘webprotocol://www.thetvdb.com/api/1D62F2F90030C444/series/95011/all/en.zip’ using The Movie Database scraper (file: ‘/home/osmc/.kodi/addons/metadata.tvshows.themoviedb.org’, content: ‘tvshows’, version: ‘3.5.2’)
2020-04-11 21:06:13.455 T:1305473760 DEBUG: CurlFile::Open(0x4a6eb828) webprotocol://www.thetvdb.com/api/1D62F2F90030C444/series/95011/all/en.zip
2020-04-11 21:06:13.764 T:1305473760 DEBUG: CCurlFile::Open - effective URL: webprotocols://www.thetvdb.com/api/1D62F2F90030C444/series/95011/all/en.zip
2020-04-11 21:06:13.775 T:1305473760 ERROR: FileZip: extended local header, not supported!
2020-04-11 21:06:13.775 T:1305473760 WARNING: Get: “webprotocol://www.thetvdb.com/api/1D62F2F90030C444/series/95011/all/en.zip” looks like archive, but cannot be unpacked
2020-04-11 21:06:13.775 T:1305473760 DEBUG: Get: Using content of “webprotocol://www.thetvdb.com/api/1D62F2F90030C444/series/95011/all/en.zip” as binary or text with “UTF-8” charset
2020-04-11 21:06:13.781 T:1305473760 DEBUG: scraper: GetEpisodeList returned
2020-04-11 21:06:13.781 T:1305473760 WARNING: No information found for item ‘smb://mediaserver.contoso.com/Video/TV/Modern Family/’, it won’t be added to the library.

Use log upload from MyOSMC then you don’t have any issues with posting and logs are readable.

What do you get if you wget -O - https://www.thetvdb.com/api/1D62F2F90030C444/series/95011/all/en.zip | md5sum

If you have any nfo files pointing to tvdb you need to either set the scraper for those folders to scrape using that, or else update or delete those files. If you want to switch over to a new scraper you must either refresh your entire source or else go to each show, bring up the information window, click refresh, say no to scanning all files but yes to ignoring local. Changing your scraper does not update where the database is sourcing for any particular show until it is refreshed.

I was reluctant to use the log upload as it has computer and domain names listed (for my media shares), so pared down the log file and posted a few chunks.

No configuration changes were made, but I’m fine with deleting nfo files if that will help in enabling indexing again? Just looking to restore functionality.

I’m using MySQL as a database if that makes a difference in things?

Deleting nfo files in and of itself will change nothing. For TV shows they must have the series stored in the database as using the same source as the scraper. It looks like your show was added from thetvdb but your scraper is set to themoviedb. Episodes will only scan in if the entry for the series is correct.

It does not.

That error is coming from the TV Show Next Aired addon. There is apparently a manual fix you can apply for that.

https://forum.kodi.tv/showthread.php?tid=186090&pid=2902192#pid2902192

It looks like that script isn’t really being maintained anymore. There are some folks on the Kodi forum trying to do a few updates, but nothing that’s made it to the main Kodi repo.

Here’s a post with a link to an update you can download and manually install:

https://forum.kodi.tv/showthread.php?tid=186090&pid=2922355#pid2922355

You might want to go and read more of that thread. Alternatively, just disable TV Show Next Aired. If nobody is maintaining it, it’s probably going to throw more errors over time, and right now there appears to be no version for Kodi 19 (which will require Python3 compatibility).