ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.9k stars 10k forks source link

[nba] Add support for authentication #5579

Open philhawksworth opened 9 years ago

philhawksworth commented 9 years ago

Attempting to download video from http://watch.nba.com (eg http://watch.nba.com/nba/games/20150501/ATLBKN/41400106) resulted in an "unsupported UR" error.

The request was made with appropriate username and password credentials for the resource.

Is support for http://watch.nba.com different to http://nba.com, which is listed as a supported domain?

dstftw commented 9 years ago

http://watch.nba.com/nba/games/20150501/ATLBKN/41400106z is 404. Assuming 'z' at the end is superfluous I still can't see any video on this page.

philhawksworth commented 9 years ago

Yes that z was superfluous (apologies).

You'd need to be logged in for the page to include a video. Another example URL would be: http://watch.nba.com/nba/games/20150420/NOPGSW/41400142

The form of the URL seems to be http://watch.nba.com/nba/games/{DATE_STRING}/{VISITING_TEAM}{HOME_TEAM}/{SOME_ID_I_DONT_UNDERSTAND}

nba.com seems to do quite a bit with JavaScript to manipulate the content of the page and populate the Flash movie player with the correct content depending on suitable authentication and how the user navigates the menus.

Frustrating!