Improved understanding of the season and episode (issue: https://github.com/CinemaPress/CinemaPress/issues/29)
This commit is contained in:
parent
4b6d231fdb
commit
2520a15835
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue