Skip to content

Commit

Permalink
Update Subscription.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkdoggie committed Apr 19, 2023
1 parent feb1da8 commit a2ceb72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/Subscription.ts
Expand Up @@ -74,6 +74,13 @@ export default class Subscription {
if (channel.skip === true) return null;
return channel.addVideo(video);
}
if (
(identifier.type === "releasedBefore" && video.releaseDate < +identifier.check) ||
(identifier.type === "releasedAfter" && video.releaseDate > +identifier.check)
) {
if (channel.skip === true) return null;
return channel.addVideo(video);
}

// Description is named text on videos, kept description for ease of use for users but have to change it here...
const identifierType = identifier.type === "description" ? "text" : identifier.type;
Expand Down

0 comments on commit a2ceb72

Please sign in to comment.