Files
ersatztv/ErsatzTV/Resources/Scripts/_threePartEpisodes.js
T
Jason DoveandGitHub c9bd94d9f8 use javascript instead of lua for external scripts; add audio stream selector scripts (#1005)
* use js instead of lua

* update dependencies

* add audio stream selector script for episodes

* add audio stream selector script for movies

* update changelog
2022-10-28 17:05:07 -05:00

10 lines
328 B
JavaScript

// the number of parts that each un-split file typically contains
// noinspection ES6ConvertVarToLetConst
var numParts = 3;
// return the part number for the given season number and episode number
function partNumberForEpisode(seasonNumber, episodeNumber) {
const mod = episodeNumber % 3;
return mod === 0 ? 3 : mod;
}