Open panda130 opened 3 years ago
@dstftw
I also tested on my C# Tool. In PH, premium episode is now required premium account.
See this example:
FREE EPISODE: https://d1k2us671qcoau.cloudfront.net/distribute_web_ph.php?ccs_product_id=2b90508fc68055b6be8489381d5dd3a1&language_flag_id=3
@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.
@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
I'm able to get all resolution with you're given sg link
@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.
@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# @dstftw can do it for you
I'm able to get all resolution with you're given sg link
Is your C# tool available to public?
I'm able to get all resolution with you're given sg link
Is your C# tool available to public?
No, this is just for personal use.
I'm able to get all resolution with you're given sg link
Is your C# tool available to public?
No, this is just for personal use.
can u share the extractor code? I can try and modify it for python
I'm able to get all resolution with you're given sg link
Is your C# tool available to public?
No, this is just for personal use.
can u share the extractor code? I can try and modify it for python
I just tested again and I noticed this is the problem Example url: https://www.viu.com/ott/sg/en-us/vod/233440/Hot-Stove-League
to fix it should have &ut=2 at the end like this
And here's for the streams https://d1k2us671qcoau.cloudfront.net/distribute_web_sg.php?ccs_product_id=9aceb6645dbdd1afa252581c2476af8f&language_flag_id=3
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.
@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? I hope I also know how to modify python from youtube-dl extractor.
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.
After I made the "language_flag_id" change to the query, the Viu extractor is only working for Singapore videos. For some reason, it does not work with Thailand videos. Can you find the correct video URL format for the Thailand videos? Sample URL: https://www.viu.com/ott/th/en-us/vod/165839/A-Poem-A-Day
The extractor is no longer working for Premium videos. It used to work for Premium videos.
@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.
- After I made the "language_flag_id" change to the query, the Viu extractor is only working for Singapore videos. For some reason, it does not work with Thailand videos. Can you find the correct video URL format for the Thailand videos? Sample URL: https://www.viu.com/ott/th/en-us/vod/165839/A-Poem-A-Day
- The extractor is no longer working for Premium videos. It used to work for Premium videos.
In PH, ut is needed. But I'll look into it later.
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.
@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 got this error
C:\Users\Administrator\Downloads\youtube-dl-master>make 'make' is not recognized as an internal or external command, operable program or batch file.
@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: https://stackoverflow.com/questions/55561387/how-to-rebuild-python-youtube-dl-from-the-source
@touchhyuk If you just want to run youtube-dl
with python interpreter (which you have already downloaded), there is no need to recompile or rebuild a standalone exe. Just follow the developer instructions will work.
@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
@touchhyuk If you just want to run
youtube-dl
with python interpreter (which you have already downloaded), there is no need to recompile or rebuild a standalone exe. Just follow the developer instructions will work.
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
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 https://github.com/ytdl-org/youtube-dl/issues/26788
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!