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

Site Support Request: LEGO.com #10369

Closed
DoomTay opened this issue Aug 17, 2016 · 0 comments
Closed

Site Support Request: LEGO.com #10369

DoomTay opened this issue Aug 17, 2016 · 0 comments

Comments

@DoomTay
Copy link

@DoomTay DoomTay commented Aug 17, 2016

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.08.17. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2016.08.17

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

C:\Users\Taylor>youtube-dl "http://www.lego.com/en-us/chima/videos/a-legend-to-remember-94cc5d89657e43aa8aa1c2a2d9169193" -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.lego.com/en-us/chima/videos/a-legend-to-remember-94cc5d89657e43aa8aa1c2a2d9169193', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2016.08.17
[debug] Python version 3.5.2 - Windows-10-10.0.14393-SP0
[debug] exe versions: none
[debug] Proxy map: {}
[generic] a-legend-to-remember-94cc5d89657e43aa8aa1c2a2d9169193: Requesting header
WARNING: Falling back on generic information extractor.
[generic] a-legend-to-remember-94cc5d89657e43aa8aa1c2a2d9169193: Downloading webpage
[generic] a-legend-to-remember-94cc5d89657e43aa8aa1c2a2d9169193: Extracting information
ERROR: Unsupported URL: http://www.lego.com/en-us/chima/videos/a-legend-to-remember-94cc5d89657e43aa8aa1c2a2d9169193
Traceback (most recent call last):
    File "c:\users\taylor\appdata\local\programs\python\python35-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 691, in extract_info
        ie_result = ie.extract(url)
    File "c:\users\taylor\appdata\local\programs\python\python35-32\lib\site-packages\youtube_dl\extractor\common.py", line 347, in extract
        return self._real_extract(url)
    File "c:\users\taylor\appdata\local\programs\python\python35-32\lib\site-packages\youtube_dl\extractor\generic.py", line 2362, in _real_extract
        raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: http://www.lego.com/en-us/chima/videos/a-legend-to-remember-94cc5d89657e43aa8aa1c2a2d9169193

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):


Description of your issue, suggested solution and other information

The situation seems to be different from the last time a support request for LEGO.com was made. Here, videos are contained in an iframe and housed in an AngularJS-powered player. This player supports both HTML5 and Flash, but will use Flash mode if the Flash plugin is detected.

Interestingly, the URL leading to the video is given in the iframe presented in the page, specifically assembled from the domain given in the "data-video-progressive-url" of the html tag of the iframe and various properties of the JSON given in the "video" attribute of the div with the class name "video-player".

So if the domain in "data-video-progressive-url" is https://lc-mediaplayerns-live-s.legocdn.com/ and the JSON is stored in a variable called "data", then the full "base" URL for the smallest possible resolution could be calculated from "https://lc-mediaplayerns-live-s.legocdn.com/" + "public/" + data.NetStoragePath + "/" + data.ItemId + "_" + data.VideoId + "_" + data.Locale + "_" + data.VideoVersion + "_256.mp4" or "_256.webm".

If data.NetStoragePath is blank, then it would be replaced with "ab/cd", where a,b,c, and d are the first four characters of data.ItemId

The last number in the filename ("_256") represents the video size, in this case, 180p. The other possible sizes are as follows.

_512 = 270p
_1080 = 360p
_1536 = 540p
_2560 = 1080p or 720p

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
2 participants
You can’t perform that action at this time.