TV Show REGEX for anime?

  Thread Rating:
  • 1 Votes - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
CyruzDraxs Offline
Junior Member
Posts: 23
Joined: Jan 2007
Reputation: 0
Post: #1
I have loads of anime that I'd like to watch in XBMC, but I find that the built-in regex checks for adding tv shows to the library don't work at all. I tried to figure out how to make a regex for it myself, but I've had no luck at all--if someone wouldn't mind helping me out I'd be super appreciative. The structure could look like any of these;

Series Name/[release group] series name - 01 [some hash thing].mkv
Series Name/[release group]_series_name_-_01_[some hash thing].mkv
Series Name/[release group] series name - 01 (encoding details)[some hash thing].mkv
Series Name/[release group]_series_name_-_01_(encoding details)[some hash thing].mkv

I assume what I need to do is grab the folder name for the series and then check for any numbers followed by; " [", "_[", " (" or "_("...but I'm not sure how to do that. Sad

Also; I'm not sure if it's possible, but can OVA/OADs be scanned in too, or should I just put those in with my movies? They don't really have a specific episode number, as they exist as an aside to the actual show...
(This post was last modified: 2009-11-28 23:08 by CyruzDraxs.)
find quote
xexe Offline
Fan
Posts: 711
Joined: Sep 2008
Reputation: 1
Post: #2
you have a number of hurdles to get over.

1. Most anime doesn't have a season but some sites say they do by artificially creating them
2. the hash in the filename often trigger false positives
3. you cant use the hash in the filename as intended as a lookup
4. sites like thetvdb have poor anime coverage


If you want help do a debug log of XBMC trying to identify them and post it complete to pastebin and I will attempt to help you.


Having problems getting your TV shows recognized?

Try my extra TV show matching REGEX here
find quote
legendman Offline
Junior Member
Posts: 34
Joined: Dec 2007
Reputation: 0
Location: California, USA
Post: #3
Try Series Name\Season 01\01 - Episode name.mkv

I believe you need a season folder to scrape it right.
find quote
CyruzDraxs Offline
Junior Member
Posts: 23
Joined: Jan 2007
Reputation: 0
Post: #4
xexe Wrote:1. Most anime doesn't have a season but some sites say they do by artificially creating them
That kind of throws a wrench in things. >.>
xexe Wrote:2. the hash in the filename often trigger false positives
Can't regex check for numbers and require that they are followed by an opening brace, rather than a closing brace? Since the hash is pretty much always inside square braces I'd think that should be doable.
xexe Wrote:3. you cant use the hash in the filename as intended as a lookup
I was talking about grabbing the episode number before the hash. It would be pretty nice though if there was a hash-based database like what freedb is for CDs...
xexe Wrote:4. sites like thetvdb have poor anime coverage
I've actually found it's coverage to be pretty decent so far--it identified all my shows correctly and loaded thumbnails and fan art for almost all of it...it just ends up finding zero episodes, since the files themselves aren't recognized in the regex search. >.>
legendman Wrote:Try Series Name\Season 01\01 - Episode name.mkv

I believe you need a season folder to scrape it right.
I'd really rather not have to rename the files. That'd be very time consuming, considering I have 1.6TB of anime. :O
find quote
moeru Offline
Junior Member
Posts: 5
Joined: Nov 2009
Reputation: 0
Post: #5
tvdb forums are discussing how "seasons" are explained in Anime. Right now, its between 1 huge season or using the DVDs as breaks. The example would be Bleach having a subtitle for each "arc" of the series and each of those being a season.
find quote
CyruzDraxs Offline
Junior Member
Posts: 23
Joined: Jan 2007
Reputation: 0
Post: #6
Well, currently most anime is just numbered in a one-season style, so it'd make sense to go with that.
find quote
spiff Online
Grumpy Bastard Developer
Posts: 12,179
Joined: Nov 2003
Reputation: 82
Post: #7
actually, we support episode-only matching expressions these days. we automagically stuff things in season 1.

but you have to follow what tvdb uses in any case.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
CyruzDraxs Offline
Junior Member
Posts: 23
Joined: Jan 2007
Reputation: 0
Post: #8
No one has any suggestions on how to do this? I would've thought there'd be more anime fans that'd want something like this. Confused
find quote
xexe Offline
Fan
Posts: 711
Joined: Sep 2008
Reputation: 1
Post: #9
xexe Wrote:...


If you want help do a debug log of XBMC trying to identify them and post it complete to pastebin and I will attempt to help you.

You just ignored the offer for help that all Smile


Having problems getting your TV shows recognized?

Try my extra TV show matching REGEX here
find quote
joshuass Offline
Fan
Posts: 422
Joined: Sep 2009
Reputation: 0
Post: #10
I've found thetvdb.com's anime coverage to be very good. But what I've done is gone to teh db website first, and checked for my tv shows there. Then, once I know what I've got name my files, I rename them as I get them from torrents. Its kind of a roundabout process but it works great, and I'd say 90% of the 60 odd shows I have, have db entries now.

Windows 7 x64 Home Premium
Gigabyte MA78GM-U2SH Mainboard
ATI HD3200 Onboard
AMD 7750BE Dual-Core 4.00GB RAM
ATI HD3200 HDMI Sound
HTPC HMDI -> ONKYO TX-SR605 -> Panasonic TH-46PZ85U Plasma
find quote
Post Reply