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

Hotstar Geo-location error, Despite being in India #23163

Closed
Y4shSHD opened this issue Nov 21, 2019 · 1 comment
Closed

Hotstar Geo-location error, Despite being in India #23163

Y4shSHD opened this issue Nov 21, 2019 · 1 comment
Labels

Comments

@Y4shSHD
Copy link

@Y4shSHD Y4shSHD commented Nov 21, 2019

Checklist

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

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-F', u'https://www.hotstar.com/1000245296']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.11.05
[debug] Python version 2.7.10 (CPython) - Darwin-19.0.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.2.1, ffprobe 4.2.1, rtmpdump 2.4
[debug] Proxy map: {}
[hotstar] 1000245296: Downloading webpage
[hotstar] 1000245296: Downloading JSON metadata
[hotstar] 1000245296: Downloading m3u8 information
[hotstar] 1000245296: Downloading MPD manifest
[hotstar] 1000245296: Downloading MPD manifest
[hotstar] 1000245296: Downloading MPD manifest
[hotstar] 1000245296: Downloading m3u8 information
[hotstar] 1000245296: Downloading MPD manifest
[hotstar] 1000245296: Downloading MPD manifest
[hotstar] 1000245296: Downloading MPD manifest
[hotstar] 1000245296: Downloading m3u8 information
[hotstar] 1000245296: Downloading MPD manifest
ERROR: This video is not available from your location due to geo restriction
This video is available in India.
You might want to use a VPN or a proxy server (with --proxy) to workaround.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/hotstar.py", line 143, in _real_extract
    format_url, video_id, mpd_id='dash'))
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 2017, in _extract_mpd_formats
    fatal=fatal)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 820, in _download_xml_handle
    expected_status=expected_status)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 660, 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/youtube-dl/youtube_dl/extractor/common.py", line 645, in _request_webpage
    raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
ExtractorError: Failed to download MPD manifest: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/hotstar.py", line 158, in _real_extract
    self.raise_geo_restricted(countries=['IN'])
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 940, in raise_geo_restricted
    raise GeoRestrictedError(msg, countries=countries)
GeoRestrictedError: This video is not available from your location due to geo restriction

Description

Please specify which release will fix this issue, that's all. We thought the November update would fix this

@Y4shSHD Y4shSHD closed this Nov 21, 2019
@Y4shSHD
Copy link
Author

@Y4shSHD Y4shSHD commented Nov 21, 2019

Fixed it by myself. Thanks @remitamine for the code fix!!

@dstftw dstftw added the duplicate label Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.