Scraping for particular episodes of a TV Shows
#1
Hi,

From my reading, it seems it's not possible to include in a .nfo file info to identify a particular tvshow. For instance, include a link like:

https://www.thetvdb.com/series/once-upon...des/316492

I undestand the only way to indentify a show is for the tvshow file to have the right name. 

I have a name like 'Zhila-byla.zhizn.(02.serija.iz.26).Rozhdenie.1987.XviD.DVDRip.avi'

Is there a way of using the '02' to mean 'S01E02'?
Or is there a way of including this info in a .nfo file?
Reply
#2
Short answer is no.

The Parsing NFO can be used to identify the TV Show. So you would add this to an empty nfo file... https://www.thetvdb.com/series/once-upon-a-time-life

You cannot use a Parsing NFO for individual episodes. Even if you could, it still would not match with your incorrectly named file... https://kodi.wiki/view/Naming_video_files/TV_shows

Even if you used a normal NFO File with all the metadata for the episode, it still would not work as your file is named wrong.

You need to name your files correctly and there is nothing that can be done to avoid that.
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
#3
Thanks for the confirmation

And I guess there is not a way of matching how the seasons and episodes are matching (by defining a regular expression, for instance)

This would all be nice to have features. I don't like renaming files.
Reply
#4
Yes you can use Regex's in the advancedsettings.xml file. Details in the second link of my previous post. But with that you are on your own. Funnily, not a lot of members receive assistance when they ask about regex's. Don't know why that is.

There is a regex thread here... https://forum.kodi.tv/showthread.php?tid=51614
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
#5
Tx,

From the examples, the use of [^\\/] makes me thing the folder separation can be windows or unix  ('\' or '/'). Am I right?

I'm trying to match episode '04' in the following file, but it's not working. Am I missing something?

Let me know if I should open another thread for specific regexp support


Zhila-byla.zhizn.(04.serija.iz.26).Kostny2.1987.XviD.DVDRip.Reliz.Kinozal.TV.avi

<advancedsettings>
   <tvshowmatching action="append">
          <regexp>\(([0-9]+)\.[^\\/]*$</regexp>
 </tvshowmatching>
</advancedsettings>
Reply
#6
There's nothing particularly wrong with the regex, from what I can see, the issue more than likely is the "append". 

One of the default regexes matches against three-or-more digits as season and episode, e.g. 102 = S01E02.  Or, more pertinently, e.g.  1987 = S19E87
Since that will always get tested before any appended regexes, it can mess up your custom matches.

Try putting action="prepend" instead to have your regex go first.
Reply
#7
I tried prepend. Still, didn't match.
Just to make sure, is there any language /website where I can test this particular regexp flavor (like TCL, python, unix). Not all regexp are created equal
Reply
#8
Seems to be working on TCL

expect1.4> regexp {\(([0-9]+)\.[^\\/]*$}  {Zhila-byla.zhizn.(04.serija.iz.26).Kostny2.1987.XviD.DVDRip.Reliz.Kinozal.TV.avi}
1
expect1.5>
Reply

Logout Mark Read Team Forum Stats Members Help
Scraping for particular episodes of a TV Shows0