fix: support YTM browse urls

This commit is contained in:
ThetaDev 2022-11-09 21:02:21 +01:00
parent ea16a3e74f
commit 9b6c952fd3
3 changed files with 16 additions and 3 deletions

View file

@ -68,9 +68,7 @@ impl UrlTarget {
format!("{}/playlist?list={}", yt_host, id)
}
UrlTarget::Album { id } => {
// The official album URLs use the playlist ID
// This looks weird, but it works
format!("{}/channel/{}", yt_host, id)
format!("https://music.youtube.com/browse/{}", id)
}
}
}