-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[InvestigationDiscovery] "This video is only available for registered users. You may want to use --cookies." #10421
Comments
This fixes it: diff --git a/yt_dlp/extractor/dplay.py b/yt_dlp/extractor/dplay.py
index 48eae1088..3110583b2 100644
--- a/yt_dlp/extractor/dplay.py
+++ b/yt_dlp/extractor/dplay.py
@@ -553,6 +553,13 @@ class InvestigationDiscoveryIE(DiscoveryPlusBaseIE):
'country': 'us',
}
+ def _update_disco_api_headers(self, headers, disco_base, display_id, realm):
+ headers.update({
+ 'x-disco-params': f'realm={realm},siteLookupKey={self._PRODUCT}',
+ 'x-disco-client': f'WEB:UNKNOWN:{self._PRODUCT}:27.43.0',
+ 'Authorization': self._get_auth(disco_base, display_id, realm),
+ })
+
class AmHistoryChannelIE(DiscoveryPlusBaseIE):
_VALID_URL = r'https?://(?:www\.)?ahctv\.com/video' + DPlayBaseIE._PATH_REGEX |
The fix worked! Thank you! Though I'm not sure how to add this to the official repo. |
This comment was marked as duplicate.
This comment was marked as duplicate.
1 similar comment
Darn it. Didn't mean to close this since it's still an active issue in the official repo. |
Hi, having a similar issue here in GB. Videos work fine in my browser, but regardless of asking YT-DLP to request cookies from the browser or fetching the cookies myself I still get the "This video is only available for registered users. You may want to use --cookies." error. I have a paid account with Discovery+ and I'm trying to download non-free videos. |
@cobhc2019 can you share complete verbose output, please? Add |
@bashonly Please see below.
|
@cobhc2019 was it working for you in the past? It looks like GB and DE DiscoveryPlus links have been plagued by #2361 for a while. Though now the error is different (HTTP Error 400 caught and raised as "login required" instead of HTTP Error 404), possibly because of the lack of a |
I've only just found out about yt_dlp, so no. Thanks, I'll monitor things and see what happens. |
@cobhc2019 I'm geo-blocked from DiscoveryPlus GB (and don't have a subscription), so I won't be able to work on that without assistance. If you're comfortable with sending me a HAR file of your browser's network requests while loading a video on the site, then I would have something to work from. I could walk you through how to do it. If you're up for it, contact me on discord (same username) or via email, |
Anything happen behind the scenes here? I think I'm experiencing the same issue but with DiscoveryPlus CA. I tried using the patch but it didn't seem to work, though that could be user error. I added the patch @ line 556 of dplay.py, then compiled using the PyInstaller instructions.
I'm up for sending a HAR file, or helping however I can. Just thought I'd check in here first rather than just sending an unexpected DM, especially if it might not be needed. |
sure, go ahead and shoot me a DM |
@cobhc2019 could you give this PR a try? I've created pre-release builds for testing purposes:
|
Yep, that works now. Thanks! |
@cobhc2019 sorry to ask again, but I had to rewrite the PR somewhat due to a logic flaw. When you get a chance, could run |
Yep, updated and still working fine! |
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Region
United States of America
Provide a description that is worded well enough to be understood
Hello! I'm trying to download a video from the Investigation Discovery website, but I get an error that the video is only available to registered users. This is confusing because the same video plays perfectly fine in my browser without requiring an account. I've tried multiple things, including using --cookies, --source-address, and setting the User-Agent header, but nothing works.
Here's the URL of the video I'm trying to download: https://www.investigationdiscovery.com/video/deadly-influence-the-social-media-murders-investigation-discovery-atve-us/rip-bianca
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: