Skip to content

Commit

Permalink
Fixed videos being able to match to multiple channels #173
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed May 2, 2023
1 parent 913d9b3 commit b7b2863
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/Subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default class Subscription {
post.title = removeRepeatedSentences(post.title, attachmentTitle);
}

for (const channel of this.channels) {
channelLoop: for (const channel of this.channels) {
if (!channel.identifiers) continue;
for (const identifier of channel.identifiers) {
if (typeof identifier.type !== "string")
Expand Down Expand Up @@ -141,6 +141,7 @@ export default class Subscription {
post.title = post.title.trim();
}
yield new Video(post, attachment, channel.title, dateOffset * 1000);
break channelLoop;
}
}
}
Expand Down

0 comments on commit b7b2863

Please sign in to comment.