Swedish sites: SVT, TV4, Dplay Premium, UR, Viasat channels + Movie & Series sites (4 Viewers)

weekendowel

Portal Member
September 5, 2005
31
12
Stockholm
Home Country
Sweden Sweden
I'm doing it with the generic site creator tool. A util with login would be interesting, I don't know anything about util creation yet... Anyway, this is how far I've come, I found out where to get the file URL and that seems to work ok at the moment, movie starts. It needs to be a bit more polished:

Code:
<Site name="Swefilmer" util="GenericSite" agecheck="false" enabled="true" lang="sv">
  <Description>Swefilmer</Description>
  <Configuration>
    <item key="dynamicCategoriesRegEx"><![CDATA[<li\sclass=""><a\shref="(?<url>[^"]*)">(?<title>[^<]*)</a>]]></item>
    <item key="videoListRegEx"><![CDATA[<div\sclass="video_i">\s*<a\shref="(?<VideoUrl>[^"]*)">\s*<img\ssrc="(?<ImageUrl>[^"]*)"\salt="(?<Title>[^"]*)"\sclass="imag"\swidth="116"\sheight="87"/><div\sclass="tag"></div>\s*</a>]]></item>
    <item key="playlistUrlRegEx"><![CDATA[</noscript>\s*<iframe\ssrc="(?<url>[^>]*)></iframe>]]></item>
    <item key="fileUrlRegEx"><![CDATA[url360=(?<m0>[^&]*)&amp;url480=(?<m1>[^&]*)&amp;url720=(?<m2>[^&]*)&]]></item>
    <item key="baseUrl"><![CDATA[http://www.swefilmer.com]]></item>
  </Configuration>
</Site>
 

Ministerk

Super User
  • Team MediaPortal
  • Super User
  • November 28, 2007
    970
    826
    Uppsala
    Home Country
    Sweden Sweden
    I'm doing it with the generic site creator tool. A util with login would be interesting, I don't know anything about util creation yet... Anyway, this is how far I've come, I found out where to get the file URL and that seems to work ok at the moment, movie starts. It needs to be a bit more polished:

    Code:
    <Site name="Swefilmer" util="GenericSite" agecheck="false" enabled="true" lang="sv">
      <Description>Swefilmer</Description>
      <Configuration>
        <item key="dynamicCategoriesRegEx"><![CDATA[<li\sclass=""><a\shref="(?<url>[^"]*)">(?<title>[^<]*)</a>]]></item>
        <item key="videoListRegEx"><![CDATA[<div\sclass="video_i">\s*<a\shref="(?<VideoUrl>[^"]*)">\s*<img\ssrc="(?<ImageUrl>[^"]*)"\salt="(?<Title>[^"]*)"\sclass="imag"\swidth="116"\sheight="87"/><div\sclass="tag"></div>\s*</a>]]></item>
        <item key="playlistUrlRegEx"><![CDATA[</noscript>\s*<iframe\ssrc="(?<url>[^>]*)></iframe>]]></item>
        <item key="fileUrlRegEx"><![CDATA[url360=(?<m0>[^&]*)&amp;url480=(?<m1>[^&]*)&amp;url720=(?<m2>[^&]*)&]]></item>
        <item key="baseUrl"><![CDATA[http://www.swefilmer.com]]></item>
      </Configuration>
    </Site>
    Great!

    What happens when the movie does not have all the sources e.g. 720, doesn't the fileUrlRegEx fail? I'm far from an regex expert...
    In dreamfilm I match with url[0-9]+ to get all file urls. But then I don't know how to get all the groups (<m0>...) with the generic site creator tool.

    I haven't tried the site so much, holiday and stuff... + 503 responses all the time. But (y)
     

    pnyberg

    Portal Pro
    August 21, 2006
    405
    36
    Stockholm
    Home Country
    Sweden Sweden
    Hello ministerk,

    I am not seeing dreamfilm.se in OnlineVides? I have done an update, also reinstalled OnlineVideos but still no go...
    Downloaded MP2 for testing - and there I see dreamfilm.se ?

    Do you have any clue?
     

    Ministerk

    Super User
  • Team MediaPortal
  • Super User
  • November 28, 2007
    970
    826
    Uppsala
    Home Country
    Sweden Sweden
    Hello ministerk,

    I am not seeing dreamfilm.se in OnlineVides? I have done an update, also reinstalled OnlineVideos but still no go...
    Downloaded MP2 for testing - and there I see dreamfilm.se ?

    Do you have any clue?
    Hmm no. If you go to hantera sidor/manage sites (or what it's called, not at computer...), do you see dreamfilm in that list? If so go to that item and select it. Otherwise not a clue;)

    If you go to the install directory of mediaportal an then plugins\window\onlinevideos\ (ish...) and look at the properties for the ministerkrister.dll what version is it. I can later this evening check if you have the latest version.
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,583
    2,972
    Nuenen
    Home Country
    Netherlands Netherlands
    I think you shoud use
    Code:
    url(?<n0>[^=]+)=(?<m0>[^&]*)&
    for the fileurlregex
    that way, you get a nice name in the choice
    The m0..m3 are for different parts to form an url, not for different choices in quality.
     

    weekendowel

    Portal Member
    September 5, 2005
    31
    12
    Stockholm
    Home Country
    Sweden Sweden
    I think you shoud use
    Code:
    url(?<n0>[^=]+)=(?<m0>[^&]*)&
    for the fileurlregex
    that way, you get a nice name in the choice
    The m0..m3 are for different parts to form an url, not for different choices in quality.


    Wonderful! Thanks. I added ; before your code and it works perfectly to choose resolution

    Code:
    ;url(?<n0>[^=]+)=(?<m0>[^&]*)&


    Only thing left now is to figure out how to get to the movies that are behind login
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,583
    2,972
    Nuenen
    Home Country
    Netherlands Netherlands
    Logins usually require some programming (at least publish the username/password configuration) and try to figure how the login is handled (mostly posting the username+password and receive cookie which must be sent with subsequent requests)
     

    weekendowel

    Portal Member
    September 5, 2005
    31
    12
    Stockholm
    Home Country
    Sweden Sweden
    Ok, here is the final xml for swefilmer:

    Code:
    <Site name="Swefilmer" util="GenericSite" agecheck="false" enabled="true" lang="sv">
      <Description>Swefilmer</Description>
      <Configuration>
        <item key="dynamicCategoriesRegEx"><![CDATA[<li\sclass=""><a\shref="(?<url>[^"]*)">(?<title>[^<]*)</a></li>]]></item>
        <item key="videoListRegEx"><![CDATA[<div\sclass="video_i">\s*<a\shref="(?<VideoUrl>[^"]*)">\s*<img\ssrc="(?<ImageUrl>[^"]*)"\salt="(?<Title>[^"]*)"\sclass="imag"\swidth="116"\sheight="87"/><div\sclass="tag"></div>\s*</a>]]></item>
        <item key="nextPageRegEx"><![CDATA[</span><a\shref="(?<url>[^"]*)"]]></item>
        <item key="nextPageRegExUrlFormatString"><![CDATA[http://www.swefilmer.com/{0}]]></item>
        <item key="playlistUrlRegEx"><![CDATA[</noscript>\s*<iframe\ssrc="(?<url>[^>]*)></iframe>]]></item>
        <item key="fileUrlRegEx"><![CDATA[;url(?<n0>[^=]+)=(?<m0>[^&]*)&]]></item>
        <item key="searchUrl"><![CDATA[http://www.swefilmer.com/search.php?keywords={0}]]></item>
        <item key="baseUrl"><![CDATA[http://www.swefilmer.com]]></item>
      </Configuration>
    </Site>


    If someone can use this information and create a way to use login credentials then this would be perfect
     

    pnyberg

    Portal Pro
    August 21, 2006
    405
    36
    Stockholm
    Home Country
    Sweden Sweden
    Hmm no. If you go to hantera sidor/manage sites (or what it's called, not at computer...), do you see dreamfilm in that list? If so go to that item and select it. Otherwise not a clue;)

    If you go to the install directory of mediaportal an then plugins\window\onlinevideos\ (ish...) and look at the properties for the ministerkrister.dll what version is it. I can later this evening check if you have the latest version.

    I don't have the dreamfilm site in the onlinevideos config...

    The version of your .dll is 1.0.0.3064.

    Will check what version is in MP2..
     

    Users who are viewing this thread

    Top Bottom