From bcf9d294c41787cf64fa6edbb2ed63f2c766c6fc Mon Sep 17 00:00:00 2001
From: Pas <74743263+Pasithea0@users.noreply.github.com>
Date: Tue, 26 Aug 2025 22:43:55 -0600
Subject: [PATCH] add external caption source badges
---
.../player/atoms/settings/CaptionsView.tsx | 14 ++++++++++++++
src/utils/externalSubtitles.ts | 1 +
2 files changed, 15 insertions(+)
diff --git a/src/components/player/atoms/settings/CaptionsView.tsx b/src/components/player/atoms/settings/CaptionsView.tsx
index 2c3fcbeb..f7cad384 100644
--- a/src/components/player/atoms/settings/CaptionsView.tsx
+++ b/src/components/player/atoms/settings/CaptionsView.tsx
@@ -113,6 +113,20 @@ export function CaptionOption(props: {
{props.subtitleType.toUpperCase()}
)}
+ {props.subtitleSource && (
+
+ {props.subtitleSource.toUpperCase()}
+
+ )}
{props.isHearingImpaired && (
)}
diff --git a/src/utils/externalSubtitles.ts b/src/utils/externalSubtitles.ts
index 9a83498c..855304b3 100644
--- a/src/utils/externalSubtitles.ts
+++ b/src/utils/externalSubtitles.ts
@@ -194,6 +194,7 @@ export async function scrapeOpenSubtitlesCaptions(
type: caption.SubFormat || "srt",
needsProxy: false,
opensubtitles: true,
+ source: "opensubs", // shortened becuase used on CaptionView for badge
});
}