alltube icon indicating copy to clipboard operation
alltube copied to clipboard

Support for downloading from CDA

Open kodxana opened this issue 3 years ago • 22 comments

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 :)

kodxana avatar Aug 16 '20 17:08 kodxana

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

Rudloff avatar Aug 16 '20 20:08 Rudloff

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

kodxana avatar Aug 16 '20 21:08 kodxana

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

Rudloff avatar Aug 17 '20 14:08 Rudloff

So we need wait till youtube-dl fixes issue?

kodxana avatar Aug 17 '20 14:08 kodxana

Exactly.

Rudloff avatar Aug 17 '20 14:08 Rudloff

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

dkja avatar Aug 19 '20 11:08 dkja

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

kodxana avatar Aug 19 '20 13:08 kodxana

@Rudloff What you think?

kodxana avatar Aug 19 '20 13:08 kodxana

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

Rudloff avatar Aug 19 '20 15:08 Rudloff

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

kodxana avatar Aug 19 '20 16:08 kodxana

@kodxana I'll try. ;)

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

dkja avatar Aug 19 '20 18:08 dkja

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

kodxana avatar Aug 19 '20 18:08 kodxana

Yep

dkja avatar Aug 19 '20 18:08 dkja

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.

selfisekai avatar Nov 17 '20 11:11 selfisekai

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

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

firefox_2021-02-02_16-50-10

elvisef avatar Feb 02 '21 15:02 elvisef

@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

selfisekai avatar Feb 02 '21 17:02 selfisekai

@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 ?

elvisef avatar Feb 28 '21 21:02 elvisef

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

selfisekai avatar Mar 01 '21 00:03 selfisekai

@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

selfisekai avatar Mar 01 '21 22:03 selfisekai

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

elvisef avatar Apr 05 '21 17:04 elvisef

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

selfisekai avatar Apr 06 '21 10:04 selfisekai

@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.

elvisef avatar Jul 17 '21 18:07 elvisef