question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to download from Shahid VIP

See original GitHub issue

Checklist

Region

worldwide

Description

i’m trying to download shows from shahid VIP but getting [Shahid] 933812: Unable to download JSON metadata: HTTP Error 500: Internal Server Error error I have a VIP account

Verbose log

[debug] Command-line config: ['-v', '--username', 'PRIVATE', '--password', 'PRIVATE', 'https://shahid.mbc.net/en/series/Welcome-Home-season-1-episode-1/episode-933812']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, err UTF-8, pref UTF-8
[debug] yt-dlp version 2022.04.08 [7884ade65] (zip)
[debug] Python version 3.6.9 (CPython 64bit) - Linux-4.15.0-159-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 3.4.8, ffprobe 3.4.8
[debug] Optional libraries: certifi, Crypto, secretstorage, sqlite
[debug] Proxy map: {}
[Shahid] Logging in
WARNING: [Shahid] None: Failed to parse JSON Expecting value: line 1 column 1 (char 0)
ERROR: [Shahid] 933812: Unable to download JSON metadata: HTTP Error 500: Internal Server Error (caused by <HTTPError 500: 'Internal Server Error'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 639, in extract
    self.initialize()
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 544, in initialize
    self._perform_login(username, password)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/shahid.py", line 91, in _perform_login
    'Content-Type': 'application/json; charset=UTF-8',
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 1033, in _download_json
    expected_status=expected_status)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 1011, in _download_json_handle
    expected_status=expected_status)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 800, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 785, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 767, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3601, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
pukkandancommented, Apr 18, 2022

I wasn’t asking for account details, just labeling that it will need to be shared with any dev working on this issue

0reactions
snab43commented, Dec 17, 2022

Same issue, but trying to use cookies.txt. Account created through Apple. Did you end up figuring it out?

[debug] Command-line config: ['-v', '--cookies', 'cookies.txt', 'https://shahid.mbc.net/en/series/The-Office-season-1-episode-1/episode-963353']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.11.11 [8b64402] (pip)
[debug] Python 3.11.0 (CPython arm64 64bit) - macOS-13.1-arm64-arm-64bit (OpenSSL 1.1.1s  1 Nov 2022)
[debug] exe versions: ffmpeg 5.1.2 (setts), ffprobe 5.1.2
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1723 extractors
[debug] [Shahid] Extracting URL: https://shahid.mbc.net/en/series/The-Office-season-1-episode-1/episode-963353
[Shahid] 963353: Downloading JSON metadata
ERROR: [Shahid] 963353: هذا المحتوى متاح فقط لمستخدمي Shahid VIP.
  File "/opt/homebrew/Cellar/yt-dlp/2022.11.11/libexec/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 674, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/yt-dlp/2022.11.11/libexec/lib/python3.11/site-packages/yt_dlp/extractor/shahid.py", line 111, in _real_extract
    playout = self._call_api(
              ^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/yt-dlp/2022.11.11/libexec/lib/python3.11/site-packages/yt_dlp/extractor/shahid.py", line 44, in _call_api
    self._handle_error(e)
  File "/opt/homebrew/Cellar/yt-dlp/2022.11.11/libexec/lib/python3.11/site-packages/yt_dlp/extractor/shahid.py", line 30, in _handle_error
    raise ExtractorError(faults_message, expected=True)
Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I watch a content offline? - Shahid - Help Center
Tap on any content you wish to watch it offline. ... Look for the downloads icon to see whether it can be downloaded...
Read more >
How to download Shahid.net videos - Quora
How to download Shahid videos. Launch Shahid Downloader and and open Shahid website.
Read more >
help to download videos from shahid - VideoHelp Forum
Just tried to download non VIP!!! shows and it downloaded them without problems probably the VIP shows are DRM protected so you can...
Read more >
Can You Download Shahid VIP Shows? - SoThinkMedia
Basically, you can download Shahid VIP shows if you're an active subscriber. The simple process is to click the “Download” icon beside the ......
Read more >
How to Fix Shahid App Not Working Problem - YouTube
Shahid #NotOpen #NotWorking #ProblemIn this video Tutorial, i will show you How to Fix Shahid App Not Working Problem in Android & Ios ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found