Skip to content

Commit

Permalink
add filename to stream info
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBeastLT committed May 26, 2024
1 parent 3984e2b commit 0105173
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon/lib/streamInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

1 comment on commit 0105173

@TaBuK10
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Please sign in to comment.