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

hidive error 403 #28575

Closed
storm134 opened this issue Mar 28, 2021 · 13 comments
Closed

hidive error 403 #28575

storm134 opened this issue Mar 28, 2021 · 13 comments

Comments

@storm134
Copy link

Checklist

  • [x ] I'm reporting a broken site support
  • [x ] I've verified that I'm running youtube-dl version 2021.03.25
  • [x ] I've checked that all provided URLs are alive and playable in a browser
  • [x ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • [x ] I've searched the bugtracker for similar issues including closed ones

Verbose log

PASTE VERBOSE LOG HERE
`
D:\Drivers\youtube-dl>Updated youtube-dl to version 2021.03.25.

D:\Drivers\youtube-dl>youtube-dl.exe -u [username] -p [password] -v -F https://www.hidive.com/stream/motto-to-love-ru/s02e007
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-u', 'PRIVATE', '-p', 'PRIVATE', '-v', '-F', 'https://www.hidive.com/stream/motto-to-love-ru/s02e007']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2021.03.25
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg N-83195-ge371f03, ffprobe N-83195-ge371f03
[debug] Proxy map: {}
[HiDive] None: Downloading webpage
[HiDive] Logging in
[HiDive] motto-to-love-ru/s02e007: Downloading JSON metadata
[HiDive] motto-to-love-ru/s02e007: Downloading m3u8 information
[HiDive] motto-to-love-ru/s02e007: Downloading m3u8 information
[info] Available formats for motto-to-love-ru/s02e007:
format code        extension  resolution note
en_hv_or-hls-1612  mp4        640x360    1612k , avc1.4d001e, mp4a.40.2
ja_hv_or-hls-1636  mp4        640x360    1636k , avc1.4d001e, mp4a.40.2
en_hv_or-hls-2259  mp4        854x480    2259k , avc1.4d001f, mp4a.40.2
ja_hv_or-hls-2297  mp4        854x480    2297k , avc1.4d001f, mp4a.40.2
en_hv_or-hls-3589  mp4        1280x720   3589k , avc1.640029, mp4a.40.2
ja_hv_or-hls-3702  mp4        1280x720   3702k , avc1.640029, mp4a.40.2
en_hv_or-hls-6343  mp4        1920x1080  6343k , avc1.640029, mp4a.40.2
ja_hv_or-hls-6697  mp4        1920x1080  6697k , avc1.640029, mp4a.40.2 (best)

D:\Drivers\youtube-dl>youtube-dl.exe -u [username] -p [password] -v -f en_hv_or-hls-3589 https://www.hidive.com/stream/motto-to-love-ru/s02e007
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-u', 'PRIVATE', '-p', 'PRIVATE', '-v', '-f', 'en_hv_or-hls-3589', 'https://www.hidive.com/stream/motto-to-love-ru/s02e007']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2021.03.25
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg N-83195-ge371f03, ffprobe N-83195-ge371f03
[debug] Proxy map: {}
[HiDive] None: Downloading webpage
[HiDive] Logging in
[HiDive] motto-to-love-ru/s02e007: Downloading JSON metadata
[HiDive] motto-to-love-ru/s02e007: Downloading m3u8 information
[HiDive] motto-to-love-ru/s02e007: Downloading m3u8 information
[debug] Invoking downloader on 'https://www.hidive.com/manifest/child/22d2c02b729a17be5b2fea0dad7c4aa1ec381c59/MLR_s02e007_tv_hv_or_en_xx_HLS720p_16x9_00_v.m3u8?#='
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 154
[download] Destination: motto-to-love-ru_s02e007-motto-to-love-ru_s02e007.mp4
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 2 (attempt 1 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 2 (attempt 2 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 2 (attempt 3 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 2 (attempt 4 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 2 (attempt 5 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 2 (attempt 6 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 2 (attempt 7 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 2 (attempt 8 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 2 (attempt 9 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 2 (attempt 10 of 10)...
[download] Skipping fragment 2...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 3 (attempt 1 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 3 (attempt 2 of 10)...
``


## Description

<!--
Provide an explanation of your issue in an arbitrary form. Provide any additional information, suggested solution and as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE

unable to download any hidive video's have try 2 different pc. I am able to get the encode list but when i try to download get error 403. was working on the 16 which is the last time i used it
@dnbknlol
Copy link

dnbknlol commented Apr 2, 2021

Something has change in HIDIVE lately. I got the same problem but I got a workaround to make this works.
The solution is to use the --referer option along with --cookies.

E.g.:
youtube-dl.exe --referer "$URL" --cookies "$path" $URL

I don't really know what is the real problem. Hope someone with more knowledge than mine can hotfix this issue.

@LunaGNUisance
Copy link

I've also experienced this issue. I was able to download a few shows from HiDive with no issues last month, but I've not been able to recently.

I've tried passing cookies via Lennon Hill's cookies.txt extension on Firefox, and even on Chromium, but I get this error every time:

ERROR: Unable to extract login form; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Some examples of commands I've tried:

youtube-dl -u USERNAME -p PASSWORD --cookies cookies.txt https://www.hidive.com/stream/amagami-ss/s01e001

youtube-dl -u USERNAME -p PASSWORD --cookies cookies.txt --referer "https://www.hidive.com/stream/amagami-ss/s01e001" https://www.hidive.com/stream/amagami-ss/s01e001

youtube-dl -u USERNAME -p PASSWORD --cookies "cookies.txt" --referer "https://www.hidive.com/stream/amagami-ss/s01e001" https://www.hidive.com/stream/amagami-ss/s01e001

Nothing works.

If I try this:

youtube-dl -u USERNAME -p PASSWORD https://www.hidive.com/stream/amagami-ss/s01e001

I will be able to get past the extract login form error, and it will download the first 3 seconds of the video (i.e. the HiDive Logo animation), but every other subsequent attempt will fail. The resulting video is 3 seconds long. I was also able to get the subtitles.

This is the error log:

[hls @ 0x564e63cce0c0] Opening 'https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i.key?...' for reading
[https @ 0x564e64298540] HTTP error 403 Forbidden
[hls @ 0x564e63cce0c0] Unable to open key file https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i.key?...                                                                                          
[https @ 0x564e6428b2c0] Cannot reuse HTTP connection for different host: static.hidive.com:-1 != video.hidive.com:-1     
[hls @ 0x564e63cce0c0] keepalive request failed for 'crypto+https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00000.ts?...' with error: 'Invalid argument' when opening url, retrying with new connection 
[hls @ 0x564e63cce0c0] Opening 'crypto+https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00000.ts?...' for reading
[https @ 0x564e64298540] HTTP error 403 Forbidden
[crypto @ 0x564e642fe340] Unable to open resource: https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00000.ts?...                                                                                       
[hls @ 0x564e63cce0c0] Failed to open segment 1 of playlist 0
[hls @ 0x564e63cce0c0] Opening 'crypto+https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00001.ts?...' for reading
^C[https @ 0x564e63cd6bc0] HTTP error 403 Forbidden
[crypto @ 0x564e64298540] Unable to open resource: https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00001.ts?...                                                                                         
[hls @ 0x564e63cce0c0] Failed to open segment 2 of playlist 0

And so on, for every segment.

Of note is that HiDive has added a Google Captcha to the login page that I don't believe was there previously. It seems to be the kind that users don't see, but is watching them for bot-like behaviour (i.e. ReCAPTCHA V3). I had to enable scripts from google.com on uBlock Origin before I could login on Firefox.

I've also not been able to find a way to download episodes from Crunchyroll with a login + cookies.txt, as I get slapped with the unable to extract login form error. This seems to be caused by Crunchyroll updating the way their service works recently.

@dnbknlol
Copy link

dnbknlol commented Apr 5, 2021

I've also experienced this issue. I was able to download a few shows from HiDive with no issues last month, but I've not been able to recently.

I've tried passing cookies via Lennon Hill's cookies.txt extension on Firefox, and even on Chromium, but I get this error every time:

ERROR: Unable to extract login form; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Some examples of commands I've tried:

youtube-dl -u USERNAME -p PASSWORD --cookies cookies.txt https://www.hidive.com/stream/amagami-ss/s01e001

youtube-dl -u USERNAME -p PASSWORD --cookies cookies.txt --referer "https://www.hidive.com/stream/amagami-ss/s01e001" https://www.hidive.com/stream/amagami-ss/s01e001

youtube-dl -u USERNAME -p PASSWORD --cookies "cookies.txt" --referer "https://www.hidive.com/stream/amagami-ss/s01e001" https://www.hidive.com/stream/amagami-ss/s01e001

Nothing works.

If I try this:

youtube-dl -u USERNAME -p PASSWORD https://www.hidive.com/stream/amagami-ss/s01e001

I will be able to get past the extract login form error, and it will download the first 3 seconds of the video (i.e. the HiDive Logo animation), but every other subsequent attempt will fail. The resulting video is 3 seconds long. I was also able to get the subtitles.

This is the error log:

[hls @ 0x564e63cce0c0] Opening 'https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i.key?...' for reading
[https @ 0x564e64298540] HTTP error 403 Forbidden
[hls @ 0x564e63cce0c0] Unable to open key file https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i.key?...                                                                                          
[https @ 0x564e6428b2c0] Cannot reuse HTTP connection for different host: static.hidive.com:-1 != video.hidive.com:-1     
[hls @ 0x564e63cce0c0] keepalive request failed for 'crypto+https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00000.ts?...' with error: 'Invalid argument' when opening url, retrying with new connection 
[hls @ 0x564e63cce0c0] Opening 'crypto+https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00000.ts?...' for reading
[https @ 0x564e64298540] HTTP error 403 Forbidden
[crypto @ 0x564e642fe340] Unable to open resource: https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00000.ts?...                                                                                       
[hls @ 0x564e63cce0c0] Failed to open segment 1 of playlist 0
[hls @ 0x564e63cce0c0] Opening 'crypto+https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00001.ts?...' for reading
^C[https @ 0x564e63cd6bc0] HTTP error 403 Forbidden
[crypto @ 0x564e64298540] Unable to open resource: https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00001.ts?...                                                                                         
[hls @ 0x564e63cce0c0] Failed to open segment 2 of playlist 0

And so on, for every segment.

Of note is that HiDive has added a Google Captcha to the login page that I don't believe was there previously. It seems to be the kind that users don't see, but is watching them for bot-like behaviour (i.e. ReCAPTCHA V3). I had to enable scripts from google.com on uBlock Origin before I could login on Firefox.

I've also not been able to find a way to download episodes from Crunchyroll with a login + cookies.txt, as I get slapped with the unable to extract login form error. This seems to be caused by Crunchyroll updating the way their service works recently.

Use the last one of your examples but without username or password. Just the cookies (cookies with a logged in session). That worked for me.

@LunaGNUisance
Copy link

LunaGNUisance commented Apr 6, 2021

I've also experienced this issue. I was able to download a few shows from HiDive with no issues last month, but I've not been able to recently.
I've tried passing cookies via Lennon Hill's cookies.txt extension on Firefox, and even on Chromium, but I get this error every time:
ERROR: Unable to extract login form; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Some examples of commands I've tried:
youtube-dl -u USERNAME -p PASSWORD --cookies cookies.txt https://www.hidive.com/stream/amagami-ss/s01e001
youtube-dl -u USERNAME -p PASSWORD --cookies cookies.txt --referer "https://www.hidive.com/stream/amagami-ss/s01e001" https://www.hidive.com/stream/amagami-ss/s01e001
youtube-dl -u USERNAME -p PASSWORD --cookies "cookies.txt" --referer "https://www.hidive.com/stream/amagami-ss/s01e001" https://www.hidive.com/stream/amagami-ss/s01e001
Nothing works.
If I try this:
youtube-dl -u USERNAME -p PASSWORD https://www.hidive.com/stream/amagami-ss/s01e001
I will be able to get past the extract login form error, and it will download the first 3 seconds of the video (i.e. the HiDive Logo animation), but every other subsequent attempt will fail. The resulting video is 3 seconds long. I was also able to get the subtitles.
This is the error log:

[hls @ 0x564e63cce0c0] Opening 'https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i.key?...' for reading
[https @ 0x564e64298540] HTTP error 403 Forbidden
[hls @ 0x564e63cce0c0] Unable to open key file https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i.key?...                                                                                          
[https @ 0x564e6428b2c0] Cannot reuse HTTP connection for different host: static.hidive.com:-1 != video.hidive.com:-1     
[hls @ 0x564e63cce0c0] keepalive request failed for 'crypto+https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00000.ts?...' with error: 'Invalid argument' when opening url, retrying with new connection 
[hls @ 0x564e63cce0c0] Opening 'crypto+https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00000.ts?...' for reading
[https @ 0x564e64298540] HTTP error 403 Forbidden
[crypto @ 0x564e642fe340] Unable to open resource: https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00000.ts?...                                                                                       
[hls @ 0x564e63cce0c0] Failed to open segment 1 of playlist 0
[hls @ 0x564e63cce0c0] Opening 'crypto+https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00001.ts?...' for reading
^C[https @ 0x564e63cd6bc0] HTTP error 403 Forbidden
[crypto @ 0x564e64298540] Unable to open resource: https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00001.ts?...                                                                                         
[hls @ 0x564e63cce0c0] Failed to open segment 2 of playlist 0

And so on, for every segment.
Of note is that HiDive has added a Google Captcha to the login page that I don't believe was there previously. It seems to be the kind that users don't see, but is watching them for bot-like behaviour (i.e. ReCAPTCHA V3). I had to enable scripts from google.com on uBlock Origin before I could login on Firefox.
I've also not been able to find a way to download episodes from Crunchyroll with a login + cookies.txt, as I get slapped with the unable to extract login form error. This seems to be caused by Crunchyroll updating the way their service works recently.

Use the last one of your examples but without username or password. Just the cookies (cookies with a logged in session). That worked for me.

Thank you; this worked for me on HiDive. I tried it on Crunchyroll too, but no dice.

For the record, this is the command I used:
youtube-dl --cookies cookies.txt --referer "https://www.hidive.com/stream/amagami-ss/s01e016" https://www.hidive.com/stream/amagami-ss/s01e016

This doesn't work without the --referer "$URL" option.

Also, I was not able to download the entire video, as some fragments were unavailable.

I get some of the same "failed to open segment" and "HTTP error 403 Forbidden" errors, along with:

[mpegts @ 0x557a75345cc0] Packet corrupt (stream = 1, dts = 64987047).

@LunaGNUisance
Copy link

An addendum:

Only https://www.hidive.com/stream/amagami-ss/s01e016 did not fully download (missing 5 or so minutes from the 24-minute episode), but episodes 17-25 downloaded fully without issue. I did get these errors at the start of each, however:

[https @ 0x559184b50c00] Cannot reuse HTTP connection for different host: static.hidive.com:-1 != video.hidive.com:-1
[hls @ 0x559184ad99c0] keepalive request failed for 'crypto+https://video.hidive.com/content/ASS/HLS/HLS1080p/ASS_s02e007_hv_or_na_ja_xx_HLS1080p_16x9_00_i00000.ts?...' with error: 'Invalid argument' when opening url, retrying with new connection 
[hls @ 0x559184ad99c0] Opening 'crypto+https://video.hidive.com/content/ASS/HLS/HLS1080p/ASS_s02e007_hv_or_na_ja_xx_HLS1080p_16x9_00_i00000.ts?...' for reading
[mpegts @ 0x5591850587c0] Packet corrupt (stream = 1, dts = 572697).
[mp4 @ 0x559184ad8e00] Non-monotonous DTS in output stream 0:1; previous: 243712, current: 240240; changing to 243713. This may result in incorrect timestamps in the output file.                                                                        
[mp4 @ 0x559184ad8e00] Non-monotonous DTS in output stream 0:1; previous: 243713, current: 241264; changing to 243714. This may result in incorrect timestamps in the output file.                                                                        
[mp4 @ 0x559184ad8e00] Non-monotonous DTS in output stream 0:1; previous: 243714, current: 242288; changing to 243715. This may result in incorrect timestamps in the output file.                                                                        
[mp4 @ 0x559184ad8e00] Non-monotonous DTS in output stream 0:1; previous: 243715, current: 243312; changing to 243716. This may result in incorrect timestamps in the output file.      

Thanks for the workaround, @dnr18lol

@dnbknlol
Copy link

dnbknlol commented Apr 6, 2021

I've tried to download the s01e016 and it worked for me with no problems. Maybe it was just a casual error? Try to use cookies that are updated. To download from Crunchyroll, just use cookies. I think referrer is not needed is CR.

PS: Look up if you have the newest YT-DL and FFMPEG version. If not, update.

@storm134
Copy link
Author

storm134 commented Apr 9, 2021 via email

@storm134
Copy link
Author

storm134 commented Apr 9, 2021 via email

@LunaGNUisance
Copy link

I've tried to download the s01e016 and it worked for me with no problems. Maybe it was just a casual error? Try to use cookies that are updated. To download from Crunchyroll, just use cookies. I think referrer is not needed is CR.

PS: Look up if you have the newest YT-DL and FFMPEG version. If not, update.

I tried again with newly-extracted cookies, and I am indeed running the latest version of youtube-dl, 2021-04-07 on Arch Linux. However, I was still not able to fully download the video.

A number of fragments weren't able to be downloaded, returning this error:

[https @ 0x564decb47b40] HTTP error 403 Forbidden
[crypto @ 0x564deca78e00] Unable to open resource: https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00143.ts?Policy                                                                                                           
[hls @ 0x564dec4ac300] Failed to open segment 144 of playlist 0
[hls @ 0x564dec4ac300] Opening 'crypto+https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00144.ts?Policy' for reading
[mpegts @ 0x564dec533ac0] Packet corrupt (stream = 1, dts = 128838334).
[hls @ 0x564dec4ac300] Opening 'crypto+https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00145.ts?Policy' for reading

For the record, I'm trying this with Firefox. I'm not sure whether you used a Chromium/Webkit browser, though it shouldn't make much difference. The issue is localized to only this episode of the series.

However, I've faced the same issue with https://www.hidive.com/stream/yumeiro-patissiere/s01e003

I have no idea what causes it. I'm using a blank firefox profile with only the cookies.txt extension installed; no settings changed beyond search engines and enabling https only.

@LunaGNUisance
Copy link

never mind brain dies for a sec. the cookie fix worked. thanks still getting same error using youtube-dl -u USERNAME -p PASSWORD ---f en_hv_or-hls-689 https://www.hidive.com/stream/amagami-ss/s01e001 [http://static.hidive.com/titles/AMG/AMG_KEY_1200x450.jpg]<https://www.hidive.com/stream/amagami-ss/s01e001> Stream Episode 1 of Amagami SS on HIDIVEhttps://www.hidive.com/stream/amagami-ss/s01e001 Watch Episode 1 of Amagami SS on HIDIVE. Start your 30 Day FREE Trial now! www.hidive.com

It works for me, but it doesn't fully download every episode.

Can you clarify that you're using:
youtube-dl --cookies cookies.txt --referer " https://www.hidive.com/stream/amagami-ss/s01e001" https://www.hidive.com/stream/amagami-ss/s01e001

Don't pass the username or password parameters; that doesn't work.

Additionally, it's possible to download multiple episodes like this:
youtube-dl --cookies cookies.txt --referer " https://www.hidive.com/stream/amagami-ss/s01e001" https://www.hidive.com/stream/amagami-ss/s01e001 https://www.hidive.com/stream/amagami-ss/s01e002 https://www.hidive.com/stream/amagami-ss/s01e003 https://www.hidive.com/stream/amagami-ss/s01e004

Unless you mean that the -u and -p options don't work after the update yesterday, in which case, that makes sense; they haven't pushed an update regarding this issue.

@dnbknlol
Copy link

dnbknlol commented Apr 9, 2021

never mind brain dies for a sec. the cookie fix worked. thanks still getting same error using youtube-dl -u USERNAME -p PASSWORD ---f en_hv_or-hls-689 https://www.hidive.com/stream/amagami-ss/s01e001 [http://static.hidive.com/titles/AMG/AMG_KEY_1200x450.jpg]<https://www.hidive.com/stream/amagami-ss/s01e001> Stream Episode 1 of Amagami SS on HIDIVEhttps://www.hidive.com/stream/amagami-ss/s01e001 Watch Episode 1 of Amagami SS on HIDIVE. Start your 30 Day FREE Trial now! www.hidive.com

________________________________ From: DnR18LoL @.> Sent: April 5, 2021 12:02 PM To: ytdl-org/youtube-dl @.> Cc: yuusha @.>; Author @.> Subject: Re: [ytdl-org/youtube-dl] hidive error 403 (#28575) I've also experienced this issue. I was able to download a few shows from HiDive with no issues last month, but I've not been able to recently. I've tried passing cookies via Lennon Hill's cookies.txt extension on Firefox, and even on Chromium, but I get this error every time: ERROR: Unable to extract login form; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. Some examples of commands I've tried: youtube-dl -u USERNAME -p PASSWORD --cookies cookies.txt https://www.hidive.com/stream/amagami-ss/s01e001 youtube-dl -u USERNAME -p PASSWORD --cookies cookies.txt --referer "https://www.hidive.com/stream/amagami-ss/s01e001" https://www.hidive.com/stream/amagami-ss/s01e001 youtube-dl -u USERNAME -p PASSWORD --cookies "cookies.txt" --referer "https://www.hidive.com/stream/amagami-ss/s01e001" https://www.hidive.com/stream/amagami-ss/s01e001 Nothing works. If I try this: youtube-dl -u USERNAME -p PASSWORD https://www.hidive.com/stream/amagami-ss/s01e001 I will be able to get past the extract login form error, and it will download the first 3 seconds of the video (i.e. the HiDive Logo animation), but every other subsequent attempt will fail. The resulting video is 3 seconds long. I was also able to get the subtitles. This is the error log: [hls @ 0x564e63cce0c0] Opening 'https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i.key?...' for reading [https @ 0x564e64298540] HTTP error 403 Forbidden [hls @ 0x564e63cce0c0] Unable to open key file https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i.key?... [https @ 0x564e6428b2c0] Cannot reuse HTTP connection for different host: static.hidive.com:-1 != video.hidive.com:-1 [hls @ 0x564e63cce0c0] keepalive request failed for 'crypto+https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00000.ts?...' with error: 'Invalid argument' when opening url, retrying with new connection [hls @ 0x564e63cce0c0] Opening 'crypto+https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00000.ts?...' for reading [https @ 0x564e64298540] HTTP error 403 Forbidden [crypto @ 0x564e642fe340] Unable to open resource: https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00000.ts?... [hls @ 0x564e63cce0c0] Failed to open segment 1 of playlist 0 [hls @ 0x564e63cce0c0] Opening 'crypto+https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00001.ts?...' for reading ^C[https @ 0x564e63cd6bc0] HTTP error 403 Forbidden [crypto @ 0x564e64298540] Unable to open resource: https://video.hidive.com/content/AMG/HLS/HLS1080p/AMG_s01e016_hv_or_na_ja_xx_HLS1080p_16x9_00_i00001.ts?... [hls @ 0x564e63cce0c0] Failed to open segment 2 of playlist 0 And so on, for every segment. Of note is that HiDive has added a Google Captcha to the login page that I don't believe was there previously. It seems to be the kind that users don't see, but is watching them for bot-like behaviour (i.e. ReCAPTCHA V3). I had to enable scripts from google.com on uBlock Origin before I could login on Firefox. I've also not been able to find a way to download episodes from Crunchyroll with a login + cookies.txt, as I get slapped with the unable to extract login form error. This seems to be caused by Crunchyroll updating the way their service works recently. Use the last one of your examples but without username or password. Just the cookies (cookies with a logged in session). That worked for me. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub<#28575 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHZQL73HTQ33EO6BEB5DLADTHHNKJANCNFSM4Z6KECCQ.

For extracting cookies, I use this addon: https://tinyurl.com/wncsre34

For cookies, use the sample @LunaGNUisance posted:

youtube-dl.exe --cookies cookies.txt --referer " https://www.hidive.com/stream/amagami-ss/s01e001" https://www.hidive.com/stream/amagami-ss/s01e001

Please consider that your cookies must be exported from a session with a logged in session. Also consider that some contents are only available in the USA, so you should use a VPN if you aren't from the US.

@YewTreeWeb
Copy link

I'm also getting this issue with 403 unless I use --referer. I'm in the UK and can watch the show I want to download without a VPN but still get 403.

@dirkf
Copy link
Contributor

dirkf commented Jul 17, 2023

Continued in #32441.

@dirkf dirkf closed this as not planned Won't fix, can't repro, duplicate, stale Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants
@dirkf @remitamine @YewTreeWeb @storm134 @dnbknlol @LunaGNUisance and others