Skip to content

Add optional Shorts sync via derived playlist#1380

Draft
fimenten wants to merge 2 commits intomeeb:test-fimenten-shorts-playlistfrom
fimenten:shorts-playlist
Draft

Add optional Shorts sync via derived playlist#1380
fimenten wants to merge 2 commits intomeeb:test-fimenten-shorts-playlistfrom
fimenten:shorts-playlist

Conversation

@fimenten
Copy link

@fimenten fimenten commented Feb 4, 2026

Title: Add optional Shorts sync via derived playlist

Summary:

  • Derive the Shorts playlist ID (UUSH...) from UC channel IDs when Include Shorts is enabled.
  • Treat Shorts as a playlist source so URL validation for /shorts is unchanged.
  • Keep existing channel sync behavior unchanged (default OFF).

Changes:

  • Added include_shorts flag and shorts_parent relation on Source.
  • Added UC -> UUSH helper to derive the Shorts playlist ID.
  • Auto-create/disable the Shorts source when include_shorts toggles.
  • UI/Forms updated to expose Include Shorts, plus detail display.
  • Migration: 0037_source_include_shorts_and_parent.

Testing:

  • docker build: DOCKER_BUILDKIT=1 docker build -t tubesync-test --build-arg FFMPEG_DATE=2025-11-30-14-12 .
  • docker test: docker run --rm --entrypoint /usr/bin/python3 tubesync-test /app/manage.py test sync.tests.FrontEndTestCase.test_include_shorts_auto_add_remove
  • Manual: verified Shorts playlist fetch and download via TubeSync yt-dlp wrapper.

Notes:

  • /shorts tab URL is not directly supported; Shorts are handled as a playlist source.

@fimenten
Copy link
Author

fimenten commented Feb 4, 2026

Closing for now due to errors; will reopen after fixes.

@fimenten fimenten closed this Feb 4, 2026
@github-project-automation github-project-automation bot moved this to Done in Status Feb 4, 2026
@tcely tcely reopened this Feb 4, 2026
@github-project-automation github-project-automation bot moved this from Done to Todo in Status Feb 4, 2026
@tcely tcely marked this pull request as draft February 4, 2026 01:12
@tcely tcely changed the base branch from main to test-fimenten-shorts-playlist February 4, 2026 01:15
@tcely
Copy link
Collaborator

tcely commented Feb 4, 2026

Please also read #1254 while working on shorts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants