tresni / freenas-rss-extension

Automatically exported from code.google.com/p/freenas-rss-extension
0 stars 0 forks source link

Filer Match Occurs but Episode Match fails when S and E are lower case #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Review feed History to find matches in the logs, but episodes not downloaded.
2.
3.

What is the expected output? What do you see instead?
Expect a match on episode not yet downloaded, but instead they are skipped.

What version of the product are you using? On what operating system?
mostly the latest trunk files, on FreeNAS 0.7.1

Please provide any additional information below.
I made it work by changing one line in rss_cron.php to include the trailing 'i' 
in the Regular Expression

if(!preg_match('/\W(?:S0*(\d+)E0*(\d+)|0*(\d+)x0*(\d+)(?:\.0*(\d+))?)\W/', 
$item['title'], $match))

to

if(!preg_match('/\W(?:S0*(\d+)E0*(\d+)|0*(\d+)x0*(\d+)(?:\.0*(\d+))?)\W/i', 
$item['title'], $match))

Original issue reported on code.google.com by omni...@gmail.com on 28 Jul 2013 at 12:06