Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Viu OTT extractor error (KeyError) #26701
Comments
|
I also tested on my C# Tool. See this example: FREE EPISODE: |
|
@zackmark29 Thank you for replying. I do not believe that either of the sample episodes I mentioned are premium episodes because you can watch them via web browser without a subscription. Something seems to have changed to stop youtube-dl from even seeing the available video formats. Using "--list-formats" is not working. So what you are saying is that even if youtube-dl could see the available video formats, the HD quality videos will no longer be available? The HD quality videos were working via youtube-dl a couple of days ago. |
No, in my case, if I don't have premium account, youtube-dl can't be able to check the available format as well. Because the cookie id is required. I'll check now with SG vpn. I'll update you in a minute |
|
@zackmark29 Thanks for following up. So it seems like all formats of the videos are still available. It's just that there is some syntax change on Viu's server side that the youtube-dl Viu extractor needs to compensate for. |
Yeah. If I just know Python I can edit it for you but I only know C# |
I just tested again and I noticed this is the problem to fix it should have &ut=2 at the end like this And here's for the streams for some premium videos sometimes token is required to get the streams. Let me know if you needed more. |
|
@zackmark29 Yay! Thank you so much! Based on your observation, I fixed the viu.py extractor by adding in the 'language_flag_id' and the 'ut' into the query. I am not a programmer, and this is the first time I have ever done anything in Python... I have also submitted my first-ever pull request. |
Wow that's great! so is it work now? |
|
But the ut i think it depends on the region. In my country (PH) it's ut=0 and for SG it's ut=2 |
|
@zackmark29 I did some more testing. I actually removed the ut part of the query, and the extractor still works. So ut does not seem to be necessary. There are a couple of remaining issues.
|
In PH, ut is needed. |
|
how can i download from viu with viu.py? i did install python but i can't run viu python. please guide |
|
@touchhyuk I assume that you've already downloaded the youtube-dl master source code. You'll need to make the modifications to viu.py that are listed in my pull request. Then you have to recompile youtube-dl. In your bash terminal, set your current directory to the root folder of the youtube-dl master source code. For instance, if you downloaded the youtube-dl source code to your Downloads folder, you might have to set your current directory to "/Users/USERNAMEHERE/Downloads/youtube-dl-master" by typing "cd /Users/USERNAMEHERE/Downloads/youtube-dl-master" in your bash terminal. Then enter the command "make" in your bash terminal. There will be an executable binary file created called "youtube-dl". Move that "youtube-dl" binary file to wherever your computer normally stores the youtube-dl binary file. Use the terminal command "which youtube-dl" if you need to find out where that is. |
i cant run make command C:\Users\Administrator\Downloads\youtube-dl-master>make |
|
@touchhyuk I am sorry to hear that. I don't use Windows so I'm afraid I can't help with this particular problem. It seems to be a permissions issue. Please try asking on the Reddit or stack exchange page. See this link: |
|
@touchhyuk If you just want to run |
|
@panda130 @zackmark29 for your reference In my country (HK), ut is also 0, area_id = 1, language_flag_id = 1 for zh-hk, 3 for en-us |
i cant please giive your discord id or telegram id |
|
please someone fix youtube-dl.exe with viu.py and send here. i want downloaf from viu and tried a week but cant fix |
You could try to follow my instruction from this |

Checklist
Verbose log
Description
As of today, the Viu OTT extractor is no longer working. I have tried multiple server locations.
This issue is occurring with videos that are geo-restricted to both Singapore and Thailand. They are still accessible via web browser using a proxy.
Singapore sample: https://www.viu.com/ott/sg/en-us/vod/233440/Hot-Stove-League
Thailand sample: https://www.viu.com/ott/th/en-us/vod/165839/A-Poem-A-Day
This is really bad because Viu is one of the main sites for Asian TV dramas that are not available anywhere else. Thank you for your help!