Skip to content

Add support for YouTube Music links#71

Merged
Botffy merged 2 commits intomasterfrom
58_yt-music
Dec 28, 2025
Merged

Add support for YouTube Music links#71
Botffy merged 2 commits intomasterfrom
58_yt-music

Conversation

@Botffy
Copy link
Owner

@Botffy Botffy commented Dec 28, 2025

I did not expect YouTube and YouTube Music to share a backend, but apparently they do, so implementing this was surprisingly easy.

Closes #58

Copilot AI review requested due to automatic review settings December 28, 2025 12:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for YouTube Music links to the application, allowing users to create Instagram Story cards from both YouTube and YouTube Music content. The implementation leverages the shared backend between YouTube and YouTube Music, making the changes relatively straightforward.

Key Changes

  • Added YouTube Music URL parsing support via the music.youtube.com domain
  • Extended the YouTubeVideo data class with an app property to distinguish between YouTube and YouTube Music
  • Added YouTube Music logo asset and display logic to show the appropriate logo on generated cards
  • Updated all user-facing text and documentation to reflect support for both platforms

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
android/app/src/main/java/hu/sarmin/yt2ig/ShareTarget.kt Added YouTubeApp enum and YouTube Music URL parsing logic; updated YouTubeVideo to track source app
android/app/src/main/java/hu/sarmin/yt2ig/YouTube.kt Modified getVideoInfo to accept YouTubeVideo object instead of video ID string; added app field to YouTubeVideoInfo
android/app/src/main/java/hu/sarmin/yt2ig/Card.kt Added logic to select appropriate logo based on source app (YouTube vs YouTube Music)
android/app/src/main/java/hu/sarmin/yt2ig/ImageStore.kt Added YOUTUBE_MUSIC_LOGO preset and loaded YouTube Music logo asset
android/app/src/main/java/hu/sarmin/yt2ig/CardCreationService.kt Updated service call to pass full YouTubeVideo object instead of just video ID
android/app/src/test/java/hu/sarmin/yt2ig/RealYouTubeServiceTest.kt Updated test calls to use YouTubeVideo object
android/app/src/main/java/hu/sarmin/yt2ig/ui/HomeScreen.kt Updated UI text to mention YouTube Music support
android/app/src/main/java/hu/sarmin/yt2ig/ui/HelpScreen.kt Updated help text to mention YouTube Music support
android/app/src/main/res/values/strings.xml Updated error message to mention YouTube Music
android/app/src/main/assets/logos/youtube_music.png Added YouTube Music logo asset (binary file)
README.md Updated description to mention YouTube Music support; removed YouTube Music from roadmap
site/index.html Updated marketing copy to mention YouTube Music support
site/tos.html Made text more generic (removed "Welcome to")

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

I did not expect YouTube and YouTube Music to share a backend, but
apparently they do, so implementing this was surprisingly easy.

Closes #58
@Botffy Botffy merged commit 24275cf into master Dec 28, 2025
1 check passed
@Botffy Botffy deleted the 58_yt-music branch December 28, 2025 13:16
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.

Handle YouTube Music URLs

1 participant