mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-04-21 08:21:56 +00:00
Update hidive.ts
Account for when the episode title is added, but still not released, when it's not available there's a 10 second clip.
This commit is contained in:
parent
130fa5ee11
commit
87c7de7417
1 changed files with 2 additions and 2 deletions
|
|
@ -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(' - ')) {
|
||||
|
|
@ -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(' - ')) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue