7
« on: May 03, 2010, 01:00:16 pm »
Continue with my last Thread about it......
To test de regex I delete all the regex availables.
File name example >
<tv serie tittle> - <season - episode> - <episode tittle>
Example: Aqui no hay quien viva - 1x01 - Erase una mudanza.avi
(?i)^.*\\(?P<title>.*)(s|\b)(?P<season>[0-9]{1,3})e(?P<episode>[0-9]{1,3}) > original > Result > "Aqui no hay quien viva - 1x01 - Erase una mudanza"
(?i)^.*\\(?P<title>.*)(s|\b)(?P<season>[0-9]{1,3})x(?P<episode>[0-9]{1,3}) > result: "1"
(?i)^.*\\(?P<title>.*).?-.?(?P<season>[0-9]{1,3})x(?P<episode>[0-9]{1,3}).?-.?(?P<eptitle>\w*\b) > Original > Result: "Erase"
(?i)^.*\\(?P<title>.*).?-.?(?P<season>[0-9]{1,3})x(?P<episode>[0-9]{1,3}).?-.?(?P<eptitle>)\..{3,4} > suggested by rick.ca > result: "Aqui no hay quien viva - 1x01 - Erase una mudanza"
At this point I started trying several combinations found trough internet, due to my lack of experiense with code or language
(?i)^.*\\(?P<title>.*).?-.?(?P<season>[0-9]{1,3})x(?P<episode>[0-9]{1,3}).?-.?(?P<eptitle>*\W)$ > Result: "Aqui no hay quien viva - 1x01 - Erase una mudanza avi" it doesnt remove the file extention
(?i)^.*\\(?P<title>.*).?-.?(?P<season>[0-9]{1,3})x(?P<episode>[0-9]{1,3}).?-.?(?P<eptitle>[^\\/]*[.avi$]) > Result: "Aqui no hay quien viva - 1x01 - Erase una mudanza avi" it doesnt remove the file extention
I manage to solve the problem, "WITH MY FILE STRUCTURE" with next expresion.
(?i)^.*\\(?P<title>.*).?-.?(?P<season>[0-9]{1,3})x(?P<episode>[0-9]{1,3}).?-.?(?P<eptitle>[^.]+) > ok > result: "Erase una mudanza"
The problem I found with it is that I cant put a dot into the episode title