Kodi Community Forum
Kodi not adding TV episodes from local .nfo - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Kodi not adding TV episodes from local .nfo (/showthread.php?tid=360187)



Kodi not adding TV episodes from local .nfo - ctawn - 2021-01-30

I'm trying to add episodes for a show not on the main scrapers.  It picks up the show itself from the tvshow.nfo file. The info is read correct when info is viwed from the source folder.  However the show doesn't appear in the library.

First, Is that because it hasn't successfully read any episdoes?

Second, why isn't it reading the episodes?  Episode .nfo files are named to match the video file as according to the wiki.

Code:
Things Fall Apart (1987) Part 1A.nfo

Perhaps I'm not understanding the content of the episode .nfo file?  Here's the first episode.  There are no "proper" episode numbers, episodes are named by Part 1A, etc.

Code:

<episodedetails>
    <title>Part 1A</title>
    <showtitle>Things Fall Apart</showtitle>
    <userrating></userrating>
    <plot>miniseries directed by David Orere and broadcast on Nigerian television by the Nigerian Television Authority</plot>
    <runtime></runtime>
    <uniqueid type="tv" default="true">tfa1a</uniqueid>
    <credits></credits>
    <director>David Orere</director>
    <aired>1987</aired>
    <actor>
        <name> Pete Edochie</name>
        <role></role>
        <order></order>
        <thumb></thumb>
    </actor>
</episodedetails>



RE: Kodi not adding TV episodes from local .nfo - Karellen - 2021-01-30

@ctawn

Your nfo file is missing the following on the first line
xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

Does it scan now?


RE: Kodi not adding TV episodes from local .nfo - ctawn - 2021-01-30

(2021-01-30, 05:35)Karellen Wrote: Does it scan now?

Thank you. I had high hopes, but after fixing the episode NFO files, it's still not reading them. The log (relevant part here) shows an error "could not enumerate file" on the episode video files themselves (not on the NFO files).  If I get info on a video file, the log shows that it "found full NFO" but the GUI says "NO INFORMATION FOUND" and nothing is added to the database.


RE: Kodi not adding TV episodes from local .nfo - Karellen - 2021-01-30

You have not named your episodes correctly. Where is the SxxEyy numbering?


RE: Kodi not adding TV episodes from local .nfo - ctawn - 2021-01-31

(2021-01-30, 19:49)Karellen Wrote: You have not named your episodes correctly. Where is the SxxEyy numbering?
Thank you very much! The episodes don't follow that numbering. As the Wiki for episode NFO says season & episode are optional in the XML, I'd assumed wrongly the same for filenames. Forcing that resolved it.

Separate matter of curiosity: In the wiki for episode NFO related to "uniqueid" it says this:
Quote:<uniqueid type="xxxx" default="true"></uniqueid>
Only one uniqueID can be set as default="true", additional uniqueID's must be set as default="false" or ommitted
Could someone explain that? I used "true" for episode 1 in this case and "false" for the others, based on my interpretation of that.


RE: Kodi not adding TV episodes from local .nfo - Karellen - 2021-01-31

(2021-01-31, 15:06)ctawn Wrote: Could someone explain that? I used "true" for episode 1 in this case and "false" for the others, based on my interpretation of that.
Each movie, tv show and episode can have multiple Unique ID's - tvdb, tmdb, imdb, tvrage, tvmaze etc
Each movie, tv show and episode must have one (and only one) of those set as a "true" value.

(2021-01-31, 15:06)ctawn Wrote: As the Wiki for episode NFO says season & episode are optional in the XML, I'd assumed wrongly the same for filenames.
Correct. The season and episode tags in the nfo file are irrelevant, and are there only for completeness of data. The season and episode numbering is set from the filename.