| |||||||
| Improvement Suggestions You have an idea how MediaPortal could be improved? Post it in here. |
![]() |
| | Thread Tools | Display Modes |
| | #36 (permalink) |
| Portal Designer Join Date: Apr 2005 Location: Stockholm, Sweden Age: 23
Posts: 510
Thanks: 87
Thanked 54 Times in 29 Posts
| What is the progress?
__________________ Skin: SimpleMP Beta 4 |
| | |
| | #38 (permalink) |
| Portal Member Join Date: May 2005 Location: Göteborg Age: 34
Posts: 180
Thanks: 7
Thanked 39 Times in 19 Posts
Country: | There are some pages that are not correctly parsed with the regular expressions I use. I honestly haven't looked into the problem (I have too many ideas and projects, and not enough time). I'll try to release some kind of beta with the current plugin (works with some videos, not all) and the source code and perhaps you can help me out. |
| | |
| | #40 (permalink) | |
| Portal Member Join Date: Jun 2006
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
| Quote:
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? Last edited by frippe75; 2007-02-14 at 22:35. Reason: adding example | |
| | |
![]() |
| Bookmarks |
| Tags |
| archives, browse, svt, tv4, video |
| Thread Tools | |
| Display Modes | |
| |