mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-22 16:55:13 +02:00
fix: Radarr & Sonarr requests fail due to wrong indexerId, fix: Invalid backdrop urls
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
import ModalHeader from '../Modal/ModalHeader.svelte';
|
||||
import RequestModal from './RequestModal.svelte';
|
||||
|
||||
export let modalId: Symbol;
|
||||
export let groupId: Symbol;
|
||||
export let modalId: symbol;
|
||||
export let groupId: symbol;
|
||||
|
||||
export let sonarrId: number;
|
||||
export let seasonNumber: number;
|
||||
@@ -22,8 +22,8 @@
|
||||
modalStack.create(
|
||||
RequestModal,
|
||||
{
|
||||
episode,
|
||||
sonarrId,
|
||||
sonarrEpisodeId: episode.id,
|
||||
// sonarrId,
|
||||
groupId
|
||||
},
|
||||
groupId
|
||||
|
||||
@@ -16,10 +16,11 @@
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
export let modalId: Symbol;
|
||||
export let groupId: Symbol | undefined = undefined;
|
||||
export let modalId: symbol;
|
||||
export let groupId: symbol | undefined = undefined;
|
||||
|
||||
export let title = 'Releases';
|
||||
|
||||
export let radarrId: number | undefined = undefined;
|
||||
export let sonarrEpisodeId: number | undefined = undefined;
|
||||
export let seasonPack: { sonarrId: number; seasonNumber: number } | undefined = undefined;
|
||||
@@ -66,10 +67,10 @@
|
||||
};
|
||||
}
|
||||
|
||||
function handleDownload(guid: string) {
|
||||
function handleDownload(guid: string, indexerId: number) {
|
||||
downloadFetchingGuid = guid;
|
||||
if (radarrId) {
|
||||
downloadRadarrMovie(guid).then((ok) => {
|
||||
downloadRadarrMovie(guid, indexerId).then((ok) => {
|
||||
dispatch('download');
|
||||
downloadFetchingGuid = undefined;
|
||||
if (ok) {
|
||||
@@ -77,7 +78,7 @@
|
||||
}
|
||||
});
|
||||
} else {
|
||||
downloadSonarrEpisode(guid).then((ok) => {
|
||||
downloadSonarrEpisode(guid, indexerId).then((ok) => {
|
||||
dispatch('download');
|
||||
downloadFetchingGuid = undefined;
|
||||
if (ok) {
|
||||
@@ -130,7 +131,10 @@
|
||||
<div class="text-zinc-400">{formatSize(release?.size || 0)}</div>
|
||||
{#if release.guid !== downloadingGuid}
|
||||
<IconButton
|
||||
on:click={() => release.guid && handleDownload(release.guid)}
|
||||
on:click={() =>
|
||||
release.guid &&
|
||||
release.indexerId &&
|
||||
handleDownload(release.guid, release.indexerId)}
|
||||
disabled={downloadFetchingGuid === release.guid}
|
||||
>
|
||||
<Plus size={20} />
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
import EpisodeSelectModal from './EpisodeSelectModal.svelte';
|
||||
import RequestModal from './RequestModal.svelte';
|
||||
|
||||
export let modalId: Symbol;
|
||||
export let modalId: symbol;
|
||||
export let sonarrId: number;
|
||||
export let seasons: number;
|
||||
export let heading = 'Seasons';
|
||||
|
||||
Reference in New Issue
Block a user