add filename to stream info

This commit is contained in:
TheBeastLT 2024-05-26 18:41:00 +03:00
parent 3984e2b0ed
commit 0105173c6a

View file

@ -42,7 +42,8 @@ export function toStreamInfo(record) {
);
const bingeGroupParts = getBingeGroupParts(record, sameInfo, quality, torrentInfo, fileInfo);
const bingeGroup = joinDetailParts(bingeGroupParts, "torrentio|", "|")
const behaviorHints = bingeGroup ? { bingeGroup } : undefined;
const filename = Number.isInteger(record.fileIndex) ? record.title.split('/').pop() : undefined;
const behaviorHints = bingeGroup || filename ? cleanOutputObject({ bingeGroup, filename }) : undefined;
return cleanOutputObject({
name: name,