mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-25 02:05:51 +02:00
fix bug which prevents user to add a movie through the frontend
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
async function addMedia() {
|
async function addMedia() {
|
||||||
loading = true;
|
loading = true;
|
||||||
let url = isShow ? new URL(apiUrl + '/tv/shows') : new URL(apiUrl + '/movies');
|
let url = isShow ? new URL(apiUrl + '/tv/shows') : new URL(apiUrl + '/movies');
|
||||||
url.searchParams.append('show_id', String(result.external_id));
|
url.searchParams.append(isShow ? 'show_id' : 'movie_id', String(result.external_id));
|
||||||
url.searchParams.append('metadata_provider', result.metadata_provider);
|
url.searchParams.append('metadata_provider', result.metadata_provider);
|
||||||
const response = await fetch(url, {
|
const response = await fetch(url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
Reference in New Issue
Block a user