Skip to content

Commit

Permalink
Merge pull request lardbit#171 from lardbit/fix-no-release-date
Browse files Browse the repository at this point in the history
Fix no release date bug
  • Loading branch information
lardbit committed Jan 8, 2022
2 parents e4452fd + 3453a31 commit 0f2b712
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/frontend/src/app/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export class ApiService {
tmdb_show_id: showId,
name: name,
poster_image_url: posterImageUrl,
release_date: releaseDate,
release_date: releaseDate || null,
auto_watch: !!autoWatchNewSeasons,
quality_profile_custom: qualityProfile,
};
Expand Down Expand Up @@ -531,7 +531,7 @@ export class ApiService {
tmdb_episode_id: episodeId,
season_number: seasonNumber,
episode_number: episodeNumber,
release_date: releaseDate,
release_date: releaseDate || null,
};
return this.http.post(this.API_URL_WATCH_TV_EPISODE, params, {headers: this._requestHeaders()}).pipe(
map((data: any) => {
Expand All @@ -553,7 +553,7 @@ export class ApiService {
const params = {
watch_tv_show: watchShowId,
season_number: seasonNumber,
release_date: releaseDate,
release_date: releaseDate || null,
};
return this.http.post(this.API_URL_WATCH_TV_SEASON_REQUEST, params, {headers: this._requestHeaders()}).pipe(
map((data: any) => {
Expand Down Expand Up @@ -615,7 +615,7 @@ export class ApiService {
name: name,
poster_image_url: posterImageUrl,
quality_profile_custom: qualityProfileCustom,
release_date: releaseDate,
release_date: releaseDate || null,
};

return this.http.post(this.API_URL_WATCH_MOVIE, params, {headers: this._requestHeaders()}).pipe(
Expand Down

0 comments on commit 0f2b712

Please sign in to comment.