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

Can only download 360p from Youku #28471

Open
5 tasks done
imgettingridofbritta opened this issue Mar 17, 2021 · 6 comments
Open
5 tasks done

Can only download 360p from Youku #28471

imgettingridofbritta opened this issue Mar 17, 2021 · 6 comments

Comments

@imgettingridofbritta
Copy link

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2021.03.14
  • 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

I initially haven't been able to download Youku videos [error -6004: 客户端无权播放,201], but was able to do so after changing the code, as suggested in #28460

        # request basic data
        basic_data_params = {
            'vid': video_id,
            'ccode': '0532',
            'client_ip': '192.168.1.1',
            'utid': cna,
            'client_ts': time.time() / 1000,

However, videos are only downloading at 360p, even after setting the video resolution on the page to 720p, or manually setting the format (-f "best[height=720]")

I also checked available formats, and I'm getting this:

[youku] XNTEyMDEyMDU3Ng: Retrieving cna info
[youku] XNTEyMDEyMDU3Ng: Downloading JSON metadata
[info] Available formats for XNTEyMDEyMDU3Ng:
format code  extension  resolution note
0            mp4        640x360    109.91MiB
h3           mp4        960x540    193.10MiB
2            mp4        1280x720   318.00MiB (best)

Sample link: https://v.youku.com/v_show/id_XNTEyMDEyMDU3Ng

Please advise. Thank you in advance!

@GuntherDaBrave
Copy link

Hi, could you tell me how to change the code? Having the same issue and would appreciate knowing how to temporarily fix it like you have done. Thanks

@imgettingridofbritta
Copy link
Author

Hi, could you tell me how to change the code? Having the same issue and would appreciate knowing how to temporarily fix it like you have done. Thanks

Hi! Just edit the youku.py file in the extractor subfolder of your youtube-dl. Find the part that I mentioned above, and change the code from 0590 to 0532.

Hope this helps!

@GuntherDaBrave
Copy link

Hi, could you tell me how to change the code? Having the same issue and would appreciate knowing how to temporarily fix it like you have done. Thanks

Hi! Just edit the youku.py file in the extractor subfolder of your youtube-dl. Find the part that I mentioned above, and change the code from 0590 to 0532.

Hope this helps!

Hello, thanks for the reply but I do not seem to have an extractor subfolder for youtube-dl. I just have the youtube-dl.exe file and the 3 ffmpeg files for audio in the same folder. I am using Windows, if that is any help.

@imgettingridofbritta
Copy link
Author

Hi, could you tell me how to change the code? Having the same issue and would appreciate knowing how to temporarily fix it like you have done. Thanks

Hi! Just edit the youku.py file in the extractor subfolder of your youtube-dl. Find the part that I mentioned above, and change the code from 0590 to 0532.
Hope this helps!

Hello, thanks for the reply but I do not seem to have an extractor subfolder for youtube-dl. I just have the youtube-dl.exe file and the 3 ffmpeg files for audio in the same folder. I am using Windows, if that is any help.

Try looking here:

C:\Users[Your Username]\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\youtube_dl\extractor

@GuntherDaBrave
Copy link

Hi, could you tell me how to change the code? Having the same issue and would appreciate knowing how to temporarily fix it like you have done. Thanks

Hi! Just edit the youku.py file in the extractor subfolder of your youtube-dl. Find the part that I mentioned above, and change the code from 0590 to 0532.
Hope this helps!

Hello, thanks for the reply but I do not seem to have an extractor subfolder for youtube-dl. I just have the youtube-dl.exe file and the 3 ffmpeg files for audio in the same folder. I am using Windows, if that is any help.

Try looking here:

C:\Users[Your Username]\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\youtube_dl\extractor

Unfortunately I do not see that folder in the specified directory. Not sure what else to try, sorry for the bother.

@JenniferPadilla
Copy link

I'm encountering the same problem. If downloading with --all-formats, formats 0 (360p), 2 (720p) and 3 (1080p) result in the same 360p file, whereas format h3 yields a 540p file. This is with both direct video URLs as well as playlist URLs. I'm running youtube-dl with --cookies and a cookies.txt with an active Youku subscription.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants