mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 23:51:44 +00:00
build
This commit is contained in:
5
dist/kissKh/stream.js
vendored
5
dist/kissKh/stream.js
vendored
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getStream = void 0;
|
||||
const types_1 = require("../types");
|
||||
const getStream = function (_a) {
|
||||
return __awaiter(this, arguments, void 0, function* ({ link: id, providerContext, }) {
|
||||
var _b, _c, _d;
|
||||
@@ -29,9 +28,7 @@ const getStream = function (_a) {
|
||||
subtitles.push({
|
||||
title: sub === null || sub === void 0 ? void 0 : sub.label,
|
||||
language: sub === null || sub === void 0 ? void 0 : sub.land,
|
||||
type: ((_a = sub === null || sub === void 0 ? void 0 : sub.src) === null || _a === void 0 ? void 0 : _a.includes(".vtt"))
|
||||
? types_1.TextTrackType.VTT
|
||||
: types_1.TextTrackType.SUBRIP,
|
||||
type: ((_a = sub === null || sub === void 0 ? void 0 : sub.src) === null || _a === void 0 ? void 0 : _a.includes(".vtt")) ? "text/vtt" : "application/x-subrip",
|
||||
uri: sub === null || sub === void 0 ? void 0 : sub.src,
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user