* use js instead of lua * update dependencies * add audio stream selector script for episodes * add audio stream selector script for movies * update changelog
10 lines
328 B
JavaScript
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;
|
|
}
|