Skip to content

Commit

Permalink
Upd: new mympd.http_download API
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Jun 8, 2024
1 parent 2feff8c commit f44d8f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Albumart/AlbumartProviders.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local p_coverartarchive = {
if not song.MUSICBRAINZ_ALBUMID then
return 1
end
return mympd.http_download("https://coverartarchive.org/release/" .. song.MUSICBRAINZ_ALBUMID .. "/front", out)
return mympd.http_download("https://coverartarchive.org/release/" .. song.MUSICBRAINZ_ALBUMID .. "/front", "", out)
end
}

Expand Down Expand Up @@ -37,7 +37,7 @@ local p_fanart_tv = {
mympd.log(7, "Album not found")
return 1
end
return mympd.http_download(data.albums[song.MUSICBRAINZ_RELEASEGROUPID].albumcover[1].url, out)
return mympd.http_download(data.albums[song.MUSICBRAINZ_RELEASEGROUPID].albumcover[1].url, "", out)
end
}

Expand Down
2 changes: 1 addition & 1 deletion Covercache/CovercachePrepopulate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ for _, album in pairs(result.data) do
else
local out = mympd.tmp_file()
local uri = mympd_state.mympd_uri .. 'albumart-thumb?offset=0&uri=' .. mympd.urlencode(album.uri)
rc, code, headers = mympd_http_download(uri, out)
rc, code, headers = mympd_http_download(uri, "", out)
if rc == 0 then
local name = mympd.cache_cover_write(out, album.uri)
mympd.log(6, "Covercache: " .. name)
Expand Down
2 changes: 1 addition & 1 deletion Tagart/TagartProviders.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ local p_fanart_tv = {
mympd.log(7, "Tagart not found")
return 1
end
return mympd.http_download(data.artistthumb[1].url, out)
return mympd.http_download(data.artistthumb[1].url, "", out)
end
}

Expand Down

0 comments on commit f44d8f5

Please sign in to comment.