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 not working anymore #6463
Comments
This comment was marked as resolved.
This comment was marked as resolved.
Thanks for the quick reply. I just double-checked. It's working fine in the browser. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
it looks like there's a new URL path of diff --git a/yt_dlp/extractor/hotstar.py b/yt_dlp/extractor/hotstar.py
index cea1812f1..dc793a62c 100644
--- a/yt_dlp/extractor/hotstar.py
+++ b/yt_dlp/extractor/hotstar.py
@@ -83,7 +83,7 @@ class HotStarIE(HotStarBaseIE):
_VALID_URL = r'''(?x)
https?://(?:www\.)?hotstar\.com(?:/in)?/(?!in/)
(?:
- (?P<type>movies|sports|episode|(?P<tv>tv))/
+ (?P<type>movies|sports|episode|(?P<tv>tv|shows))/
(?(tv)(?:[^/?#]+/){2}|[^?#]*)
)?
[^/?#]+/
@@ -139,6 +139,7 @@ class HotStarIE(HotStarBaseIE):
'sports': 'match',
'episode': 'episode',
'tv': 'episode',
+ 'shows': 'episode',
None: 'content',
}
@@ -304,7 +305,7 @@ def _real_extract(self, url):
class HotStarPlaylistIE(HotStarBaseIE):
IE_NAME = 'hotstar:playlist'
- _VALID_URL = r'https?://(?:www\.)?hotstar\.com(?:/in)?/tv(?:/[^/]+){2}/list/[^/]+/t-(?P<id>\w+)'
+ _VALID_URL = r'https?://(?:www\.)?hotstar\.com(?:/in)?/(?:tv|shows)(?:/[^/]+){2}/list/[^/]+/t-(?P<id>\w+)'
_TESTS = [{
'url': 'https://www.hotstar.com/tv/savdhaan-india/s-26/list/popular-clips/t-3_2_26',
'info_dict': {
@@ -327,7 +328,7 @@ def _real_extract(self, url):
class HotStarSeasonIE(HotStarBaseIE):
IE_NAME = 'hotstar:season'
- _VALID_URL = r'(?P<url>https?://(?:www\.)?hotstar\.com(?:/in)?/tv/[^/]+/\w+)/seasons/[^/]+/ss-(?P<id>\w+)'
+ _VALID_URL = r'(?P<url>https?://(?:www\.)?hotstar\.com(?:/in)?/(?:tv|shows)/[^/]+/\w+)/seasons/[^/]+/ss-(?P<id>\w+)'
_TESTS = [{
'url': 'https://www.hotstar.com/tv/radhakrishn/1260000646/seasons/season-2/ss-8028',
'info_dict': {
@@ -356,7 +357,7 @@ def _real_extract(self, url):
class HotStarSeriesIE(HotStarBaseIE):
IE_NAME = 'hotstar:series'
- _VALID_URL = r'(?P<url>https?://(?:www\.)?hotstar\.com(?:/in)?/tv/[^/]+/(?P<id>\d+))/?(?:[#?]|$)'
+ _VALID_URL = r'(?P<url>https?://(?:www\.)?hotstar\.com(?:/in)?/(?:tv|shows)/[^/]+/(?P<id>\d+))/?(?:[#?]|$)'
_TESTS = [{
'url': 'https://www.hotstar.com/in/tv/radhakrishn/1260000646',
'info_dict': { |
Thanks! Will try it soon.
—
Reply to this email directly, view it on GitHub<#6463 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMC6UJWO6AE6JV2DJJQWS6DW5HC77ANCNFSM6AAAAAAVSVEK4U>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
seems like all links are being redirected to a "watch" page. Layout changed for the website and its more like a mobile webpage. @bashonly your changes seems to do a little progress but still falling back on generic extractor. Some more changes are required i guess. |
I don't know if this will be useful to anyone but modifying the URL (replace "shows" with "tv") works, no need for a extractor update. |
That effectively verifies @bashonly's patch |
Thanks all! |
Worked for me as well. Thanks buddy @machasundaram . |
Out of region the playback API (eg, {
'errorCode': 'ERR_PB_1401',
'message': 'Bad Playback Request',
'errorDetails': [
{
'headerName': 'X-Request-Id',
'message': 'Missing or Invalid Header X-Request-Id'
}
],
'additionalInfo': {
}
} Where does Can this be fixed (at least to return a real geo-block error), or should it just be converted to a |
Closes yt-dlp#6463 Authored by: bashonly
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Provide a description that is worded well enough to be understood
Hello all,
I hope I'm not making a mistake by opening this topic. I have a subscription with hotstar, I have been using yt-dlp for this for a long time. Since yesterday the website has changed and it no longer works. hopefully somebody can help me. I can't find any existing issue about this. Thanks in advance.
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: