mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 10:07:10 +00:00
18 lines
471 B
JavaScript
18 lines
471 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'handlebars',
|
|
'Shared/FormatHelpers'
|
|
], function (Handlebars, FormatHelpers) {
|
|
Handlebars.registerHelper('episodeNumberHelper', function () {
|
|
|
|
if (this.series.seriesType === 'daily') {
|
|
return FormatHelpers.DateHelper(this.airDate);
|
|
}
|
|
|
|
else {
|
|
return '{0}x{1}'.format(this.seasonNumber, this.paddedEpisodeNumber);
|
|
}
|
|
|
|
});
|
|
});
|