feat: add Deezer as the default download source
CI / chart (push) Successful in 3s
CI / test (push) Successful in 2m23s
CI / chart-push (push) Successful in 5s
CI / image (push) Successful in 3m50s

- V9 adds source/external_id to songs, moods, recommendations and jobs
- Deezer public catalog for search, related album covers and metadata
- streamrip downloader configured with DEEZER_ARL, 128/320 MP3
- per-mood source selector; switching clears and refills recommendations
- keep YouTube Music as a full second catalog and downloader
- media layout <source>-<externalId>, legacy YouTube folders still read
- Docker/streamrip install, chart ARL secret, docs and dual-source smoke test
This commit is contained in:
TapTap committed 2026-11-17 07:32:34 +00:00
1 parent 81a47f4cd2
commit 141698282d
43 files changed
+2072 -605

No files matched your search

@@ -47,7 +47,8 @@ data class DeviceDto(
@Serializable
data class SongDto(
val id: String,
val videoId: String,
val source: String,
val externalId: String,
val title: String,
val artist: String,
val album: String? = null,
@@ -60,7 +61,8 @@ data class SongDto(
fun SongRecord.toDto(): SongDto = SongDto(
id = id,
videoId = videoId,
source = source,
externalId = externalId,
title = title,
artist = artist,
album = album,
@@ -88,6 +90,7 @@ data class MoodDto(
val description: String? = null,
val query: String? = null,
val genres: List<String> = emptyList(),
val source: String,
val collectionPercent: Int,
val recommendationPercent: Int,
val recommendationCount: Int,
@@ -108,6 +111,7 @@ fun MoodRecord.toDto(): MoodDto = MoodDto(
description = description,
query = query,
genres = genres,
source = source,
collectionPercent = collectionPercent,
recommendationPercent = 100 - collectionPercent,
recommendationCount = recommendationCount,
@@ -131,7 +135,8 @@ data class MoodDetailDto(
@Serializable
data class RecommendationDto(
val videoId: String,
val source: String,
val externalId: String,
val title: String,
val artist: String,
val album: String? = null,
@@ -149,7 +154,8 @@ fun RecommendationRecord.toDto(
song: SongRecord? = null,
download: DownloadDto? = null,
): RecommendationDto = RecommendationDto(
videoId = videoId,
source = source,
externalId = externalId,
title = title,
artist = artist,
album = album,
@@ -173,7 +179,8 @@ data class DownloadDto(
@Serializable
data class SearchResultDto(
val videoId: String,
val source: String,
val externalId: String,
val title: String,
val artist: String,
val album: String? = null,
@@ -193,6 +200,7 @@ data class CreateMoodRequest(
val description: String? = null,
val query: String? = null,
val genres: List<String> = emptyList(),
val source: String? = null,
val collectionPercent: Int = 50,
val recommendationCount: Int = 10,
val refreshHours: Int = 24,
@@ -206,6 +214,7 @@ data class UpdateMoodRequest(
val query: String? = null,
val clearQuery: Boolean = false,
val genres: List<String>? = null,
val source: String? = null,
val collectionPercent: Int? = null,
val recommendationCount: Int? = null,
val refreshHours: Int? = null,
@@ -220,7 +229,8 @@ data class UpdateMoodRequest(
@Serializable
data class AddSongRequest(
val songId: String? = null,
val videoId: String? = null,
val source: String? = null,
val externalId: String? = null,
val url: String? = null,
)