Skip to content

Commit

Permalink
Treat Amazon Prime bonus content as episodes (trakt-tools#249)
Browse files Browse the repository at this point in the history
Co-authored-by: MrMamen <[email protected]>
  • Loading branch information
downey-lv and MrMamen authored Jan 8, 2023
1 parent 4ecdee4 commit 185e85c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/amazon-prime/AmazonPrimeApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export interface AmazonPrimeEnrichmentsResponse {
export interface AmazonPrimeMetadataItem {
catalogMetadata: {
catalog: {
entityType: 'TV Show' | 'Movie';
entityType: 'TV Show' | 'Movie' | 'Trailer' | 'Bonus Content';
episodeNumber?: number;
id: string;
title: string;
Expand Down Expand Up @@ -366,8 +366,8 @@ class _AmazonPrimeApi extends ServiceApi {
const serviceId = this.id;
const { catalog, family } = metadata.catalogMetadata;
const { id, entityType } = catalog;
const type = entityType === 'TV Show' ? 'show' : 'movie';
if (type === 'show') {

if (entityType === 'TV Show' || entityType === 'Bonus Content') {
let title = '';
let season = 0;
if (family) {
Expand Down

0 comments on commit 185e85c

Please sign in to comment.