-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hotstart] fix and improve extraction
- fix format extraction (closes #26690) - extract thumbnail URL (closes #16079, closes #20412) - support country specific playlist URLs (closes #23496) - select the last id in video URL (closes #26412)
- Loading branch information
1 parent
bcc8ef0
commit bb38a12
Showing
1 changed file
with
69 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOT WORKING
youtube-dl https://www.hotstar.com/in/tv/kopalkundola/1260014391/bhairabs-clever-disguise/1000247592 -F
[hotstar] 1000247592: Downloading webpage
[hotstar] 1000247592: Downloading JSON metadata
ERROR: 1000247592: Failed to parse JSON (caused by ValueError('Expecting value: line 1 column 1 (char 0)',)); 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.
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yaah, Now its working
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
youtube-dl "https://www.hotstar.com/in/tv/saanjher-baati/1260007251/chinis-innocent-demand/1000256251"
[hotstar] 1000256251: Downloading webpage
[hotstar] 1000256251: Downloading JSON metadata
ERROR: 1000256251: Failed to parse JSON (caused by ValueError('Expecting value: line 1 column 1 (char 0)',)); 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.
can u please tell me how to fix this issue?
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can someone please tell me how to add my credentials to download VIP/Premium videos of hotstar, i have logins of hotstar but cant b able to download VIP/Premium or videos available for registered users, i also tried using --username MYUSERNAME --password MYPASSWORD option
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Admire1231 Can you post a vip link here? Premium videos won't work mostly, because they are all DRM videos.
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://www.hotstar.com/us/tv/mohor/1260012894/shankha-yells-at-mohor/1000258544
this video is working perfectly in browser with account credentials but when i provide my account details to youtube-dl via --username --password option for downloading it still not working showing this: http://prntscr.com/109b0bi
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Admire1231 The url you provided gets downloaded without credentials (PS: I am in India, and my VPN gets detected by Hotstar, when I change it to US).
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
till the time u check this video it becomes non-vip as hotstar mostly made it non-vip after the day of upload can u please try some VIP (v) marked video / latest episode of any tv serial
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Admire1231 I tried it with a VIP video today. You are right. I cannot download it using youtube-dl. Tried the username, password way and the cookies way. No effect. Can watch it via browser, and can download using other tools.
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking forward for solution of it and update of hotstar for VIP videos or any other solution u can suggest?
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure we can't discuss 3rd party tools here. Do you have discord? Or reddit?
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup i have reddit with the same name Admire1231
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work anymore??
bb38a12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
youtube-dl --verbose "https://www.hotstar.com/i
n/tv/bigg-boss/14455/day-1-in-the-house/1260070577"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.hotstar.com/in/tv/bigg-bos
s/14455/day-1-in-the-house/1260070577']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.4.4 (CPython) - Windows-2012ServerR2-6.3.9600
[debug] exe versions: ffmpeg N-92391-g07bc603757
[debug] Proxy map: {}
[hotstar] 1260070577: Downloading webpage
[hotstar] 1260070577: Downloading JSON metadata
ERROR: 1260070577: Failed to parse JSON (caused by ValueError('Expecting value:
line 1 column 1 (char 0)',)); please report this issue on https://yt-dl.org/bug
. Make sure you are using the latest version; type youtube-dl -U to update. B
e sure to call youtube-dl with the --verbose flag and include its complete outpu
t.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl
31\build\youtube_dl\extractor\common.py", line 906, in parse_json
File "C:\Python\Python34\lib\json_init.py", line 318, in loads
File "C:\Python\Python34\lib\json\decoder.py", line 343, in decode
File "C:\Python\Python34\lib\json\decoder.py", line 361, in raw_decode
ValueError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl
31\build\youtube_dl\extractor\common.py", line 906, in parse_json
File "C:\Python\Python34\lib\json_init.py", line 318, in loads
File "C:\Python\Python34\lib\json\decoder.py", line 343, in decode
File "C:\Python\Python34\lib\json\decoder.py", line 361, in raw_decode
ValueError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl
31\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl
31\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl
31\build\youtube_dl\extractor\common.py", line 534, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl
31\build\youtube_dl\extractor\hotstar.py", line 146, in _real_extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl
31\build\youtube_dl\extractor\hotstar.py", line 63, in _call_api_v2
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl
31\build\youtube_dl\extractor\common.py", line 910, in _parse_json
youtube_dl.utils.ExtractorError: 1260070577: Failed to parse JSON (caused by Va
lueError('Expecting value: line 1 column 1 (char 0)',)); please report this issu
e on https://yt-dl.org/bug . Make sure you are using the latest version; type y
outube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and
include its complete output.
Can u fix this please file is playable in browser