Media Companion
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Media Companion

Discussion and development board for the program Media Companion.
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 TV Scraper Regex priority

Go down 
2 posters
AuthorMessage
StormyKnight
VIP
VIP



Posts : 556
Join date : 2008-10-08
Location : Australia

TV Scraper Regex priority Empty
PostSubject: TV Scraper Regex priority   TV Scraper Regex priority Icon_minitimeThu Nov 19, 2009 2:28 pm

Just found an issue with the program "V" .... filename e.g. V.2009.S01E01.avi

because of the order of the regex's the Series 20 Episode 09 is being found first & the S01E01 is not even being tested.

Billy, can we somehow order these to our preferences OR do you think that S01E01 format should be tested first since the other could easily be just a 4 digit year. It should be left to last as a last resort.

I think the tesing order should be

S01E01
1x01
0101

I see now most episodes are using the S01E01 format so perhaps it should be the first test?

Feature/Bug depends how you fix it.....

Cheers



..just an update....

I was able to maniplulate the regex's & change the order the same as the suggestion above & it will now scrape correctly, so perhaps the default order can be changed for the next release?

Thanks.
Back to top Go down
billyad2000
Admin
billyad2000


Posts : 1326
Join date : 2008-09-20

TV Scraper Regex priority Empty
PostSubject: Re: TV Scraper Regex priority   TV Scraper Regex priority Icon_minitimeThu Nov 19, 2009 4:48 pm

I've just looked at this, the default regex priority is

<regexlist>
<tvregex>[Ss]([\d]{1,2}).?[Ee]([\d]{1,2})</tvregex>
<tvregex>([\d]{1,2}) ?[xX] ?([\d]{1,2})</tvregex>
<tvregex>([0-9]+)([0-9][0-9])</tvregex>
</regexlist>

This is the regex file as created by MC when such a file does not exist.

MC loops through these until it finds a match, in the following order, unless the order is changed by the user
S01E01
Then
1x01
then
101
Back to top Go down
http://billyad2000.co.uk
StormyKnight
VIP
VIP



Posts : 556
Join date : 2008-10-08
Location : Australia

TV Scraper Regex priority Empty
PostSubject: Re: TV Scraper Regex priority   TV Scraper Regex priority Icon_minitimeFri Nov 20, 2009 2:07 am

Thats odd,

The order I had in my regex list was the reverse....

Was the order the other way round at any stage & would copying over with the updated MC overwrite the saved order or not?

PS I may have played with the regex's order some time in the past not being aware of the consquences silent

Thanks.
Back to top Go down
Sponsored content





TV Scraper Regex priority Empty
PostSubject: Re: TV Scraper Regex priority   TV Scraper Regex priority Icon_minitime

Back to top Go down
 
TV Scraper Regex priority
Back to top 
Page 1 of 1
 Similar topics
-
» IMDBscraper priority of search results
» A better regex?
» TV Show regex help
» Regex problem tv scrapper
» V3.230 TV Preferences not sticking & Regex Missing

Permissions in this forum:You cannot reply to topics in this forum
Media Companion :: Media Companion :: Feature Requests-
Jump to: