Sonarr Not Generating Missing Metadata

One major annoyance with XBMC/Kodi’s Local NFO scraper is that if just one nfo cannot be imported, everything after that is ignored.

I use Kodi to watch TV at home and Plex when remotely watching stuff at my work desk during lunch time. That’s why i never noticed that XBMC is missing all episodes of The Daily Show with Jon Stewart after January 7th 2015.

Looking at the metadata, there are nfo files for all episodes except for the January 8th episode with Allison Williams. So i forced an update and scanning of disk and Sonarr changes the file date but never generates the nfo. It also obviously never generated the missing metadata for that show during it’s nightly update for almost a month now.

There is no error either. The log shows the filedate change but absolutely zero is done for that episode’s metadata.

The log really doesn’t give a clue as to what’s going on but here is a link to it just in case:

https://dl.dropboxusercontent.com/u/824824/nzbdrone.txt

Also, here is a listing of the directory containing the files for that season:

https://dl.dropboxusercontent.com/u/824824/TDSWJS-Season20.txt

The episode missing the nfo is named:

The Daily Show with Jon Stewart - 2015-01-08 - Allison Williams - 720p WEB-DL.mkv

I haven’t tried deleting all metadata and doing a scan to see if that works just in case you need me to test something in my current state.

Thanks for looking into this!

-Pr.

Looks like one of the files has duplicate metadata files.

Based on the logs its for:

15-2-7 12:22:22.7|Debug|XbmcMetadata|Generating Episode Metadata for: I:\TV Shows 06\The Daily Show with Jon Stewart\Season 20\The Daily Show with Jon Stewart - 2014-11-19 - Jessica Chastain - 720p WEB-DL.mkv

Or the next episode.

Do you have multiple files for that one?

Hmmmm… weird… there are 2 NFOs for that episode but only one video file. Sonarr downloaded the 720 HDTV version and then replaced it with the 720p WEB-DL version but didn’t delete the old nfo… (or it may have tried and it was locked for some reason)

The Daily Show with Jon Stewart - 2014-11-19 - Jessica Chastain - 720p HDTV.nfo
The Daily Show with Jon Stewart - 2014-11-19 - Jessica Chastain - 720p WEB-DL.nfo

Deleted the HDTV one and ran the update but still nothing generated for the Allison Williams episode

-Pr.

Found another one where the old NFO wasn’t deleted…

That fixed the problem thanks!

Added better handling of this, which will not error out and also delete the duplicate files during processing.

1 Like