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
132.27k stars 10.03k forks source link

HBO video #32470

Open hanihao opened 1 year ago

hanihao commented 1 year ago

Checklist

Question

HBO How to solve this problem? youtube_dl.utils.UnsupportedError: Unsupported URL

WRITE QUESTION HERE

[debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['--verbose', 'https://www.max.com/a/video/the-white-lotus-s1-e1'] [debug] Encodings: locale cp936, fs utf-8, out utf-8, pref cp936 [debug] youtube-dl version 2021.12.17 [debug] Python 3.9.5 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 - OpenSSL 1.1.1k 25 Mar 2021 [debug] exe versions: ffmpeg git-2020-08-02-b48397e, ffprobe git-2020-08-02-b48397e, phantomjs 2.1.1 [debug] Proxy map: {'http': 'http://127.0.0.1:3213', 'https': 'https://127.0.0.1:3213'} [generic] the-white-lotus-s1-e1: Requesting header WARNING: Falling back on generic information extractor. [generic] the-white-lotus-s1-e1: Downloading webpage [generic] the-white-lotus-s1-e1: Extracting information ERROR: Unsupported URL: https://www.max.com/a/video/the-white-lotus-s1-e1 Traceback (most recent call last): File "e:\youtube-dl-master\venv\lib\site-packages\youtube_dl\YoutubeDL.py", line 862, in wrapper return func(self, *args, **kwargs) File "e:\youtube-dl-master\venv\lib\site-packages\youtube_dl\YoutubeDL.py", line 958, in __extract_info ie_result = ie.extract(url) File "e:\youtube-dl-master\venv\lib\site-packages\youtube_dl\extractor\common.py", line 535, in extract ie_result = self._real_extract(url) File "e:\youtube-dl-master\venv\lib\site-packages\youtube_dl\extractor\generic.py", line 3704, in _real_extract raise UnsupportedError(url) youtube_dl.utils.UnsupportedError: Unsupported URL: https://www.max.com/a/video/the-white-lotus-s1-e1

dirkf commented 1 year ago

There is an HBO extractor that used to work for trailers at hbo.com. URLs at max.com are not supported. From https://github.com/yt-dlp/yt-dlp/issues/3145, it seems that there may be some non-DRM material that could be accessed but no-one has worked on an extractor. The Max site may also be geo-restricted to the USA.

If you would like to progress this, open a site support request, or post the completed template in this issue. Be sure to provide test programme URLs that can be played in your browser with DRM disabled, as well as completing the checklist in the template (unlike the one in this issue). Also, please consider that WBD has re-branded its services (https://help.hbomax.com/us/Answer/Detail/000001289): make it clear whether support should cover Max, HBOMax, etc.

ghost commented 1 year ago

Be sure to provide test programme URLs that can be played in your browser with DRM disabled

is this a canned response? I understand you get a lot of requests, but as someone who writes extractors, this issue as posted has more than enough to be actionable. its a valid URL, and it plays without DRM, and its for a well known site.

that puts this issue head and shoulders above many others Ive seen on this tracker. lets not stand on ceremony just because a user forgot to dot one i or cross one t.

dirkf commented 1 year ago

Are you sure that the problem URL (tWL s1e1) plays w/o DRM? The advice was not at all canned but based on the experience that WBD streams are typically broken by DRM.

The bureaucracy is necessary so that all site support requests are on an even footing and potential implementers can balance the demand for an extractor against its feasibility or level of difficulty.

Also, do read the post fully: probably no-one will spend time creating an extractor for a service that's about to be canned.

ghost commented 1 year ago

OK if it helps I now I have a proof of concept here for the web client:

https://github.com/1268/media/tree/main/max

returns HLS, not even HLSe. note this is typical for HBO, usually they give one episode clear, then the rest DRM:

https://max.com/collections/watch-free

ghost commented 1 year ago

update, looks like the Android app is gated behind a login, even for free content. using the Android browser reveals the same process as the desktop browser, more or less. if someone wants to share or donate an account I can do more research, otherwise I think we are about done here until someone decides to write Python code for this