Return 404 when artwork is not available in /share/img endpoint

This commit is contained in:
Deluan authored and Deluan Quintão committed 2023-02-01 10:34:02 -05:00
1 parent 128b626ec9
commit d8e794317f
13 files changed
+75 -90

No files matched your search

+2 -2
View File
@@ -95,7 +95,7 @@ const PlaylistSongs = ({ playlistId, readOnly, actions, ...props }) => {
const onAddToPlaylist = useCallback(
(pls) => {
if (pls.id === playlistId) {
if (pls.artID === playlistId) {
refetch()
}
},
@@ -224,7 +224,7 @@ const SanitizedPlaylistSongs = (props) => {
<>
{loaded && (
<PlaylistSongs
playlistId={props.id}
playlistId={props.artID}
actions={props.actions}
pagination={props.pagination}
{...rest}