Skip to content

Support youtube community post individual link#8170

Draft
CCRcmcpe wants to merge 7160 commits intomikf:masterfrom
CCRcmcpe:master
Draft

Support youtube community post individual link#8170
CCRcmcpe wants to merge 7160 commits intomikf:masterfrom
CCRcmcpe:master

Conversation

@CCRcmcpe
Copy link
Copy Markdown

@CCRcmcpe CCRcmcpe commented Sep 5, 2025

Preliminary functionality, downloads individual links with the highest image quality. Opened as draft since it can be improved. The way it's implemented is somewhat brittle, relies on HTML information, but I saw no API as the other way.

cc #3134

mikf and others added 30 commits July 22, 2025 20:57
- add Jinja options (mikf#1390)
- add and use custom 'Module' type
- improve 'Path' description
* add new extractor for leakgallery.com

    Added support for downloading photo and video posts from leakgallery.com.

    Supports:
    * Individual post URLs
    * User profile URLs with pagination via AJAX
    * Optional type/sort filters (e.g. /Photos/MostRecent)
    * Proper file extension handling
    * Creator-based folder structure
    * Compatibility with --download-archive

    Tested locally and functional, but may still need review or improvement.
    
* [leakgallery] add support
    Added leakgallery to extractor module imports so it's recognized and used.
* [leakgallery] update extractor structure
    - Refactored using LeakGalleryExtractorBase to remove duplication
    - Moved init logic into items() using self.groups
    - Replaced re with text.re as per upstream guidance
    - Added creator fallback and media deduplication
    - Aligned structure with gallery-dl maintainer review tips
* [leakgallery] add support
    - Added leakgallery entry to supportedsites.md
    - Includes post, user, trending, and most-liked subcategories
* add exported extractor results
* [leakgallery] fix flake8 style issues
    Cleaned up code to comply with flake8 rules, especially:
    - removed unused imports
    - split long lines >79 chars
    - ensured newline at EOF
    No functional changes made; purely formatting to satisfy CI checks.
* [tests] update extractor results
* [leakgallery] fix flake8 style issues (part 2)
    Fix remaining flake8 issues in leakgallery.py:
    - Reformat line breaks to avoid W503 (line break before binary operator)
    - Wrap long lines to respect E501 (line too long > 79 characters)
    - Cleaned up exception logging for better clarity
    - Confirmed all flake8 checks now pass successfully
    This superseedes the previous commit which partially fixed formatting violations.
* [leakgallery] fix flake8 style issues (part 3)
* [leakgallery] rename extractor classes
* [tests] update extractor results
* [tests] rename extractor results
* [leakgallery] rename extractor classes (part 2)
* [leakgallery] rename example
* update docs/supportedsites
* update test results
    and convert line endings to '\n'
* update
    - convert line endings to '\n'
    - use _pagination method
    - fix logging calls
* return more metadata for _pagination() results
…7874)

less metadata by default, but grabs *all* user files
- consider only values smaller than 'lmax' instead of taking the max of
  all lengths and trimming that
- remove 'lmin'
mikf and others added 28 commits August 29, 2025 10:02
change default value from 100 to null,
i.e. don't send a 'limit' parameter
- provide 'search_tags' metadata for tag searches (mikf#8160)
- support '/archive/tagged/' URLs (mikf#8160)
- use self.groups
- remove __init__ constructors & _init functions
- remove "#category" test results
- only posts and creator posts work
- 'home' and 'list' extractors do nothing atm
- needs 'authorization' header as 'token' config value
  to access locked content
- needs yt-dlp to download 1080p videos
and add 'lists' extractor to collect your account's lists
- fix 'list' URLs
- allow 'id:…' as creator identifier
- simplify API code
- add 'format' option
- handle exceptions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants