Skip to content

Commit

Permalink
Update hidive.ts
Browse files Browse the repository at this point in the history
Account for when the episode title is added, but still not released, when it's not available there's a 10 second clip.
  • Loading branch information
Denoder authored May 18, 2024
1 parent 130fa5e commit 87c7de7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hidive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export default class Hidive implements ServiceClass {
}
for (const episode of season.value.episodes) {
const datePattern = /\d{1,2}\/\d{1,2}\/\d{2,4} \d{1,2}:\d{2} UTC/;
if (datePattern.test(episode.title)) {
if (datePattern.test(episode.title) && episode.duration === 10) {
continue;
}
if (episode.title.includes(' - ')) {
Expand Down Expand Up @@ -402,7 +402,7 @@ export default class Hidive implements ServiceClass {
const episodes: Episode[] = [];
for (const episode of season.value.episodes) {
const datePattern = /\d{1,2}\/\d{1,2}\/\d{2,4} \d{1,2}:\d{2} UTC/;
if (datePattern.test(episode.title)) {
if (datePattern.test(episode.title) && episode.duration === 10) {
continue;
}
if (episode.title.includes(' - ')) {
Expand Down

0 comments on commit 87c7de7

Please sign in to comment.