Improved understanding of the season and episode (issue: https://github.com/CinemaPress/CinemaPress/issues/29)

This commit is contained in:
zeldaroot 2021-10-23 19:31:55 +03:00
parent 4b6d231fdb
commit 2520a15835
1 changed files with 2 additions and 2 deletions

View File

@ -2331,7 +2331,7 @@ if (Math.ceil(os.freemem()) < 50) {
season = parseInt(ps.replace(/[^0-9]/g, '')) + '';
}
if (ps.replace(/[^0-9]/g, '')) {
var season_ = episode_parser(ps);
var season_ = episode_parser('TV.' + ps + '.TV');
if (
season_ &&
typeof season_.season !== 'undefined'
@ -2347,7 +2347,7 @@ if (Math.ceil(os.freemem()) < 50) {
episode = parseInt(pe.replace(/[^0-9]/g, '')) + '';
}
if (pe.replace(/[^0-9]/g, '')) {
var episode_ = episode_parser(pe);
var episode_ = episode_parser('TV.' + pe + '.TV');
if (
episode_ &&
typeof episode_.episode !== 'undefined'