Does dr.dk work? (2 Viewers)

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    I wouldn't use regexps with this nice API. Create a new c# util that uses the JSON lib that is already in OnlineVideos. Override the necessary functions -> it will be much easier than trying to find regexps for the json data returned by the api.

    No idea what this means: Serveren forårsagede en protokolfejl
    But it sounds like the url is not valid.

    I'm not sure how to do that, and I figured this much out:

    Categories (shows) are in XML-format in
    www.dr.dk/nu/api/programseries.xml

    But to get the videos from a category (show) the URL is
    www.dr.dk/nu/api/programseries/21-soendag/videos

    Where "21-soendag" is contained within the "slug":

    <Slug>21-soendag</Slug>

    Accordign to the API, it should be possible to get the XML-file with the videos, but www.dr.dk/nu/api/programseries/21-soendag/videos.xml doesn't work, only www.dr.dk/nu/api/programseries/21-soendag/videos (which returns JSON)
     

    stefanbaar

    Portal Pro
    October 31, 2007
    178
    3
    Holstebro
    Home Country
    Denmark Denmark
    Dont know if it is any help, but when I download from dr.dk/nu the link i am using seems to be:

    rtmp://vod-prio2.gss.dr.dk/cms<break>mp4:CMS/Resources/dr.dk/NETTV/DR1/2011/02/7351ee83-bc9a-4d65-9cae-6132919ca55f/lykke-9--maa-kun-anvendes-til-_5f0dee75d6aa48ccb6201816c211fdcc.mp4?ID=873242

    And the feedback from "Replay Media Catcher 4" (in danish):

    Download fil: Kopier af DR NU.flv
    Startet: 08-03-2011 17:45
    Queued for downloading
    Starter RTMP download ...
    Finder filnavn ...
    Finder filnavn fra side titel ...
    Filnavn findning fuldført
    Begrænset tilstand - 50% af ondemand eller 1 minut af live streamings vil blive fanget.
    RTMP Super Download
    Sender RTMP Handshake anmodning ...
    Venter på RTMP Handshake Svar ...
    Modtaget RTMP Handshake Svar ...
    Sender RTMP Handshake Fuldført og Forbundet ...
    Venter på RTMP forbindelses svar fra serveren ...
    Behandler RTMP forbindelses svar fra serveren ...
    Venter på RTMP forbindelses svar fra serveren ...
    Behandler RTMP forbindelses svar fra serveren ...
    Succesfuldt forbundet ...
    Sender createStream ...
    Indekset lå uden for området. Det må ikke være negativt og skal være mindre end størrelsen på samlingen.
    Parameternavn: index
    Sender play ...
    Requesting buffer time of 36000000
    Downloading (RTMP) - 490 B
    Downloading (RTMP) - 1 KB (00:00:00 / Live stream)
    Downloading (RTMP) - 5 KB (00:00:00 / Live stream)
    Downloader (RTMP) - Varighed 00:56:47
    Downloading (RTMP) - 13 KB (00:00:00 / 00:56:47)
    Downloading (RTMP) - 13 KB (00:00:00 / 00:56:47)
    Downloading (RTMP) - 21 KB (00:00:00 / 00:56:47)
    Downloading (RTMP) - 29 KB (00:00:00 / 00:56:47)
    Downloading (RTMP) - 37 KB (00:00:00 / 00:56:47)
    etc etc

    But I can not play the link in vlc
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    I wouldn't use regexps with this nice API. Create a new c# util that uses the JSON lib that is already in OnlineVideos. Override the necessary functions -> it will be much easier than trying to find regexps for the json data returned by the api.

    No idea what this means: Serveren forårsagede en protokolfejl
    But it sounds like the url is not valid.

    I'll try and add a C# Util, should it be under Sites.offbyone?
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #55
    AW: Does dr.dk work?

    No, you can create your own project for that and submit that dll (automatically uploaded when you publish that site). This way you can also maintain and update it whenever needed without requiring my interaction. If you want SVN access to add your project to those already in OnlineVideos SVN give me a google email, so I can add you as contributer to the project.
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Re: AW: Does dr.dk work?

    No, you can create your own project for that and submit that dll (automatically uploaded when you publish that site). This way you can also maintain and update it whenever needed without requiring my interaction. If you want SVN access to add your project to those already in OnlineVideos SVN give me a google email, so I can add you as contributer to the project.

    I don't think I know how to code and link an external DLL, are there any examples included in SVN that you suggest I can use? I could code it up in 5 minutes in PHP, but what would the fun be in that ;)
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #57
    AW: Does dr.dk work?

    Just make a new c# library project, reference the OnlineVideos.dll, and add one class that inherits from SiteUtilBase. You can use any of the siteutils that are in the SVN as sample. For your new siteutil create a new site in the Onlinevideos.xml, put your project dll into the folder where the other siteutil dlls are (you should name yours similar). That would already be it.
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Re: AW: Does dr.dk work?

    Just make a new c# library project, reference the OnlineVideos.dll, and add one class that inherits from SiteUtilBase. You can use any of the siteutils that are in the SVN as sample. For your new siteutil create a new site in the Onlinevideos.xml, put your project dll into the folder where the other siteutil dlls are (you should name yours similar). That would already be it.

    I think I might be getting somewhere, but did you mean OnlineVideoSites.xml and not Onlinevideos.xml ?
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #59
    AW: Does dr.dk work?

    Yes :) was in a hurry typing.
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Re: AW: Does dr.dk work?

    Yes :) was in a hurry typing.

    OK, made progress :) Now for adding actual video!

    EDIT: What is the difference between getvideos() and getVideoList() ?

    :D
     

    Attachments

    • itworks.jpg
      itworks.jpg
      83.6 KB

    Users who are viewing this thread

    Top Bottom