Skip to content

Commit

Permalink
add 3D indicator, closes #211
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBeastLT committed May 19, 2024
1 parent f591522 commit c0a74b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 3 additions & 2 deletions addon/lib/streamInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export function toStreamInfo(record) {
|| Math.abs(record.size / record.torrent.size - 1) < SIZE_DELTA
|| record.title.includes(record.torrent.title);
const quality = getQuality(record, torrentInfo, fileInfo);
const hdrProfiles = torrentInfo.hdr || fileInfo.hdr || []
const three3Quality = fileInfo.threeD || torrentInfo.threeD;
const hdrProfiles = torrentInfo.hdr || fileInfo.hdr || [];
const title = joinDetailParts(
[
joinDetailParts([record.torrent.title.replace(/[, ]+/g, ' ')]),
Expand All @@ -34,7 +35,7 @@ export function toStreamInfo(record) {
const name = joinDetailParts(
[
joinDetailParts([ADDON_NAME]),
joinDetailParts([quality, joinDetailParts(hdrProfiles, '', ' | ')])
joinDetailParts([quality, three3Quality, joinDetailParts(hdrProfiles, '', ' | ')])
],
'',
'\n'
Expand Down
7 changes: 3 additions & 4 deletions addon/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"named-queue": "^2.2.1",
"offcloud-api": "^1.0.2",
"p-limit": "^5.0.0",
"parse-torrent-title": "git://github.com/TheBeastLT/parse-torrent-title.git#022408972c2a040f846331a912a6a8487746a654",
"parse-torrent-title": "git://github.com/TheBeastLT/parse-torrent-title.git#c0017e29973d9e8608b813d1a0b86244cd098752",
"pg": "^8.10.0",
"premiumize-api": "^1.0.3",
"prom-client": "^12.0.0",
Expand Down

0 comments on commit c0a74b0

Please sign in to comment.