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
OnlineVideos
subtitledownloader
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="te3hpurp" data-source="post: 1200069" data-attributes="member: 82806"><p>Hi again</p><p></p><p>[USER=98267]@doskabouter[/USER]</p><p></p><p>Sorry to be here again with watchseries problems :-(</p><p></p><p>Anyway. now site itself has some naming problems with episodes,</p><p>so in same big bang theory in season 10, there are episodes named like this:</p><p>"Episode 5Season10 Episode 5", which is then used, when trackinfo.Title</p><p>is generated, which is then used to fetch subtitle.</p><p></p><p>With debug, I mage my own fix, but as I'm not familiar with regex, it is quite rude.</p><p></p><p> [code] // 2nd way - using parent category name, category name and video title</p><p> //Aaron Stone Season 1 (19 episodes) 1. Episode 21 1 Hero Rising (1)</p><p> string parseString = string.Format("{0} {1} {2}", Regex.Replace(category.ParentCategory.Name, @"\(\d{4}\)", ""), category.Name, video.Title);</p><p> tInfo.Regex = Regex.Match(parseString, @"(?<Title>.+)\s+Season\s*?(?<Season>\d+).*?Episode\s*?(?<Episode>\d+)", RegexOptions.IgnoreCase);</p><p> </p><p> if (video.Title.ToLower().Contains("season"))</p><p> {</p><p> </p><p> string parseString = string.Format("{0} {1} {2}", Regex.Replace(category.ParentCategory.Name, @"\(\d{4}\)", ""), category.Name, video.Title);</p><p> tInfo.Regex = Regex.Match(parseString, @"(?<Title>.+)\s+Season\s*?(?<Season>\d+).*?Episode\s*?(?<Episode>\d+)", RegexOptions.IgnoreCase);</p><p> tInfo.Title = Regex.Replace(category.ParentCategory.Name, @"\(\d{4}\)", "");</p><p></p><p> }</p><p> else</p><p> {</p><p> string parseString = string.Format("{0} {1} {2}", Regex.Replace(category.ParentCategory.Name, @"\(\d{4}\)", ""), category.Name, video.Title);</p><p> tInfo.Regex = Regex.Match(parseString, @"(?<Title>.+)\s+Season\s*?(?<Season>\d+).*?Episode\s*?(?<Episode>\d+)", RegexOptions.IgnoreCase);</p><p> } [/code]</p><p></p><p>Official fix would probably be better, and for usablility I must now skip update on onlinevideos start. This naming system might also appear on another series too.</p><p></p><p></p><p>Br,</p></blockquote><p></p>
[QUOTE="te3hpurp, post: 1200069, member: 82806"] Hi again [USER=98267]@doskabouter[/USER] Sorry to be here again with watchseries problems :-( Anyway. now site itself has some naming problems with episodes, so in same big bang theory in season 10, there are episodes named like this: "Episode 5Season10 Episode 5", which is then used, when trackinfo.Title is generated, which is then used to fetch subtitle. With debug, I mage my own fix, but as I'm not familiar with regex, it is quite rude. [code] // 2nd way - using parent category name, category name and video title //Aaron Stone Season 1 (19 episodes) 1. Episode 21 1 Hero Rising (1) string parseString = string.Format("{0} {1} {2}", Regex.Replace(category.ParentCategory.Name, @"\(\d{4}\)", ""), category.Name, video.Title); tInfo.Regex = Regex.Match(parseString, @"(?<Title>.+)\s+Season\s*?(?<Season>\d+).*?Episode\s*?(?<Episode>\d+)", RegexOptions.IgnoreCase); if (video.Title.ToLower().Contains("season")) { string parseString = string.Format("{0} {1} {2}", Regex.Replace(category.ParentCategory.Name, @"\(\d{4}\)", ""), category.Name, video.Title); tInfo.Regex = Regex.Match(parseString, @"(?<Title>.+)\s+Season\s*?(?<Season>\d+).*?Episode\s*?(?<Episode>\d+)", RegexOptions.IgnoreCase); tInfo.Title = Regex.Replace(category.ParentCategory.Name, @"\(\d{4}\)", ""); } else { string parseString = string.Format("{0} {1} {2}", Regex.Replace(category.ParentCategory.Name, @"\(\d{4}\)", ""), category.Name, video.Title); tInfo.Regex = Regex.Match(parseString, @"(?<Title>.+)\s+Season\s*?(?<Season>\d+).*?Episode\s*?(?<Episode>\d+)", RegexOptions.IgnoreCase); } [/code] Official fix would probably be better, and for usablility I must now skip update on onlinevideos start. This naming system might also appear on another series too. Br, [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
subtitledownloader
Contact us
RSS
Top
Bottom