YouTube's bot checks block yt-dlp from fetching audio on the server, so suggested songs now play in YouTube's embedded player, kept out of sight, in the browser. yt-dlp is only used to search. - GET /api/discover/youtube/<id> returns candidate video IDs, best first, or the one that played before (?refresh=true searches again). - PUT /api/discover/youtube/<id> remembers the video that played. - The UI tries the next candidate when a video can't be embedded, searches again when a remembered video is gone, and skips the song otherwise. - Drop the YouTube audio proxy, and Deno from the image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
49 lines
1.6 KiB
TOML
49 lines
1.6 KiB
TOML
[package]
|
|
name = "playlistd"
|
|
version = "0.2.6"
|
|
edition = "2021"
|
|
authors = ["Jude Southworth (judesouthworth@pm.me)"]
|
|
license = "AGPL-3.0 only"
|
|
description = "Subsonic playlist daemon"
|
|
|
|
[dependencies]
|
|
rocket = { version = "0.5.0", features = ["json"] }
|
|
tokio = { version = "1.0", features = ["full"] }
|
|
sqlx = { version = "0.8.6", features = ["runtime-tokio", "postgres", "uuid", "chrono"] }
|
|
reqwest = { version = "0.11", features = ["json", "stream"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
uuid = { version = "1.7", features = ["v4", "serde"] }
|
|
md5 = "0.8.0"
|
|
thiserror = "2.0.17"
|
|
config = "0.15.19"
|
|
log = "0.4.21"
|
|
env_logger = "0.11"
|
|
chrono = { version = "0.4.38", features = ["serde"] }
|
|
rand = "0.8"
|
|
serde_json = "1.0"
|
|
futures-util = "0.3"
|
|
tokio-util = { version = "0.7", features = ["io"] }
|
|
argon2 = "0.5"
|
|
sha2 = "0.10"
|
|
|
|
[package.metadata.deb]
|
|
depends = "$auto"
|
|
# finds suggested songs on YouTube. Distribution packages may be too old to work with YouTube,
|
|
# so it's only recommended: a current yt-dlp from elsewhere (e.g. pip) works too
|
|
recommends = "yt-dlp"
|
|
assets = [
|
|
["target/release/playlistd", "usr/bin/playlistd", "755"],
|
|
# the web UI; build it first with `npm --prefix discover ci && npm --prefix discover run build`
|
|
["discover/dist/**/*", "usr/share/playlistd/discover/", "644"],
|
|
["etc/playlistd/playlistd.toml", "etc/playlistd/playlistd.toml", "600"],
|
|
["etc/playlistd/Rocket.toml", "etc/playlistd/Rocket.toml", "600"],
|
|
]
|
|
conf-files = [
|
|
"/etc/playlistd/playlistd.toml",
|
|
"/etc/playlistd/Rocket.toml",
|
|
]
|
|
|
|
[package.metadata.deb.systemd-units]
|
|
unit-scripts = "systemd"
|
|
start = false
|