mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-31 04:00:18 -07:00
Fixed: Will no longer cause an error when trying to parse an anime episode with absolute number 0.
This commit is contained in:
parent
e978a425c2
commit
6dfbc3c290
19 changed files with 128 additions and 113 deletions
|
@ -11,7 +11,7 @@ define(
|
|||
return moment(this.airDate).format('L');
|
||||
}
|
||||
|
||||
else if (this.series.seriesType === 'anime' && this.absoluteEpisodeNumber > 0) {
|
||||
else if (this.series.seriesType === 'anime' && this.absoluteEpisodeNumber !== undefined) {
|
||||
return '{0}x{1} ({2})'.format(this.seasonNumber, FormatHelpers.pad(this.episodeNumber, 2), FormatHelpers.pad(this.absoluteEpisodeNumber, 2));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue