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
Development
Improvement Suggestions
Browse SVT and TV4 video archives
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="frippe75" data-source="post: 126762" data-attributes="member: 21112"><p>BUT... couldn't you make the plugin a bit more "dynamic" soo that other users could assist when the layout of svt page changes?? Maybe add some config option where you could enter reg.exp needed to populate the list with links to the shows??</p><p></p><p>Maybe to complicated? The risk is that the plugin keeps getting outdated all the time. If you write a more generic plug thing would be different?</p><p></p><p>Just some thoughts!</p><p></p><p></p><p>Example:</p><p></p><p>Baselink="http://svt.se/svt/road/Classic/shared/mediacenter/"</p><p>Startlink= "navigation.jsp?d=37591"</p><p>UrlRegExp[0]="navigation.jsp\?d=[0-9]{5}\&group=[0-9]{5}"</p><p>LinkNameRegExp[0]="onClick="shL(false,'[0-9]{5}');">\([aA-zZ]*\)</a>"</p><p></p><p>UrlRegExp[1]="navigation.jsp?d=[0-9]{6}"</p><p>LinkNameRegExp[1]="onClick="shL();">\([aA-zZ]*\)</a>"</p><p>FilenameRegExp[1]="onClickFile="\([aA-zZ]\)</a"</p><p></p><p></p><p>The Baselink+Startlink would be the main page to parse to get a "Top menu".</p><p>Looking at UrlRegExp[0] indicates that this is the way (using [0]) for getting the top level link to follow for item with name LinkNameRegExp[0].</p><p></p><p>Once you press enter to follow a selection you go into [1] assuming things changes link-wise. Which I noticed it does for SVT. If they would be using the same naming convention for Menulevel[1] it could be left empty. But now since FilenameRegExp contains something it means that we have a link that can be played... ie started in the player.. </p><p></p><p>This type of thinking would enable you to write a generic plugin which could be used for tv4 as well... and any other channel have online clips like this. </p><p></p><p>Of couse other things needs to be in place but anyone with regexp knowledge would be able to submit a new config for "SVT" and things would be fine and dandy. So you could incoporate many config's for example for SVT,TV4 and Kanal5. </p><p></p><p>The regexp I entered is a mix between unix regexp and perl's reg exp which differs. To tired to look the correct syntax up but you probably get the message.</p><p></p><p>Comments?</p></blockquote><p></p>
[QUOTE="frippe75, post: 126762, member: 21112"] BUT... couldn't you make the plugin a bit more "dynamic" soo that other users could assist when the layout of svt page changes?? Maybe add some config option where you could enter reg.exp needed to populate the list with links to the shows?? Maybe to complicated? The risk is that the plugin keeps getting outdated all the time. If you write a more generic plug thing would be different? Just some thoughts! Example: Baselink="http://svt.se/svt/road/Classic/shared/mediacenter/" Startlink= "navigation.jsp?d=37591" UrlRegExp[0]="navigation.jsp\?d=[0-9]{5}\&group=[0-9]{5}" LinkNameRegExp[0]="onClick="shL(false,'[0-9]{5}');">\([aA-zZ]*\)</a>" UrlRegExp[1]="navigation.jsp?d=[0-9]{6}" LinkNameRegExp[1]="onClick="shL();">\([aA-zZ]*\)</a>" FilenameRegExp[1]="onClickFile="\([aA-zZ]\)</a" The Baselink+Startlink would be the main page to parse to get a "Top menu". Looking at UrlRegExp[0] indicates that this is the way (using [0]) for getting the top level link to follow for item with name LinkNameRegExp[0]. Once you press enter to follow a selection you go into [1] assuming things changes link-wise. Which I noticed it does for SVT. If they would be using the same naming convention for Menulevel[1] it could be left empty. But now since FilenameRegExp contains something it means that we have a link that can be played... ie started in the player.. This type of thinking would enable you to write a generic plugin which could be used for tv4 as well... and any other channel have online clips like this. Of couse other things needs to be in place but anyone with regexp knowledge would be able to submit a new config for "SVT" and things would be fine and dandy. So you could incoporate many config's for example for SVT,TV4 and Kanal5. The regexp I entered is a mix between unix regexp and perl's reg exp which differs. To tired to look the correct syntax up but you probably get the message. Comments? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Browse SVT and TV4 video archives
Contact us
RSS
Top
Bottom