Extra REGEX for TV Show Episode matching

  Thread Rating:
  • 16 Votes - 4.13 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
TechLife Offline
Donor
Posts: 582
Joined: Aug 2008
Reputation: 20
Location: Aurora, CO
Post: #301
(2013-08-11 06:07)JaKXz Wrote:  Please let me know if I can clarify this question better, thanks in advance! Smile

I just saw your post. Did you get this sorted? That's exactly how I have my stuff. I can post my regexes if you still need help...

*If I helped, please +rep below*
Windows Media Center PVR add-on (pvr.wmc) and Server (ServerWMC)
The XBMC team, plug-in devs, skinners, etc. do this for us for FREE in their spare time because they want to. Think about that for a second before you start bitching...
find quote
holmen Offline
Member
Posts: 65
Joined: Apr 2011
Reputation: 0
Post: #302
I'll post this here also and see you guys know.

I need som help with <excludefromscan> and <excludetvshowsfromscan>.
Anyone got a working .xml going that excludes subpack folders that are named like tv show episodes?

Example:
Code:
15:12:14 T:2896149312   ERROR: GetDirectory - Error getting rar://rar://smb://Boardwalk_Empire/Boardwalk.Empire.S02.720p.HDTV.x264/Boardwalk.Empire.S02.SUBPACK.720p.BluRay.X264-REWARD/boardwalk.empire.s02.subpack.720p.bluray.x264-reward.rar%2fBoardwalk.Empire.S02E12.720p.BluRay.X264-REWARD.rar

I have tried with:
Code:
<excludefromscan>
<regexp>(?i)subpack</regexp>
</excludefromscan>
and
Code:
<excludefromscan>
<regexp>[!-._ \\/](?i)subpack[-._ \\/]</regexp>
</excludefromscan>
and i get nothing.. Any ideas?
find quote
reckon2 Offline
Junior Member
Posts: 1
Joined: Jan 2014
Reputation: 0
Post: #303
Decent guide. Thanks.
[Image: sig.jpg]
find quote
djhifi Offline
Member
Posts: 92
Joined: Jan 2014
Reputation: 0
Post: #304
Can anyone help me about one problem?

I wanted to include a regex to TVDB avoid "season" and "year" expressions which i use on individual series folders across my HDD's.

Im lost because i dont know what to do to make tvdb plugin avoid using those last two expressions so im not being able to scrape anything.

PS: Changing filestructures is impossible i have nearly 70 series with 120 seasons and more databases (popcorn hour)
(This post was last modified: 2014-01-13 14:43 by djhifi.)
find quote
uNiversal Offline
Out of Memory
Posts: 5,625
Joined: Oct 2012
Reputation: 139
Location: Binary pulsar
Post: #305
(2014-01-13 14:28)djhifi Wrote:  Can anyone help me about one problem?

I wanted to include a regex to TVDB avoid "season" and "year" expressions which i use on individual series folders across my HDD's.

Im lost because i dont know what to do to make tvdb plugin avoid using those last two expressions so im not being able to scrape anything.

PS: Changing filestructures is impossible i have nearly 70 series with 120 seasons and more databases (popcorn hour)

I have already gave you the solution in quite a lot of detail...., in fact both nickr and me have tried to help you across threads so you come to yet another thread and you plainly just refuse to take a hint. If you just want to waste peoples time by saving your own, you are in wrong place laddie.

Your particular situation without changing your structure wont work with regex because you storing seasons on their onenesses outside any required scraper structure with other content thats not tv shows (yes I read your other threads).... A regex does indeed clean unwanted portions but the remainder portions also must be correctly setup and no regex can do that for you, you will end up with 4 times more work, because you will have to MANUALLY set the scraper to mark This folder only has one tv show in each season.

I gave you the fastest way to do your job all you have to do is follow it, it should take you a whole hour to do this.

You either create 70 Show folders and wack each respective seasonSSS as you have them now inside each and then those 70 folder inside one named tvshows with content set for that content type.

Or you go at it your crazy way and have to set content on 120 individual seasons (thats just what you admit for tv shows) What about movies.... what about when you start getting content scraped you dont haveConfused -- yes because you are storing mixed content in each source... Without wanting to separate it in any way.

You dont understand how XBMC can add multiple sources from multiple paths for one content type. As long as you follow a couple of rules... Kinda ironic, dont you think?
In any case Im out... you had your chance...
(This post was last modified: 2014-01-13 23:44 by uNiversal.)
find quote
genuinefafa Offline
Junior Member
Posts: 2
Joined: Jan 2014
Reputation: 0
Post: #306
Hi there, I'm unable to find a suitable answer anywhere. I know I'm a newbie, but what I want to do should be plain simple.

