home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules requests
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RoChess" data-source="post: 1055595" data-attributes="member: 18896"><p>The default primary parsing expression (you might need to use the 'Reset' button to ensure you got the latest version) should take care of that without any problem if the series title is correct. It looks for:</p><p> </p><p style="margin-left: 20px"><strong>Series Name Valid with TheTVdB - S01E01 - Episode Title.ext</strong></p><p></p><p style="margin-left: 20px">(Epsiode title and hypens are all optional, S01 and S1 are both valid/accepted, as is S2014E01 for year based shows)</p><p></p><p>That is your problem, the "(Carbon Creek)" is made part of the series title and fails to therefore find a match. Easy solution is to add a string replacement (before parsing) that takes:</p><p> </p><p>"Star Trek - Enterprise - (Carbon Creek)"</p><p> </p><p>and turns it into the TheTVdB correct tile of:</p><p> </p><p>"Star Trek: Enterprise"</p><p> </p><p>Since it is a string replacement, you can use invalid filename characters such as a semi-colon.</p><p> </p><p>You can always manually verify if it works via: <a href="http://www.thetvdb.com/api/GetSeries.php?seriesname=Star Trek: Enterprise" target="_blank"><strong>http://www.thetvdb.com/api/GetSeries.php?seriesname=Star Trek: Enterprise</strong></a></p><p> </p><p>PS: I just realized that "(Carbon Creek)" is more then likely the episode title and dynamic in nature. The only way to make dynamic strings be ignored is indeed to modify the parsing expression.</p><p> </p><p>Current default primary parsing expression is:</p><p> </p><p><strong><strong>[code]^(?:.*\\)?(?<series>[^\\]+?)[ _.\-\[]+(?:[s]?(?:eason\s?)?(?<season>\d+)[ _.\-\[\]]*[ex](?:pisode\s?)?(?<episode>\d+)|(?:\#|\-\s)(?<season>(?!(?:\d{4}.\d{2}.\d{2}|\d{2}.\d{2}.\d{4}))\d+)\.(?<episode>\d+))(?:[ _.+-]+(?:[s]?(?:eason\s?)?\k<season>[ _.\-\[\]]*[ex](?:pisode\s?)?(?<episode2>\d+)|(?:\#|\-\s)\k<season>\.(?<episode2>\d+))|(?:[ _.+-]*[ex+-]+(?:pisode\s?)?(?<episode2>\d+)))*[ _.\-\[\]]*(?<title>(?![^\\].*?(?<!the)[ .(-]sample[ .)-]).*?)\.(?<ext>[^.]*)$[/code]</strong></strong></p><p> </p><p><strong>Change that to:</strong></p><p> </p><p><strong><strong>[code]^(?:.*\\)?(?<series>[^\\]+?)[ _.\-\[]+(?:\(.+\)\s*)?(?:[s]?(?:eason\s?)?(?<season>\d+)[ _.\-\[\]]*[ex](?:pisode\s?)?(?<episode>\d+)|(?:\#|\-\s)(?<season>(?!(?:\d{4}.\d{2}.\d{2}|\d{2}.\d{2}.\d{4}))\d+)\.(?<episode>\d+))(?:[ _.+-]+(?:[s]?(?:eason\s?)?\k<season>[ _.\-\[\]]*[ex](?:pisode\s?)?(?<episode2>\d+)|(?:\#|\-\s)\k<season>\.(?<episode2>\d+))|(?:[ _.+-]*[ex+-]+(?:pisode\s?)?(?<episode2>\d+)))*[ _.\-\[\]]*(?<title>(?![^\\].*?(?<!the)[ .(-]sample[ .)-]).*?)\.(?<ext>[^.]*)$[/code]</strong></strong></p><p> </p><p>That will strip out any "(.....) " string at the end of the series name, so you would end up with:</p><p> </p><p><a href="http://www.thetvdb.com/api/GetSeries.php?seriesname=Star Trek - Enterprise" target="_blank"><strong>http://www.thetvdb.com/api/GetSeries.php?seriesname=Star Trek - Enterprise</strong></a></p><p> </p><p>Which also gives a valid match.</p><p> </p><p>Enjoy.</p></blockquote><p></p>
[QUOTE="RoChess, post: 1055595, member: 18896"] The default primary parsing expression (you might need to use the 'Reset' button to ensure you got the latest version) should take care of that without any problem if the series title is correct. It looks for: [INDENT][B]Series Name Valid with TheTVdB - S01E01 - Episode Title.ext[/B][/INDENT] [INDENT](Epsiode title and hypens are all optional, S01 and S1 are both valid/accepted, as is S2014E01 for year based shows)[/INDENT] That is your problem, the "(Carbon Creek)" is made part of the series title and fails to therefore find a match. Easy solution is to add a string replacement (before parsing) that takes: "Star Trek - Enterprise - (Carbon Creek)" and turns it into the TheTVdB correct tile of: "Star Trek: Enterprise" Since it is a string replacement, you can use invalid filename characters such as a semi-colon. You can always manually verify if it works via: [URL='http://www.thetvdb.com/api/GetSeries.php?seriesname=Star Trek: Enterprise'][B]http://www.thetvdb.com/api/GetSeries.php?seriesname=Star Trek: Enterprise[/B][/URL] PS: I just realized that "(Carbon Creek)" is more then likely the episode title and dynamic in nature. The only way to make dynamic strings be ignored is indeed to modify the parsing expression. Current default primary parsing expression is: [B][B][code]^(?:.*\\)?(?<series>[^\\]+?)[ _.\-\[]+(?:[s]?(?:eason\s?)?(?<season>\d+)[ _.\-\[\]]*[ex](?:pisode\s?)?(?<episode>\d+)|(?:\#|\-\s)(?<season>(?!(?:\d{4}.\d{2}.\d{2}|\d{2}.\d{2}.\d{4}))\d+)\.(?<episode>\d+))(?:[ _.+-]+(?:[s]?(?:eason\s?)?\k<season>[ _.\-\[\]]*[ex](?:pisode\s?)?(?<episode2>\d+)|(?:\#|\-\s)\k<season>\.(?<episode2>\d+))|(?:[ _.+-]*[ex+-]+(?:pisode\s?)?(?<episode2>\d+)))*[ _.\-\[\]]*(?<title>(?![^\\].*?(?<!the)[ .(-]sample[ .)-]).*?)\.(?<ext>[^.]*)$[/code][/B][/B] [B]Change that to:[/B] [B][B][code]^(?:.*\\)?(?<series>[^\\]+?)[ _.\-\[]+(?:\(.+\)\s*)?(?:[s]?(?:eason\s?)?(?<season>\d+)[ _.\-\[\]]*[ex](?:pisode\s?)?(?<episode>\d+)|(?:\#|\-\s)(?<season>(?!(?:\d{4}.\d{2}.\d{2}|\d{2}.\d{2}.\d{4}))\d+)\.(?<episode>\d+))(?:[ _.+-]+(?:[s]?(?:eason\s?)?\k<season>[ _.\-\[\]]*[ex](?:pisode\s?)?(?<episode2>\d+)|(?:\#|\-\s)\k<season>\.(?<episode2>\d+))|(?:[ _.+-]*[ex+-]+(?:pisode\s?)?(?<episode2>\d+)))*[ _.\-\[\]]*(?<title>(?![^\\].*?(?<!the)[ .(-]sample[ .)-]).*?)\.(?<ext>[^.]*)$[/code][/B][/B] That will strip out any "(.....) " string at the end of the series name, so you would end up with: [URL='http://www.thetvdb.com/api/GetSeries.php?seriesname=Star Trek - Enterprise'][B]http://www.thetvdb.com/api/GetSeries.php?seriesname=Star Trek - Enterprise[/B][/URL] Which also gives a valid match. Enjoy. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Expressions/Rules requests
Contact us
RSS
Top
Bottom