Media Companion

Discussion and development board for the program Media Companion.
HomeHome  ­FAQFAQ  ­SearchSearch  ­RegisterRegister  ­Log inLog in  
Post new topic   Reply to topicShare | 
 

 Add some things to built-in reg ex

View previous topic View next topic Go down 
AuthorMessage
rausch101
Junior Member
Junior Member


Posts: 38
Join date: 2008-09-30

PostSubject: Add some things to built-in reg ex   Fri Oct 16, 2009 2:46 am

Hey Billy, great work on the new version. Easily the best TV manager right now.

I was wondering if you could add some common expressions to your built-in RegEx, as I'm not familiar with how to add them, plus they're pretty common

X264
2HD
0TV
NoTV

Thanks if you get a chance!
Back to top Go down
View user profile
billyad2000
Admin


Posts: 890
Join date: 2008-09-20

PostSubject: Re: Add some things to built-in reg ex   Fri Oct 16, 2009 11:51 am

Could you clarify on that please,

Are you talking about Movies or TV Shows,

If it is TV Episodes then I am not sure what you mean,

The regex for tv episodes are used to acertain the episode season and episode numbers anything else is ignored
Supported naming conventions include (Not case sensitive)
S01E02
1x2
01x02
1x02 - these all show season1 episode2
or for multipart, both the following sees season 1 episodes 2,3, and 4
S01E02E03E04
01x02x03x04

x264 may be an issue as it could be taken as a multipart file ("01x01 episodetitle x264.avi"), I will add a check for this in the next build
All other chrs and strings in an episode filename are ignored, including 2HD, 0TV, and NoTV

_________________
Do you have a problem with Media Companion, before posting a bug then please check you have the very latest version of Media Companion http://billyad2000.darkbb.com/announcements-f1/
Back to top Go down
View user profile http://billyad2000.co.uk
TheDogg
New User
New User


Posts: 6
Join date: 2009-01-18

PostSubject: Re: Add some things to built-in reg ex   Fri Oct 16, 2009 7:27 pm

One usefull addition to the regex would be one of the scene standard:

show.102.whatever.avi

it is very similar to the 1x02 but without the x

multipart episodes for that naming convention are either:
102.03
or
102.103
Back to top Go down
View user profile
billyad2000
Admin


Posts: 890
Join date: 2008-09-20

PostSubject: Re: Add some things to built-in reg ex   Fri Oct 16, 2009 8:17 pm

TheDogg wrote:
One usefull addition to the regex would be one of the scene standard:

show.102.whatever.avi

it is very similar to the 1x02 but without the x

multipart episodes for that naming convention are either:
102.03
or
102.103


Gotta be a bit careful with regex since multiple matches causes a problem, for example
S02E101
would match
season 2 episode 101
and
Season 1 episode 1

Although this could be solved by checking for the match in that order and returning the first hit. I will add that as a standard, just gotta be cautious about adding each possible pattern since they can overlap.

I will also enable the regex editor for the next build. (Give me a day or two)

_________________
Do you have a problem with Media Companion, before posting a bug then please check you have the very latest version of Media Companion http://billyad2000.darkbb.com/announcements-f1/
Back to top Go down
View user profile http://billyad2000.co.uk
rausch101
Junior Member
Junior Member


Posts: 38
Join date: 2008-09-30

PostSubject: Re: Add some things to built-in reg ex   Fri Oct 16, 2009 10:04 pm

Sorry about the lack of clarification...

I had quite a few episodes that were overlooked during the TV scrape that had any of

X264
2HD
0TV
NoTV

in their file names. Once removing them (x264,2hd, etc.) the shows scraped fine. I can go back, rename them to their previous names, re-scrape and output a log if you'd like.
Back to top Go down
View user profile
billyad2000
Admin


Posts: 890
Join date: 2008-09-20

PostSubject: Re: Add some things to built-in reg ex   Fri Oct 16, 2009 10:53 pm

rausch101 wrote:
Sorry about the lack of clarification...

I had quite a few episodes that were overlooked during the TV scrape that had any of

X264
2HD
0TV
NoTV

in their file names. Once removing them (x264,2hd, etc.) the shows scraped fine. I can go back, rename them to their previous names, re-scrape and output a log if you'd like.


I've just fixed the x264 issue, but an example filename that wouldn't scrape would be helpful

_________________
Do you have a problem with Media Companion, before posting a bug then please check you have the very latest version of Media Companion http://billyad2000.darkbb.com/announcements-f1/
Back to top Go down
View user profile http://billyad2000.co.uk
billyad2000
Admin


Posts: 890
Join date: 2008-09-20

PostSubject: Re: Add some things to built-in reg ex   Sat Oct 17, 2009 11:52 am

TheDogg wrote:
One usefull addition to the regex would be one of the scene standard:

show.102.whatever.avi

it is very similar to the 1x02 but without the x

multipart episodes for that naming convention are either:
102.03
or
102.103


I'm a little bit concerned about adding support for the multipart episode convenion for this, I can imagine many filenames having a period or comma followed by a number that is unrelated to the episode no

_________________
Do you have a problem with Media Companion, before posting a bug then please check you have the very latest version of Media Companion http://billyad2000.darkbb.com/announcements-f1/
Back to top Go down
View user profile http://billyad2000.co.uk
rausch101
Junior Member
Junior Member


Posts: 38
Join date: 2008-09-30

PostSubject: Re: Add some things to built-in reg ex   Tue Oct 20, 2009 4:47 am

billyad2000 wrote:
I've just fixed the x264 issue, but an example filename that wouldn't scrape would be helpful


A few files take a very long time to scrape (over 5 minutes per file) and a few don't scrape at all.

The ones that take a very long time, but eventually do scrape:

Curb Your Enthusiasm S07E05 HDTV XviD-2HD.avi
Dexter S04E04 HDTV XviD-NoTV.avi


The ones that scrape as multi-part files when they shouldn't:

Californication.S03E04.HDTV.XviD-0TV.avi

Code:
Working on episode: G:\Media\TV Shows\Californication\Californication Season 3\Californication.S03E04.HDTV.XviD-0TV.nfo
Multipart episode found:
Season: 03 Episodes, 04, 0,
Looking up scraper options from tvshow.nfo
Scraping body of episode: 4
This episode could not be found on TVDB



I can't remember the names of the files that don't scrape at all, but I'll be sure to post when I come across them again.

Thanks again for the great program.

Not that my TV Show file structure for all shows is: /TV Shows/The Simpsons/The Simpsons Season 1/<file> etc.

EDIT: Now I am just trying to scrape "Curb.Your.Enthusiasm.S07E05.avi" and it's taking forever. I've cleared the cache and restarted, same thing. Maybe it's not a regex thing? I'm on Windows 7 64-bit.

EDIT 2: I think I found the pattern. This seems to only be happening with fake files that I have. Sorry for the trouble...I'll let you know for sure after I test it some more.
Back to top Go down
View user profile
 

Add some things to built-in reg ex

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
Media Companion :: Media Companion :: Feature Requests-
Post new topic   Reply to topic