Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Issue with local Episode nfo file
#1
Hi guys,
I have a media file called rv-ff106-1080.mkv (compressed inside a RAR) - This file is Firefly S01 E05 (bear with me, the naming etc of the episode is wrong due to the airing, and dvd order etc)
I've had trouble scraping this properly with all sorts of regex that seem to not be applied.

No matter what I do, it keeps trying to apply the season as 10 and the episode as 80 (10x80) which matches with the 1080 at the end of the file.

Here is my basic info
<?xml version="1.0" encoding="utf-8"?>
<episodedetails>
  <ratings />
  <season>1</season>
  <episode>5</episode>
  <dateadded>2021-11-28 18:48:12</dateadded>
  <locked>true</locked>
  <user_note />
</episodedetails>

Here is where the nfo is detected in my kodi.log

2021-11-28 21:49:31.143 T:16400   DEBUG <general>: metadata.tvdb.com.python: Parsing NFO file:
                                                   <?xml version="1.0" encoding="utf-8"?>
                                                   <episodedetails>
                                                     <ratings />
                                                     <season>1</season>
                                                     <episode>5</episode>
                                                     <dateadded>2021-11-28 18:48:12</dateadded>
                                                     <locked>false</locked>
                                                     <user_note />
                                                   </episodedetails>
2021-11-28 21:49:31.143 T:16400    INFO <general>: CPythonInvoker(1, C:\apps\kodi\portable_data\addons\metadata.tvdb.com.python\scraper.py): script successfully run

Yet, each time it is showing under Firefly as 10x80

I am running a mariadb backend if that makes any difference. Other basic nfos have worked as expected within this current setup.

If I try to scrape the file with out the local nfo, I get this information logged in my kodi.log
2021-11-28 21:59:34.260 T:18856   DEBUG <general>: VIDEO::CVideoInfoScanner::OnProcessSeriesFolder - no match for show: 'Firefly', season: 10, episode: 80.0, airdate: '01/01/1601', title: ''

I don't know if this is a bug, or something I am doing wrong. I understand the easiest thing to do, is renamed the files, but I don't want to do that.  I'm unsure if this is a bug, this is how things are intended, or it's a regression. I'm struggling to find anyone else who has had this issue.
I've used variations of these regex's to attempt to scrape without the need for a local nfo
        <regexp>(?i)[.a-z](\d{1,2})(\d\d)-notv([^/\\]*)</regexp> <!-- frng101-notv.avi  -->
        <regexp>(?i)[/\\]\w+-\w+(\d)(\d\d)\.</regexp> <!-- mtn-tts104.avi  -->

which all work within regex testers as far as I can tell..

Any help would be greatly appreciated
Reply
#2
The '1080' in the filename refers to the resolution of the contained video stream and has nothing to do with the show season or episode number(s).

Firefly only has 1 season, with 14 episodes. The '1080' in your file's name should of been followed by a 'p' (1080p) indicating the file is a full-HD 1080p rip.

https://thetvdb.com/series/firefly

You need to rename the file thus: "Firefly - S01E05  - Out of Gas.mkv" for Kodi to be able to correctly scrape it.

Dan / Gib.
Image
Reply
#3
(2021-11-28, 13:03)muggsy Wrote: No matter what I do, it keeps trying to apply the season as 10 and the episode as 80 (10x80) which matches with the 1080 at the end of the file.
As gibxxi states, you need to rename the file. Kodi does not read season and episode information from the nfo file. It comes from the file name.
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
Another example is Lost S01E25. I am using thetvdb for my scraper but episode 25 does not exist. I have created a basic nfo, with season number and episode number with some extra info info that works correctly. That logic should apply here but it doesn't. When I've created a FULL nfo for the firefly episode, and set the scraper to Local Info ( I forget the scraper name precisely) it shouldn't be trying to determine the episode details, it should be reading it from the nfo file, but it doesn't.

Even with the correct regex which identifies the episode correctly as Season 1, episode 5 it still attempts to identify the episode based on the 1080 number.

I've been using xbmc still the xbox days where I use to compile nighties so I'm not a green user. I shouldn't have to bend my files and folder structure to an archaic system when the fields I am using are actually present in the nfo file itself. If I wanted to rename all my media files I would probably switch to Plex, but Kodi is more flexible with things like this and I don't understand why this has cropped up before
Reply

Logout Mark Read Team Forum Stats Members Help
Issue with local Episode nfo file0