I have tv shows directories like this

Code:
/tvshows/(Show Title).S01/(Show Title).S01E01.Bla.mkv

(Show Title) is the name of the show, without the parentheses. Usually is standard titled, like: "Almost.Human.S01", f.e.

Code:
/tvshows/Almost.Human.S01/Almost.Human.S01E01.Pilot.1080p.WEB-DL.DD5.1.H.264-BS.mkv

What I found is that the directory name including the season number in that way "S01" is giving the matcher a hard time excluding the entire folder. Any idea how to fix it? Maybe strip the "SNN" part?

Thanks! Smile
(This post was last modified: 2014-01-21 10:12 by genuinefafa.)
find quote
holmen Offline
Member
Posts: 65
Joined: Apr 2011
Reputation: 0
Post: #307
I don't understand. You want to exclude the folder?
find quote
_Shorty Offline
Junior Member
Posts: 38
Joined: Jan 2010
Reputation: 1
Post: #308
Wouldn't it be easier simply to rename your folders so they don't contain the season info? It's redundant anyway.
find quote
genuinefafa Offline
Junior Member
Posts: 2
Joined: Jan 2014
Reputation: 0
Post: #309
What I need is help the marcher understand that is redundant information, but it should scan it as it were without the season information in the folder.

Renaming the folder is against my storage criteria. If the tv show has many many episodes, the directory is too overcrowded and I don't like it that way.
find quote
hellohello Offline
Senior Member
Posts: 146
Joined: Aug 2009
Reputation: 0
Post: #310
hi, i have an unusual request but i think it might be useful for those of us using XBMC.MyLibrary tool to scrape shows from external sources like Hulu, Netflix & Amazon. While Hulu and Netflix play "nice" with presenting their shows with a standard structure, Amazon however doesn't. Here's an example:

Code:
/video/streaming/all/TV Shows/Unfabulous.Season.1/Season.1/s01e01.strm

so basically i am wondering, what regex expression would give me this result:

Code:
/video/streaming/all/TV Shows/UNFABULOUS/s01e01.strm

(essentially ignoring anything between the SHOW NAME and the standard SxxExx format)

is this possible?
(This post was last modified: 2014-02-22 16:09 by hellohello.)
find quote
hellohello Offline
Senior Member
Posts: 146
Joined: Aug 2009
Reputation: 0
Post: #311
Ok, using an online regex tester, i can SELECT the problematic Season(s):

Code:
(\bSeasons?\b\.\d+\\)

now the question is, how do i select the OPPOSITE?
find quote
hellohello Offline
Senior Member
Posts: 146
Joined: Aug 2009
Reputation: 0
Post: #312
AHA! is this right? and if so, how do i incorporate it in advancesettings.xml?

Code:
\w+\b(?<!\bSeason)?s?.\d+\D
find quote
scudlee Offline
Team-Kodi Member
Posts: 839
Joined: Jul 2011
Reputation: 51
Post: #313
@hellohello: Have a look at this thread
find quote
hellohello Offline
Senior Member
Posts: 146
Joined: Aug 2009
Reputation: 0
Post: #314
@scudlee: ah, awesome. deleted my previous response: once i looked up the function of clean string i was able to make the necessary changes to cover other variations. thanks again much.
(This post was last modified: 2014-02-23 03:25 by hellohello.)
find quote
SerFabry Offline
Junior Member
Posts: 3
Joined: Mar 2014
Reputation: 0
Post: #315
Hello you guys, i have come across this thread in my Epic quest for finding my perfect Regexp.

I have access to a fileserver, but only readonly access, so i cant rename the directories. The naming Pattern goes something like this:
Code:
TV-Shows/Title (de)(en)/Season/episode.avi
note the Language-Specification in the Title. These vary from zero to two specifications in his two-letter-pattern and are in seperate pairs of parenthethes.

I have come up with something like this:

Code:
\([a-zA-Z0-9]{2}\)

but i have no idea where to go from now.

I am an absolute Regexp-Noob, and apologize in advance for any cringing that my post may have induced

Edit: The Naming of the episode is a whole other can of worms. but there are mostly season and episode numbers around, so i will cross that bridge, when i get the whole Language-thing worked out

Thank you very much in advance
(This post was last modified: 2014-03-09 12:54 by SerFabry.)
find quote
Post Reply