Skip to content

Commit

Permalink
Bugfix: Fixes matching on NRK when season number is 10 or higher. (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMamen authored Feb 19, 2024
1 parent cd8fbed commit 55290b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/nrk/NrkApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class _NrkApi extends ServiceApi {
* 23.10.2020 (airdate is the only information)
*/
const regExp =
/(?<fullStr>S(?<seasonStr>[0-9]) [/] (?<episodeStr>[0-9]+)[.] (?<partialEpisodeTitle>.+))/g; //This captures Season number, episode number, and episode title.
/(?<fullStr>S(?<seasonStr>[0-9]+) [/] (?<episodeStr>[0-9]+)[.] (?<partialEpisodeTitle>.+))/g; //This captures Season number, episode number, and episode title.
const [matches] = [...titleInfo.subtitle.matchAll(regExp)];
let episodeTitle;
let season = 0;
Expand Down

0 comments on commit 55290b4

Please sign in to comment.