Support for a site request thread (4 Viewers)

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    All you need to implement is a new Util, and since the site is very similar to southpark.de, you can just take that util, make a copy of it and change any .nl specific settings.

    That site does not have rss, so coding is required.

    I know many people want their sites supported and asking ffor a guide, but I don't have all the time in the world to also write pages of how tos ;) I'm also trying to create more generic utils that can be used for websites that don't have rss. But the Regular expressions are the least one has to find always for html sites.
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,583
    2,972
    Nuenen
    Home Country
    Netherlands Netherlands
    This may get a little offtopic here, bu I just got the sourcecode, and try to compile it with the references to the external dlls (core,databases,dialogs etc) set to the dll's from mediaportal version 1.0.2, and it seems that the interfaces has changed somewhat (VMR9Util.g_vmr9.EVRProvidePlaybackRate and IPlayer.HasViz) but the downloaded plugin (0.13.0.0) seems to run perfectly under mediaportal 1.0.2, should I get the latest mediaportal dll's to get it to compile?
     

    sens_2002

    MP Donator
  • Premium Supporter
  • February 4, 2009
    37
    1
    Home Country
    Switzerland Switzerland
    Russia.ru

    Hey, there is a very big Russian resource "RUSSIA.RU" (RUSSIA.RU)
    I have added it to OnlineVideoSites.xml like this (most interesting topics and programs):

    <Site name="Russia.RU" util="GenericSite" agecheck="false" enabled="true" lang="ru">
    <Description>Russia.ru - первый российский телеканал, созданный для пользователей интернета. </Description>
    <Categories>
    <Category xsi:type="RssLink" name="Видео" thumb="">http://www.russia.ru/rss/video.xml</Category>
    <Category xsi:type="RssLink" name="Популярное" thumb="">http://www.russia.ru/rss/popular.xml</Category>
    <Category xsi:type="RssLink" name="Новости" thumb="">http://www.russia.ru/rss/news.xml</Category>
    <Category xsi:type="RssLink" name="Программа Ц" thumb="">http://www.russia.ru/rss/programma_c.xml</Category>
    <Category xsi:type="RssLink" name="Кинопремьеры" thumb="">http://www.russia.ru/rss/kinopremery.xml</Category>
    <Category xsi:type="RssLink" name="Ученые МГУ" thumb="">http://www.russia.ru/rss/uchenye_mgu.xml</Category>
    <Category xsi:type="RssLink" name="Авто" thumb="">http://www.russia.ru/rss/auto.xml</Category>
    <Category xsi:type="RssLink" name="Гонка Вооружений" thumb="">http://www.russia.ru/rss/gonka_vooruzhenij.xml</Category>
    <Category xsi:type="RssLink" name="Республика Каzантип" thumb="">http://www.russia.ru/rss/respublika_kazantip.xml</Category>
    <Category xsi:type="RssLink" name="Популярная наука" thumb="">http://www.russia.ru/rss/populjarnaja_nauka.xml</Category>
    <Category xsi:type="RssLink" name="Герой нашего времени" thumb="">http://www.russia.ru/rss/geroj_nashego_vremeni.xml</Category>
    </Categories>
    </Site>

    However I do not know how to add a logo and possibly thumbnails.
    Thanks!
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,583
    2,972
    Nuenen
    Home Country
    Netherlands Netherlands
    I managed to get the regexes and urls correct for southpark.nl, but I'm not able to play any file.
    I can select seasons/episodes correctly, so the url/regexes parts seems fine.

    When I step through the source, the link added to result in getMultipleVideoUrls
    is http://127.0.0.1:30004/stream.flv?rtmpurl=rtmp%3a%2f%2fcp40493.edgefcs.net%2fondemand%2fmtvnorigin%2fgsp.comedystor%2fcom%2fsp%2fScrewYou%2fsp_screwYou_0101_03_480.flv&swfsize=563963&swfhash=1155163cece179766c97fedce8933ccfccb9a553e47c1fabbb5faeacc4e8ad70

    is this correct? I mean, 127.0.0.1 is localhost. Is this some kind of loopback thing to get the player playing?

    Maybe the hash isn't correct?

    Any help?
    Or maybe this is the wrong subforum for this kind of discussions?
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Yes rtmp streams are re-streamed via a local proxy. The hash is probably wrong, as it is the hash for the swf of the de site. You might also want to check the logfiles, there is more info.
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,583
    2,972
    Nuenen
    Home Country
    Netherlands Netherlands
    Ah, ok I get it.

    The only thing that needs to be done is get the correct hashes.
    Any insights? I checked (through a german proxy) if I could find the hash anywhere in the html sources.
    And I see only one hash in the link (the swfhash). That is the same hash as in your code, and there are no other hashes there as far as I can see.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    The might only be needed if the the streams are encrypted. (url starts with rtmpe). Otherwise you can get the md5 hash of the swf with some small tools. Just download the swf and md5 hash it.
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,583
    2,972
    Nuenen
    Home Country
    Netherlands Netherlands
    I don't quite understand it.
    As far as I can see, there is only one hard-coded hash in the current southparkde.cs, and I only changed some url parts to match the southpark.nl site.
    These two sites have almost identical html (only some words are translated to english (episoden->episodes)), so I find it hard to believe that the southpark.nl uses other "tricks" as the southpark.de site.

    So (I hope) the only thing I need is to get the nl-variant of the hash you hard-coded. How did you get this hash?

    I digged a little deeper into the html of the page with the flash player on it, and there are some differences:
    Southpark.de:
    Code:
    var flashvars = {
    mode : "fe",
    autoPlay : "true"
    };
    
    var params = {
    allowFullScreen : "true",
    allowScriptAccess : "always",
    enablejavascript : "true",
    swLiveConnect : "true",
    quality : "high",
    bgcolor : "#000000",
    align : "middle",
    name : "ump",
    pluginspage : "http://www.macromedia.com/go/getflashplayer"
    };
    var attributes = {
    id : "mtvnPlayer",
    type : "application/x-shockwave-flash"
    };
    swfobject.embedSWF("http://media.mtvnservices.com/mgid:hcx:content:southparkstudios.de:4653989b-84e6-4cc5-ad28-608532bb065d", "mtvnPlayer", "100%", "100%", "9.0.0", false, flashvars, params, attributes);

    Southpark.nl:
    Code:
    var flashvars = {
    soWmode: "window",
    autoPlay: "true",
    soTargetDivId: "video_player_box"
    };
    var params = {
    allowscriptaccess: "always",
    allowfullscreen: "true",
    wmode: "transparent"
    };
    var attributes = {
    id : "mtvnPlayer",
    type : "application/x-shockwave-flash"
    };
    swfobject.embedSWF("http://media.mtvnservices.com/mgid:hcx:item:southparkstudios.nl:d9c31a54-ef68-4d54-9336-d5412645982f", "clips_player_swf", "480", "400", "9.0.115", "http://www.southparkstudios.com/clips/expressInstall.swf", flashvars, params, attributes);

    Does this help?

    If this is working, then I may make a generic "southpark class" with configurable parameters for each country through the config
     

    Users who are viewing this thread

    Top Bottom