TV Shows not scanning to library
#1
My brand-new install of Kodi on a new device isn't scanning certain TV shows into the library when initially adding a video source. The TV shows do appear in the file listing after adding the source, and are all playable, they just dont get added to the library. I cant see any difference between the few shows that do get added and the ones that don't. This is a TV show collection that I've had for years and has successfully been added to Kodi library many times in past Kodi installs, so I don't believe file-names or folder permissions are to blame.

My setup:

Device: Odroid-C2 (https://www.hardkernel.com/shop/odroid-c2/)
OS: Ubuntu-Mate-Odroid (https://wiki.odroid.com/odroid-c2/os_ima...ntu/ubuntu)
Kodi: version 17.6 installed directly from the Team-XBMC ppa (https://kodi.wiki/view/HOW-TO:Install_Kodi_for_Linux)
TVDB addon: updated manually from zip file, currently version 3.0.14 (http://mirrors.kodi.tv/addons/krypton/me....tvdb.com/)
Kodi source setup:
    All shows are on a NAS on my network
    NAS share is mounted locally via fstab entry which mounts the source at /mnt/feynman_media
    In Kodi, I "Add Videos" > Browse > Root filesystem > navigate to /mnt/feynman_media > select tv_shows > click ok
    I set directory content to "TV Shows" and select "The TVDB" for scraper (note this problem doesnt go away if I use TheMovieDB for a scraper instead)
    After adding source, I click yes to "Do you want to refresh information for all items within this path?"
    Scanning starts, and then only 5 or 6 shows are successfully added to the library, and 50 others are not

TV shows are downloaded with Sonarr and NzbGet, automatically renamed, and automatically placed into correctly named folders. Structure:
    https://imgur.com/pA05zMS

Pastebin log: (this log includes Kodi startup on a virgin install, adding tv shows source, and scanning to library)
    pt 1: https://pastebin.com/Herf83gM
    pt 2: https://pastebin.com/Kx8hx5Ri
    pt 3: https://pastebin.com/MdZMJxwf

Just to reiterate: this tv show collection is many years old. I've installed Kodi countless times on countless devices, always pointing to this same collection (with its current naming structure) and I've never had this problem. Again, a few shows do get added to the library, but 50 others don't. All have the same naming structure, same folder permissions, etc.

Any help greatly appreciated.
Reply
#2
Forgot to mention that if I go into files view, and navigate to any tv show that wasn't successfully added to the library at the time the source was added, if I right-click the tv show and select "Scan to library", the tv show is successfully added to the library.  Of course, I dont want to do this for all 50 other shows, and I'm guessing shows added to my collection in the future will need to be manually added to the library as well (as opposed to being automatically detected and added to library).
Reply
#3
Quite a large log. In that log run, which show did not get added into the library as you described in your first post?

For that show, please post the tvshow.nfo and one of the episode.nfo files at Kodi Paste Site and link back here
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#4
Thanks for the assistance Karellan.

One show that did not get added into the library: The Jim Jefferies Show

Show nfo file: https://paste.kodi.tv/ayudomomug
Episode nfo file: https://paste.kodi.tv/ebulepudin
Reply
#5
I should clarify. You stated "from that log file, which show did not get added".  I used The Jim Jefferies Show as an example of one that didnt get added, but there's no reference to that show title in the log file. None of the shows that were not added are not to be found in the log file.
Reply
#6
Ok, the nfo files told me enough.

Looks like you are using Sonarr to also create the NFO Files for Kodi to scrape. Their NFO files are not fully compatible with Kodi and will eventually corrupt your database.

1. The tvshow.nfo still uses the v1.0 API URL. So the scanner is performing a check to TVDB that it no longer recognises. See here... https://forum.kodi.tv/showthread.php?tid=323588
2. The episode.nfo files are not compatible at all, as they miss vital tags. It is these that will cause the corruption. Have you ever noticed episodes belonging to one show, ending up in completely different shows, or just disappearing?

There are two ways to get around issue 1, but none will solve the more important issue 2.

My suggestion is that you delete your NFO Files and let Kodi scrape the shows into the library. The file naming seems pretty good from what I have briefly seen, though I haven't checked them against TVDB, so it might be a pretty painless process.

At least try it on one show to start off with, and you will have the benefit of a comprehensive scrape of information, not the very brief Sonarr scrape. If you still want NFO Files, then use the Kodi Import-export library (wiki) option.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#7
Thanks for sticking with me!

You are correct that I've been letting Sonarr create the info files for me.

So I just tried deleting the tvshow,nfo file as well as all episode nfo files for a single tv show. I then deleted the library database (which lives on a separate device by the way, so I can share the library between multiple devices in the house), removed source, restarted kodi, re-added source, and rescanned. The show was not scraped and added to the library. The same 6 shows that do get added were once again successfully added.
Reply
#8
Ok, I need the Debug Log that captures that. Make sure debug mode was enabled, otherwise it does not show me what I need to see.

You either have leftovers somewhere (I know you said you deleted the db, but...) or your file naming is a bit off for some shows.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#9
I keep forgetting to mention this: even though those same 50 shows dont get added during initial library scan, if I right click one of those shows in the Files view, and click "Scan to library", they do then get added.
Reply
#10
I ensured debugging is enabled, blew away the db, removed the source, restarted Kodi, cleared the log file (so that it contains only a log of the scan and nothing else), then readded source. This still resulted in a log file over 8000 lines long. If you bear with me, I'll chunk it up and stick it up on paste.kodi.tv or Pastebin....
Reply
#11
Sorry, had to break it up into three. But again, this debug log shows only activity generated during adding the source and scanning to library. No startup or shutdown noise.

Also I was careful not to lose anything in the cut/paste.

1) https://paste.kodi.tv/inuliwuvis.kodi
2) https://paste.kodi.tv/igigumuzap.kodi
3) https://paste.kodi.tv/awoqawogeg.kodi

Thanks again for your time.
Reply
#12
Ok thanks.

It really, really, really helps if you tell me the names of the shows that are not being scraped. I have asked before. You can't expect me to scan 9,000 lines looking for unscraped items. If you tell me the names, then I can zoom straight to it.

All I can see is Top chef, Law and Order and Matt something or other.

If the problem scrape is not captured in the log, then the chances are extremely low that I can see the problem. Even if that means repeatedly trying to scrape until you capture the problem. The MySQL setup already makes it difficult to follow the transactions.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#13
Shows that are not being scraped:

American Crime
American Crime Story
Better Call Saul
Big Little Lies
Black Mirror
Breaking Bad
Check It Out! with Dr. Steve Brule
Designated Survivor
Diners, Drive-ins and Dives
F is for Family
Fawlty Towers
Felicity
Frontline
Game of Thrones

There are many others but I'll stop there. I did do a search in the log for these names earlier today, they're just not in there.

I'll try taking the mysql setup out of the equation and rescanning. Maybe that'll turn up something more helpful.
Reply
#14
There should at least be a failed scan of those shows, and that is what I am looking for. Something like...
xml:
No information found for item 'E:\Users\HTPC\Videos\BSG_S1_D1.iso', it won't be added to the library.
and before that line is a whole lot of other lines that reveal what the scraper is doing, and where it failed.

Without that^^, I can't diagnose.

Yep, taking the MySQL out of the equation and using local SQL DB will help Smile
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#15
Took MySql out of the equation and now all shows are successfully getting added to the library.

I don't know what this implies, but I'll have a look at the logs when the scan is complete to see if there any hints. I imagine the log will be much larger this time...

EDIT: and there we have it: "Even if the media is on the same computer as one of the Kodi instances, you MUST use a network share path. You cannot use a local file path with MySQL" (https://kodi.wiki/view/MySQL/Setting_up_Kodi)

I created a mount point at /mnt/media on the device itself and then point the Kodi source to this mount point. I do this because I've always found the samba and nfs options to be unreliable and intermittently fail. I'd turn on my tv to watch a movie or something and it would fail to play the media. I'm going to have to rethink this...

I think we're done here... Thanks for all your help today!

ps: I do wonder why some shows succeed in getting added though... Also, when I scanned my movie collection (yesterday, i think it was) it succeeded in scanning all of those into the library... weird...
Reply

Logout Mark Read Team Forum Stats Members Help
TV Shows not scanning to library0