feat: Minstrel no longer talks to Lidarr: its connection, Delete via Lidarr and the unmonitor options are gone, and the track reports are plain quarantine (M502 #5525)
release / govulncheck (push) Successful in 15s
release / web (push) Failing after 17s
release / go (push) Successful in 1m13s
release / integration (push) Successful in 4m56s
release / android (push) Successful in 5m9s
release / Build signed APK (releases and dev) (push) Successful in 5m19s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
release / govulncheck (push) Successful in 15s
release / web (push) Failing after 17s
release / go (push) Successful in 1m13s
release / integration (push) Successful in 4m56s
release / android (push) Successful in 5m9s
release / Build signed APK (releases and dev) (push) Successful in 5m19s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Migration 0091 drops lidarr_config and renames the quarantine tables, types, indexes and the history column off the Lidarr name. The Integrations Lidarr card, the Reports "Delete via Lidarr" action, the merge and remove-track unmonitor options, the Lidarr audit actions and error codes go, on the server, web and Android. The README describes acquisition as it is now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,21 +2,21 @@ import { createQuery } from '@tanstack/svelte-query';
|
||||
import { api, apiFetch } from './client';
|
||||
import { qk } from './queries';
|
||||
import type {
|
||||
LidarrQuarantineRow,
|
||||
LidarrQuarantineMineRow,
|
||||
LidarrQuarantineReason
|
||||
QuarantineRow,
|
||||
QuarantineMineRow,
|
||||
QuarantineReason
|
||||
} from './types';
|
||||
|
||||
export type FlagParams = {
|
||||
track_id: string;
|
||||
reason: LidarrQuarantineReason;
|
||||
reason: QuarantineReason;
|
||||
notes?: string;
|
||||
};
|
||||
|
||||
export async function flagTrack(params: FlagParams): Promise<LidarrQuarantineRow> {
|
||||
export async function flagTrack(params: FlagParams): Promise<QuarantineRow> {
|
||||
const body: FlagParams = { track_id: params.track_id, reason: params.reason };
|
||||
if (params.notes && params.notes.length > 0) body.notes = params.notes;
|
||||
return api.post<LidarrQuarantineRow>('/api/quarantine', body);
|
||||
return api.post<QuarantineRow>('/api/quarantine', body);
|
||||
}
|
||||
|
||||
// Server returns 204 (no body) for DELETE; apiFetch handles it.
|
||||
@@ -24,8 +24,8 @@ export async function unflagTrack(trackID: string): Promise<void> {
|
||||
await apiFetch(`/api/quarantine/${trackID}`, { method: 'DELETE' });
|
||||
}
|
||||
|
||||
export async function listMyQuarantine(): Promise<LidarrQuarantineMineRow[]> {
|
||||
return api.get<LidarrQuarantineMineRow[]>('/api/quarantine/mine');
|
||||
export async function listMyQuarantine(): Promise<QuarantineMineRow[]> {
|
||||
return api.get<QuarantineMineRow[]>('/api/quarantine/mine');
|
||||
}
|
||||
|
||||
export function createMyQuarantineQuery() {
|
||||
|
||||
Reference in New Issue
Block a user