This commit is contained in:
himanshu8443
2025-06-18 13:39:45 +05:30
parent a70757312e
commit c42d435bcc
10 changed files with 56 additions and 86 deletions

View File

@@ -11,7 +11,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStream = void 0;
exports.getRiveStream = getRiveStream;
const types_1 = require("../types");
const getStream = (_a) => __awaiter(void 0, [_a], void 0, function* ({ link: id, type, providerContext, }) {
try {
const streams = [];
@@ -79,8 +78,8 @@ function getRiveStream(tmdId, episode, season, type, Streams, providerContext) {
uri: sub === null || sub === void 0 ? void 0 : sub.file,
title: (sub === null || sub === void 0 ? void 0 : sub.label) || "Undefined",
type: ((_b = sub === null || sub === void 0 ? void 0 : sub.file) === null || _b === void 0 ? void 0 : _b.endsWith(".vtt"))
? types_1.TextTrackType.VTT
: types_1.TextTrackType.SUBRIP,
? "text/vtt"
: "application/x-subrip",
});
});
}