Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: max res thumbnail url
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhasDissa committed Oct 8, 2023
1 parent 1cef72d commit c215e28
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/java/app/suhasdissa/mellowmusic/utils/Mappers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ val Song.asMediaItem: MediaItem

val MediaItem.maxResThumbnail: String
get() {
val pipedProxyUrl = Pref.currentInstance.imageProxyUrl.ifEmpty { "https://pipedproxy.kavin.rocks/" }
return "${pipedProxyUrl}vi_webp/$mediaId/maxresdefault.webp?host=i.ytimg.com"
val pipedProxyUrl =
Pref.currentInstance.imageProxyUrl.ifEmpty { "https://pipedproxy.kavin.rocks" }
return "$pipedProxyUrl/vi_webp/$mediaId/maxresdefault.webp?host=i.ytimg.com"
}

0 comments on commit c215e28

Please sign in to comment.