Skip to content

Commit

Permalink
added isAutoGenerated field for sap subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyhalight committed Sep 8, 2024
1 parent 909e90b commit 686f9dc
Show file tree
Hide file tree
Showing 235 changed files with 324 additions and 318 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 1.2.5

- Added isAutoGenerated field for some websites subtitles
- Added Sap Learning support (learning.sap.com)

# 1.2.4
Expand Down
2 changes: 1 addition & 1 deletion dist/helpers/sap.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/helpers/sap.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class SapHelper extends BaseHelper {
return (await res.json());
}
catch (err) {
console.error("Failed to get kaltura data", err.message);
console.error("Failed to request kaltura data", err.message);
return undefined;
}
}
Expand Down Expand Up @@ -97,6 +97,7 @@ export default class SapHelper extends BaseHelper {
language: normalizeLang(caption.languageCode),
format: "vtt",
url: caption.webVttUrl,
isAutoGenerated: caption.label.includes("auto-generated"),
};
});
return {
Expand Down
3 changes: 2 additions & 1 deletion dist/typebox/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export type VideoDataSubtitle = Static<typeof VideoDataSubtitle>
export const VideoDataSubtitle = Type.Object({
language: Type.String(),
format: SubtitleFormat,
url: Type.String()
url: Type.String(),
isAutoGenerated: Type.Optional(Type.Boolean())
})

export type VideoData = Static<typeof VideoData>
Expand Down
1 change: 1 addition & 0 deletions dist/types/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export type VideoDataSubtitle = {
language: string;
format: SubtitleFormat;
url: string;
isAutoGenerated?: boolean;
};
export type VideoData = {
url: string;
Expand Down
2 changes: 1 addition & 1 deletion dist/types/client.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/utils/videoData.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

Loading

0 comments on commit 686f9dc

Please sign in to comment.