add filename to stream info
This commit is contained in:
parent
3984e2b0ed
commit
0105173c6a
1 changed files with 2 additions and 1 deletions
|
|
@ -42,7 +42,8 @@ export function toStreamInfo(record) {
|
||||||
);
|
);
|
||||||
const bingeGroupParts = getBingeGroupParts(record, sameInfo, quality, torrentInfo, fileInfo);
|
const bingeGroupParts = getBingeGroupParts(record, sameInfo, quality, torrentInfo, fileInfo);
|
||||||
const bingeGroup = joinDetailParts(bingeGroupParts, "torrentio|", "|")
|
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({
|
return cleanOutputObject({
|
||||||
name: name,
|
name: name,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue