Rudloff / alltube

Web GUI for youtube-dl
GNU General Public License v3.0
2.96k stars 582 forks source link

Support for downloading from CDA #301

Open kodxana opened 4 years ago

kodxana commented 4 years ago

Is there any way to add support for garbing videos from cda pl. There are websites that allows you to do it but I would like to have self hosted alternative :)

Rudloff commented 4 years ago

Hello, I don't know what CDA is. Can you please provide an example URL?

kodxana commented 4 years ago

Here https://cda.pl/video/995929bb

Rudloff commented 4 years ago

youtube-dl supports this website but it returns a really weird URL:

Error creating resource: [message] fopen(GH2H%60ah%5Db452%5DA%3D%5E%22tsz%7C%7B%24%22A_dgKw%603J%7C2%2Bz%22%5E%60dhff%60ebfe%5E%3DBdfg6%6036cdda_3h%6022bga277d_age_c___Q5): failed to open stream: No such file or directory
[file] /home/pierre/www/alltube/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php
[line] 324

This is a known issue: https://github.com/ytdl-org/youtube-dl/issues/24458

kodxana commented 4 years ago

So we need wait till youtube-dl fixes issue?

Rudloff commented 4 years ago

Exactly.

dkja commented 4 years ago

https://github.com/dkja/youtube-dl ;)

kodxana commented 4 years ago

Guess it won't be integrated untill you merge it with main repo :P

kodxana commented 4 years ago

@Rudloff What you think?

Rudloff commented 4 years ago

Yes, we will have to wait for a fix to be merged in youtube-dl.

kodxana commented 4 years ago

@dkja Can you send PR to youtube-dl repo?

dkja commented 4 years ago

@kodxana I'll try. ;)

Zeby to polacy nie mogli pogadac po polsku :P ...

kodxana commented 4 years ago

It's kinda English repository so we should speak English 😂

dkja commented 4 years ago

Yep

selfisekai commented 3 years ago

Hey, you may be interested with haruhi-dl, a libre fork of youtube-dl. We fixed that issue more than 2 weeks ago and we fix/make new extractors for other Poland-specific stuff like Wykop, TVP, Polskie Radio.

elvisef commented 3 years ago

https://github.com/dkja/youtube-dl ;)

I see that something has changed in the meantime.. ^^

firefox_2021-02-02_16-50-10

selfisekai commented 3 years ago

@elvisef upstream youtube-dl repository got the cda.pl fixed in the meantime as well, but as I know the free premium content like https://www.cda.pl/video/540114ae/vfilm doesn't work

elvisef commented 3 years ago

@elvisef upstream youtube-dl repository got the cda.pl fixed in the meantime as well, but as I know the free premium content like https://www.cda.pl/video/540114ae/vfilm doesn't work

As far as I've just checked, it works for "free premium" link You posted above. 2021-02-28_22-47

But it won't work for real "premium" videos... I even used my real premium account credentials, but only an error is shown: 2021-02-28_22-50

Is there any workaround for this ?

selfisekai commented 3 years ago

@elvisef hi, the hdl account is hardcoded, I'll work on porting their password hashing method tomorrow to allow using your own account

selfisekai commented 3 years ago

@elvisef fixed in the 2021.3.1 release: https://pypi.org/project/haruhi-dl/2021.3.1/ https://git.sakamoto.pl/laudompat/haruhi-dl/-/tags/v2021.03.01

elvisef commented 3 years ago

Just tried with the newest version, a premium video: https://www.cda.pl/video/699763378/vfilm - says that it is only for premium users. I have a premium account and I logged in using CMD in my Win7.

cmd_xy9Nxh24IA

selfisekai commented 3 years ago

@elvisef could you please DM me on matrix/telegram/discord?

elvisef commented 3 years ago

@elvisef could you please DM me on matrix/telegram/discord?

Generally I do not use any of these. But what You mean by allowing to use my own login/pass ? Will I have the option to download all videos then ?

Let me know what is the status.

PS.From what I see in the premium file header, is this:

iso8mp41dashcmfc

Is this kind of encryption ? Because in a "good" file, free file downloaded from "cda.pl" it looks different:

isomiso2avc1mp41

On the left, info about the "good" file - on the right, info about the "bad" file: TOTALCMD_2021-07-17_21-33-15

Also the "encrypted" premium file seem to have no video included... audio only, and it's encrypted ?! It's too complicated.