cda: http error 404 (fix suggestion) #23607

Closed
opened 2026-02-21 11:33:14 -05:00 by deekerman · 0 comments
Owner

Originally created by @gucio321 on GitHub (May 1, 2021).

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2021.04.26
  • 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 bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

see #28935

Description

reffering to #28935 (ibecause it was closed as duplication I did some research) I found this:
CDA has two "apis".
first for series films (https://cda.pl/id/vfilm) and second for single videos (https://cda.pl/https://cda.pl/id).
I was trying to download video from serie with a modified cda.py:
original: (line about 195)

        extract_format(webpage, 'default')

        for href, resolution in re.findall(
                r'<a[^>]+data-quality="[^"]+"[^>]+href="([^"]+)"[^>]+class="quality-btn"[^>]*>([0-9]+p)',
                webpage):
            if need_confirm_age:
                handler = self._download_age_confirm_page
            else:
                handler = self._download_webpage

            webpage = handler(
                self._BASE_URL + href, video_id,
                'Downloading %s version information' % resolution, fatal=False)

modified ( I changed this line webpage = handler( self._BASE_URL + href, video_id, ... ) -> webpage = handler(href,video_id...) )

        extract_format(webpage, 'default')

        for href, resolution in re.findall(
                r'<a[^>]+data-quality="[^"]+"[^>]+href="([^"]+)"[^>]+class="quality-btn"[^>]*>([0-9]+p)',
                webpage):
            if need_confirm_age:
                handler = self._download_age_confirm_page
            else:
                handler = self._download_webpage

            webpage = handler(
                href, video_id,
                'Downloading %s version information' % resolution, fatal=False)

could some developer wrap this and implement please?

Originally created by @gucio321 on GitHub (May 1, 2021). - [x] I'm reporting a broken site support issue - [x] I've verified that I'm running youtube-dl version **2021.04.26** - [x] I've checked that all provided URLs are alive and playable in a browser - [x] I've checked that all URLs and arguments with special characters are properly quoted or escaped - [x] I've searched the bugtracker for similar bug reports including closed ones - [x] I've read bugs section in FAQ ## Verbose log see #28935 ## Description reffering to #28935 (ibecause it was closed as `duplication` I did some research) I found this: CDA has two "apis". first for series films (https://cda.pl/id/vfilm) and second for single videos (https://cda.pl/https://cda.pl/id). I was trying to download video from serie with a modified cda.py: original: (line about 195) ```python extract_format(webpage, 'default') for href, resolution in re.findall( r'<a[^>]+data-quality="[^"]+"[^>]+href="([^"]+)"[^>]+class="quality-btn"[^>]*>([0-9]+p)', webpage): if need_confirm_age: handler = self._download_age_confirm_page else: handler = self._download_webpage webpage = handler( self._BASE_URL + href, video_id, 'Downloading %s version information' % resolution, fatal=False) ``` modified ( I changed this line `webpage = handler( self._BASE_URL + href, video_id, ... )` -> `webpage = handler(href,video_id...)` ) ```python extract_format(webpage, 'default') for href, resolution in re.findall( r'<a[^>]+data-quality="[^"]+"[^>]+href="([^"]+)"[^>]+class="quality-btn"[^>]*>([0-9]+p)', webpage): if need_confirm_age: handler = self._download_age_confirm_page else: handler = self._download_webpage webpage = handler( href, video_id, 'Downloading %s version information' % resolution, fatal=False) ``` could some developer wrap this and implement please?
deekerman 2026-02-21 11:33:14 -05:00
  • closed this issue
  • added the
    duplicate
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#23607
No description provided.