Sort playlist and fix playlist URL copy

This commit is contained in:
Ivan 2024-08-09 08:31:53 +02:00
parent 373520df8e
commit b5b74876d6
2 changed files with 14 additions and 7 deletions

View file

@ -152,6 +152,6 @@ export const API: RqbitAPI & { getVersion: () => Promise<string> } = {
return url;
},
getPlaylistUrl: (index: number) => {
return apiUrl + `/torrents/${index}/playlist`;
return (apiUrl || window.origin) + `/torrents/${index}/playlist`;
},
};