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

Viki authentication 1080p download not working. #21001

Closed
jeraldpunx opened this issue May 8, 2019 · 8 comments
Closed

Viki authentication 1080p download not working. #21001

jeraldpunx opened this issue May 8, 2019 · 8 comments

Comments

@jeraldpunx
Copy link

The viki is working with this command
youtube-dl.exe -f best --get-url https://www.viki.com/videos/67066v-sungkyunkwan-scandal-episode-1 and the best quality is 480p

but if I use the premium account of viki to fetch HD videos, it error me and this is my command.
youtube-dl --username *****@yahoo.com --password **** -f best --get-url https://www.viki.com/videos/67066v-sungkyunkwan-scandal-episode-1 --verbose flag

It return me this.

youtube-dl.exe --username [email protected] --password querty123 -f best --get-url https://www.viki.com/videos/67066v-sungkyunkwan-scandal-episode-1 --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--username', 'PRIVATE', '--password', 'PRIVATE', '-f', 'best', '--get-url', 'https://www.viki.com/videos/67066v-sungkyunkwan-scandal-episode-1', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
[debug] youtube-dl version 2019.04.30
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: ffmpeg N-93515-g6aeaac3e1c, ffprobe N-93515-g6aeaac3e1c
[debug] Proxy map: {}
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (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.
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpfeq7l785\build\youtube_dl\extractor\common.py", line 626, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpfeq7l785\build\youtube_dl\YoutubeDL.py", line 2227, in urlopen
  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default
@cafcat
Copy link

cafcat commented May 25, 2019

Hello, i have the same issue since 2 days.
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-u', 'PRIVATE', '-p', 'PRIVATE', '--write-sub', '--sub-format', 'srt', '--convert-subs', 'srt', '--sub-lang', 'en,fr', '-o', 'E:\Web\(_) Nouveau\Viki\Download/%(title)s.%(ext)s', 'https://www.viki.com/tv/36575c-angels-last-mission-love']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2019.05.20
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: ffmpeg N-87306-g6743351, ffprobe N-87306-g6743351
[debug] Proxy map: {}
[viki:channel] Logging in
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (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.
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpt31j5y3w\build\youtube_dl\extractor\common.py", line 626, in _request_webpage
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpt31j5y3w\build\youtube_dl\YoutubeDL.py", line 2227, in urlopen
File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
File "C:\Python\Python34\lib\urllib\request.py", line 502, in error
File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
File "C:\Python\Python34\lib\urllib\request.py", line 685, in http_error_302
File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default

@SeanGilroy
Copy link

I am having this issue now too.

I am wondering if the _APP_SECRET value changed again, and would need to be udated in the viki.py file.

Does anyone know how to find/figure out what the new value is? When I login to the site and use the Chrome Inspect tool, I do see the dash files for all the resolutions. I get the same JSON metadata / HTTP 404 error as both of you guys though.

@SeanGilroy
Copy link

Looking at the login page source:

<input type="hidden" name="authenticity_token" id="authenticity_token" value="cZPvSFgWRCNv+qkQxZm1HER2sjyiGpIyl0mwDO1Sb0PnGrdM3hStQwVEXoB7zAlOfjItY4fhjT/6o0g3e9vFsQ==">

Changing to this value does not seem to fix the issue, same JSON message.

@GuyMicciche
Copy link

Please help! When using username and password I am also getting the error:

ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found

@GabyPCgeeK
Copy link

Authentication can only be done now through HTTPS.
In viki.py need to change
_API_URL_TEMPLATE = 'http://api.viki.io%s&sig=%s'
to
_API_URL_TEMPLATE = 'https://api.viki.io%s&sig=%s'

@SeanGilroy
Copy link

Yes! This change did it for me. Thank you!

@GuyMicciche
Copy link

Great! If everyone's saying it's working, I will give it a try! Thanks for figuring it out, and please incorporate it into the next release!

@cafcat
Copy link

cafcat commented May 28, 2019

i'm waiting for the release change (windows)

@ytdl-org ytdl-org locked and limited conversation to collaborators May 28, 2019
@dstftw dstftw closed this as completed in 26a8797 May 28, 2019
meunierd referenced this issue in meunierd/youtube-dl Dec 27, 2019
meunierd referenced this issue in meunierd/youtube-dl Feb 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants