yt-dlp: [Hotstar] HTTP Error 503: Service Unavailable with cookies
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
- I understand that I will be blocked if I intentionally remove or skip any mandatory* field
Checklist
- I’m asking a question and not reporting a bug or requesting a feature
- I’ve looked through the README
- I’ve verified that I have updated yt-dlp to nightly or master (update instructions)
- I’ve searched known issues and the bugtracker for similar questions including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
Please make sure the question is worded well enough to be understood
Earlier I could download videos from hotstar if I use login cookie but recently after yt-dlp update now I can’t download video even using login cookie. I was also able to download yesterday on the same system.
Provide verbose output that clearly demonstrates the problem
- Run your yt-dlp command with -vU flag added (
yt-dlp -vU <your command line>) - If using API, add
'verbose': TruetoYoutubeDLparams instead - Copy the WHOLE output (starting with
[debug] Command-line config) and insert it below
Complete Verbose Output
Command-line config: ['-c', '-o', '\\\\VBOXSVR\\v2\\Hotstar\\ishti-kutum\\video\\0142-%(title)s.%(ext)s', '-v', '--cookies', 'cookies.txt', '-N', '50', '-S', 'vcodec:h264,res:480,ext:mp4:m4a', 'https://www.hotstar.com/in/shows/ishti-kutum/1271269632/ignore_me/1000288197']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error cp1252 (No VT), screen utf-8
[debug] yt-dlp version stable@2024.10.07 from yt-dlp/yt-dlp [1a176d874] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k 25 Mar 2021)
[debug] exe versions: ffmpeg N-92795-gcdbf8847ea, ffprobe 2024-01-01-git-e1c1dc8347-essentials_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.21.0, brotli-1.1.0, certifi-2024.08.30, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.35.5, urllib3-2.2.3, websockets-13.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1838 extractors
ERROR: [hotstar] 1000288197: Unable to download JSON metadata: HTTP Error 503: Service Unavailable (caused by <HTTPError 503: Service Unavailable>)
File "yt_dlp\extractor\common.py", line 741, in extract
File "yt_dlp\extractor\hotstar.py", line 250, in _real_extract
File "yt_dlp\extractor\hotstar.py", line 65, in _call_api_v2
File "yt_dlp\extractor\hotstar.py", line 50, in _call_api_impl
File "yt_dlp\extractor\common.py", line 1151, in download_content
File "yt_dlp\extractor\common.py", line 1111, in download_handle
File "yt_dlp\extractor\common.py", line 961, in _download_webpage_handle
File "yt_dlp\extractor\common.py", line 910, in _request_webpage
File "yt_dlp\extractor\common.py", line 897, in _request_webpage
File "yt_dlp\YoutubeDL.py", line 4172, in urlopen
File "yt_dlp\networking\common.py", line 117, in send
File "yt_dlp\networking\_helper.py", line 208, in wrapper
File "yt_dlp\networking\common.py", line 340, in send
File "yt_dlp\networking\_requests.py", line 365, in _send
yt_dlp.networking.exceptions.HTTPError: HTTP Error 503: Service Unavailable
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 38 (6 by maintainers)
Commits related to this issue
- [ie/hotstar] Fix extractor (#13530) Closes #11195 Authored by: chauhantirth, bashonly Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> — committed to yt-dlp/yt-dlp by chauhantirth a year ago
IIRC Hotstar requires an Indian phone number in order to log in, which severely limits who can work on this and/or how they can work on this.
I’ve looked at HARs of what the website currently does, and it uses a completely different API than the yt-dlp extractor (and I’m not that sure using this new web API is even viable for non-DRM formats).
The yt-dlp developer who was previously maintaining this extractor is inactive.
All of this is to say that someone who is in region and/or who is very knowledgeable about the site will need to step up to work on this. It could be a while before that happens.
Microsoft Windows [Version 10.0.19045.4780] © Microsoft Corporation. All rights reserved.
C:\Users\pc 2\Desktop\video tools>yt-dlp -vU --cookies cookies.txt -N 50 -S vcodec:h264,res:480,ext:mp4:m4a https://www.hotstar.com/in/shows/ishti-kutum/1271269632/ignore_me/1000288197 [debug] Command-line config: [‘-vU’, ‘–cookies’, ‘cookies.txt’, ‘-N’, ‘50’, ‘-S’, ‘vcodec:h264,res:480,ext:mp4:m4a’, ‘https://www.hotstar.com/in/shows/ishti-kutum/1271269632/ignore_me/1000288197’] [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version stable@2024.10.07 from yt-dlp/yt-dlp [1a176d874] (win_exe) [debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k 25 Mar 2021) [debug] exe versions: ffmpeg N-92795-gcdbf8847ea, ffprobe 2024-01-01-git-e1c1dc8347-essentials_build-www.gyan.dev [debug] Optional libraries: Cryptodome-3.21.0, brotli-1.1.0, certifi-2024.08.30, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.35.5, urllib3-2.2.3, websockets-13.1 [debug] Proxy map: {} [debug] Request Handlers: urllib, requests, websockets, curl_cffi [debug] Loaded 1838 extractors [debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest Latest version: stable@2024.10.07 from yt-dlp/yt-dlp yt-dlp is up to date (stable@2024.10.07 from yt-dlp/yt-dlp) [hotstar] Extracting URL: https://www.hotstar.com/in/shows/ishti-kutum/1271269632/ignore_me/1000288197 [hotstar] 1000288197: Downloading JSON metadata [hotstar] 1000288197: Downloading webpage [hotstar] 1000288197: Downloading JSON metadata ERROR: [hotstar] 1000288197: Unable to download JSON metadata: HTTP Error 503: Service Unavailable (caused by <HTTPError 503: Service Unavailable>) File “yt_dlp\extractor\common.py”, line 741, in extract File “yt_dlp\extractor\hotstar.py”, line 250, in _real_extract File “yt_dlp\extractor\hotstar.py”, line 65, in _call_api_v2 File “yt_dlp\extractor\hotstar.py”, line 50, in _call_api_impl File “yt_dlp\extractor\common.py”, line 1151, in download_content File “yt_dlp\extractor\common.py”, line 1111, in download_handle File “yt_dlp\extractor\common.py”, line 961, in _download_webpage_handle File “yt_dlp\extractor\common.py”, line 910, in _request_webpage
File “yt_dlp\extractor\common.py”, line 897, in _request_webpage File “yt_dlp\YoutubeDL.py”, line 4172, in urlopen File “yt_dlp\networking\common.py”, line 117, in send File “yt_dlp\networking_helper.py”, line 208, in wrapper File “yt_dlp\networking\common.py”, line 340, in send File “yt_dlp\networking_requests.py”, line 365, in _send yt_dlp.networking.exceptions.HTTPError: HTTP Error 503: Service Unavailable
C:\Users\pc 2\Desktop\video tools>
This is a -vU output