Does dr.dk work? | Page 6

Discussion in 'OnlineVideos' started by offbyone, December 2, 2009.

  1. pilehave
    • Premium Supporter

    pilehave Community Skin Designer

    Joined:
    April 2, 2008
    Messages:
    2,566
    Likes Received:
    500
    Gender:
    Male
    Occupation:
    Technical consultant, marketing
    Location:
    Hornslet
    Ratings:
    +517 / 0
    Home Country:
    Denmark Denmark
    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)
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. stefanbaar

    stefanbaar Portal Pro

    Joined:
    October 31, 2007
    Messages:
    178
    Likes Received:
    3
    Location:
    Holstebro
    Ratings:
    +3 / 0
    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
     
  4. pilehave
    • Premium Supporter

    pilehave Community Skin Designer

    Joined:
    April 2, 2008
    Messages:
    2,566
    Likes Received:
    500
    Gender:
    Male
    Occupation:
    Technical consultant, marketing
    Location:
    Hornslet
    Ratings:
    +517 / 0
    Home Country:
    Denmark Denmark
  5. pilehave
    • Premium Supporter

    pilehave Community Skin Designer

    Joined:
    April 2, 2008
    Messages:
    2,566
    Likes Received:
    500
    Gender:
    Male
    Occupation:
    Technical consultant, marketing
    Location:
    Hornslet
    Ratings:
    +517 / 0
    Home Country:
    Denmark Denmark
    I'll try and add a C# Util, should it be under Sites.offbyone?
     
  6. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    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.
     
  7. pilehave
    • Premium Supporter

    pilehave Community Skin Designer

    Joined:
    April 2, 2008
    Messages:
    2,566
    Likes Received:
    500
    Gender:
    Male
    Occupation:
    Technical consultant, marketing
    Location:
    Hornslet
    Ratings:
    +517 / 0
    Home Country:
    Denmark Denmark
    Re: AW: Does dr.dk work?

    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 ;)
     
  8. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    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.
     
  9. pilehave
    • Premium Supporter

    pilehave Community Skin Designer

    Joined:
    April 2, 2008
    Messages:
    2,566
    Likes Received:
    500
    Gender:
    Male
    Occupation:
    Technical consultant, marketing
    Location:
    Hornslet
    Ratings:
    +517 / 0
    Home Country:
    Denmark Denmark
    Re: AW: Does dr.dk work?

    I think I might be getting somewhere, but did you mean OnlineVideoSites.xml and not Onlinevideos.xml ?
     
  10. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    AW: Does dr.dk work?

    Yes :) was in a hurry typing.
     
  11. pilehave
    • Premium Supporter

    pilehave Community Skin Designer

    Joined:
    April 2, 2008
    Messages:
    2,566
    Likes Received:
    500
    Gender:
    Male
    Occupation:
    Technical consultant, marketing
    Location:
    Hornslet
    Ratings:
    +517 / 0
    Home Country:
    Denmark Denmark
    Re: AW: Does dr.dk work?

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

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

    :D
     

    Attached Files:

    • itworks.jpg
      itworks.jpg
      File size:
      83.6 KB
      Uploaded:
      March 8, 2011
      Views:
      76

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!