mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-02-19 15:35:18 -05: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() {
|
||||
loading = true;
|
||||
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);
|
||||
const response = await fetch(url, {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user