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
Trakt
Add scrobble support for Live TV / Recorded TV
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="ltfearme" data-source="post: 845916" data-attributes="member: 52219"><p>Here is the regular expression we use to extract the title and year from the title field in the tv epg:</p><p>[CODE]</p><p>"^(?<title>.+?)(?:\s*[\(\[](?<year>\d{4})[\]\)])?$"</p><p>[/CODE]</p><p>If the title field also includes other information (such as 'first time aired') then we can tweak that expression so that includes more capture groups...any one in the community can help us out on that.</p><p> </p><p>If someone can make a list of all the possibilities for title field, then we can start to improve the expression.</p><p> </p><p>So in your glee example above 'Glee - 1^TV' is being returned from your title field and is captured as is in our expression.</p></blockquote><p></p>
[QUOTE="ltfearme, post: 845916, member: 52219"] Here is the regular expression we use to extract the title and year from the title field in the tv epg: [CODE] "^(?<title>.+?)(?:\s*[\(\[](?<year>\d{4})[\]\)])?$" [/CODE] If the title field also includes other information (such as 'first time aired') then we can tweak that expression so that includes more capture groups...any one in the community can help us out on that. If someone can make a list of all the possibilities for title field, then we can start to improve the expression. So in your glee example above 'Glee - 1^TV' is being returned from your title field and is captured as is in our expression. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Trakt
Add scrobble support for Live TV / Recorded TV
Contact us
RSS
Top
Bottom