Skip to content

Commit 20f2c2b

Browse files
committed
fix: missing rerun stream filter
1 parent 05609da commit 20f2c2b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/background/modules/twitch.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { camelCase, castArray, chunk, find, get, snakeCase, toString } from "lodash-es";
22

3-
import { allPromises, changeCase, matchString, openUrl, t } from "~/common/helpers";
3+
import { allPromises, changeCase, isRerunStream, matchString, openUrl, t } from "~/common/helpers";
44
import { stores } from "~/common/stores";
55
import { Dictionary, HelixResponse, HelixStream, HelixUser } from "~/common/types";
66

@@ -88,7 +88,13 @@ export async function getFollowedStreams(userId: string) {
8888
userId,
8989
});
9090

91-
return followedStreams;
91+
const settings = await stores.settings.get();
92+
93+
if (settings.streams.withReruns) {
94+
return followedStreams;
95+
}
96+
97+
return followedStreams.filter((stream) => !isRerunStream(stream));
9298
}
9399

94100
export async function authorize() {

0 commit comments

Comments
 (0)