Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NRK P3 Urørt #2634

Closed
appastair opened this issue Mar 26, 2014 · 2 comments
Closed

NRK P3 Urørt #2634

appastair opened this issue Mar 26, 2014 · 2 comments

Comments

@appastair
Copy link

@appastair appastair commented Mar 26, 2014

Urørt is a popular norwegian radio competition for upcoming artists. The tracks are made available to stream and/or download on the website and although I'm not yet familiar with adding site-support for youtube-dl, it appears simple enough to scrape at a glance.

Example:

After extracting the query parameter (Gerilja) and parsing the JSON response, we're left with the tracklist:

[
    {
        "$id": "2",
        "$type": "Urort.DAL.Web.Models.TrackDto, Urort.DAL.Web",
        "Id": 1354,
        "Title": "lightning death",
        "BandId": 33124,
        "BandName": "Gerilja",
        "PlayedOnRadio": true,
        "Recommended": true,
        "WeeklyUrort": false,
        "PlayCount": 970,
        "LikeCount": 11,
        "Score": 0,
        "Tags": "metal,rock,hip hop/rap,pop",
        "GenreName": "rock,pop",
        "TrackUrl": "http://p3urort.blob.core.windows.net/tracks/f0694f41-ea2f-4450-aa8a-53260bfb53a4",
        "Image": "ca3a200e-0f10-48c6-8afa-04b1300fda82.jpg",
        "Date": "2014-03-26T00:00:00.000",
        "GenreIds": ",38489,38495,",
        "Composer": "Gerilja",
        "Songwriter": "Gerilja",
        "Released": "2012-02-13T00:00:00.000",
        "TrackState": 3,
        "InternalBandUrl": "Gerilja",
        "WeekNumber": null,
        "Year": null,
        "Track": null
    },
    ...
]

TrackUrl being the direct URL to the file with Content-Type: audio/mpeg. There doesn't appear to be any sessions or security restricting access.

@phihag
Copy link
Contributor

@phihag phihag commented Mar 27, 2014

Thank you for the report. Support for Urørt has been added in youtube-dl 2014.03.27. Type youtube-dl -U to update.

@appastair
Copy link
Author

@appastair appastair commented Mar 27, 2014

Wow that was quick! 😮 It works perfectly!

I hope to use this commit as a reference for helping add support for other sites in future. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.