Skip to content

Commit

Permalink
fix: adopt category in collection in movie and series imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkelspiel committed May 6, 2024
1 parent 4ac9ebb commit bd8c64a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/api/import/movie/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const GET = async (request: NextRequest) => {
backdropPath:
'https://image.tmdb.org/t/p/original/' +
data.belongs_to_collection.backdrop_path,
type: 'Movie',
category: 'Movie',
},
})
).id;
Expand Down
2 changes: 1 addition & 1 deletion app/api/import/series/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const GET = async (request: NextRequest) => {
posterPath: 'https://image.tmdb.org/t/p/original/' + data.poster_path,
backdropPath:
'https://image.tmdb.org/t/p/original/' + data.backdrop_path,
type: 'Series',
category: 'Series',
},
})
).id;
Expand Down

0 comments on commit bd8c64a

Please sign in to comment.