Skip to content

feat: support downloading single part from multi-part Bilibili videos#80

Open
thecoding wants to merge 1 commit intolanbinleo:mainfrom
thecoding:feature/75-multi-part-video-download
Open

feat: support downloading single part from multi-part Bilibili videos#80
thecoding wants to merge 1 commit intolanbinleo:mainfrom
thecoding:feature/75-multi-part-video-download

Conversation

@thecoding
Copy link
Copy Markdown

When a Bilibili URL contains ?p=N parameter, only that specific part will be downloaded instead of the entire collection.

Changes:

  • Add page field to SourceRef model to store the part number
  • Extract p parameter from URL in parse_source function
  • Configure yt-dlp to use playlist_items when page is specified
  • Add unit tests for page extraction behavior

When a Bilibili URL contains ?p=N parameter, only that specific part
will be downloaded instead of the entire collection.

Changes:
- Add `page` field to SourceRef model to store the part number
- Extract `p` parameter from URL in parse_source function
- Configure yt-dlp to use playlist_items when page is specified
- Add unit tests for page extraction behavior

Co-Authored-By: Claude <noreply@anthropic.com>
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.

2 participants