Skip to content

Commit

Permalink
Improved understanding of the season and episode (issue: CinemaPress#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeldaroot committed Oct 23, 2021
1 parent 4b6d231 commit 2520a15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/CP_movies.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit 2520a15

Please sign in to comment.