Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/platforms/kick/kick.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ export const KICK_DEFAULT_SETTINGS: KickSettings = {
realVideoTimeEnabled: true,
realVideoTimeFormat12h: false,
};

export const KICK_LIVE_VIDEO_DURATION = 1073741824;
3 changes: 1 addition & 2 deletions src/platforms/kick/kick.utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { KICK_LIVE_VIDEO_DURATION } from "$kick/kick.constants.ts";
import type ReactUtils from "$shared/utils/react.utils.ts";
import type { KickChatMessageData } from "$types/platforms/kick/kick.events.types.ts";
import type { IsoDateProps, StreamStatusProps, VideoProgressProps } from "$types/platforms/kick/kick.utils.types.ts";
Expand Down Expand Up @@ -110,6 +109,6 @@ export default class KickUtils {
}

isLiveVideo(video: HTMLVideoElement): boolean {
return video.duration === KICK_LIVE_VIDEO_DURATION;
return video.duration === Number.POSITIVE_INFINITY;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default class StreamLatencyModule extends KickModule {
return;
}
this.setLive(true);
if (video.paused) return;
this.latencyCounter.value = this.computeLatency(video);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ export default class PinStreamerModule extends TwitchModule {
private createPin(channelWrapper: Element) {
if (
channelWrapper.querySelector(".pin-streamer-button") ||
channelWrapper.querySelector(
'a[data-test-selector="similarity-channel"]',
) ||
channelWrapper.querySelector('a[data-test-selector="similarity-channel"]') ||
channelWrapper.querySelector(".side-nav-card__link--promoted-followed")
)
return;
Expand Down