add 3D indicator, closes #211
This commit is contained in:
parent
f5915224d3
commit
c0a74b0f26
3 changed files with 7 additions and 7 deletions
|
|
@ -16,7 +16,8 @@ export function toStreamInfo(record) {
|
||||||
|| Math.abs(record.size / record.torrent.size - 1) < SIZE_DELTA
|
|| Math.abs(record.size / record.torrent.size - 1) < SIZE_DELTA
|
||||||
|| record.title.includes(record.torrent.title);
|
|| record.title.includes(record.torrent.title);
|
||||||
const quality = getQuality(record, torrentInfo, fileInfo);
|
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(
|
const title = joinDetailParts(
|
||||||
[
|
[
|
||||||
joinDetailParts([record.torrent.title.replace(/[, ]+/g, ' ')]),
|
joinDetailParts([record.torrent.title.replace(/[, ]+/g, ' ')]),
|
||||||
|
|
@ -34,7 +35,7 @@ export function toStreamInfo(record) {
|
||||||
const name = joinDetailParts(
|
const name = joinDetailParts(
|
||||||
[
|
[
|
||||||
joinDetailParts([ADDON_NAME]),
|
joinDetailParts([ADDON_NAME]),
|
||||||
joinDetailParts([quality, joinDetailParts(hdrProfiles, '', ' | ')])
|
joinDetailParts([quality, three3Quality, joinDetailParts(hdrProfiles, '', ' | ')])
|
||||||
],
|
],
|
||||||
'',
|
'',
|
||||||
'\n'
|
'\n'
|
||||||
|
|
|
||||||
7
addon/package-lock.json
generated
7
addon/package-lock.json
generated
|
|
@ -23,7 +23,7 @@
|
||||||
"named-queue": "^2.2.1",
|
"named-queue": "^2.2.1",
|
||||||
"offcloud-api": "^1.0.2",
|
"offcloud-api": "^1.0.2",
|
||||||
"p-limit": "^5.0.0",
|
"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",
|
"pg": "^8.10.0",
|
||||||
"premiumize-api": "^1.0.3",
|
"premiumize-api": "^1.0.3",
|
||||||
"prom-client": "^12.0.0",
|
"prom-client": "^12.0.0",
|
||||||
|
|
@ -1450,9 +1450,8 @@
|
||||||
},
|
},
|
||||||
"node_modules/parse-torrent-title": {
|
"node_modules/parse-torrent-title": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"resolved": "git+ssh://git@github.com/TheBeastLT/parse-torrent-title.git#022408972c2a040f846331a912a6a8487746a654",
|
"resolved": "git+ssh://git@github.com/TheBeastLT/parse-torrent-title.git#c0017e29973d9e8608b813d1a0b86244cd098752",
|
||||||
"integrity": "sha512-Ja7OfUtTb5UKvcjHLh/va3LGZdE/CiJP6it8lxPWf/N9+4aq1hQGwXw1dnJss5dIINQo4ufyDnT2mOIP+ii/pA==",
|
"integrity": "sha512-YZwYWz7zepeO1kbGoYJh+U/fsKJDZzoBHXXDfUEDN2i0Dhb2035/y3GAKq+jVuYgXwFYEWUAxdWwezFnaDTazQ==",
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"moment": "^2.24.0"
|
"moment": "^2.24.0"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
"named-queue": "^2.2.1",
|
"named-queue": "^2.2.1",
|
||||||
"offcloud-api": "^1.0.2",
|
"offcloud-api": "^1.0.2",
|
||||||
"p-limit": "^5.0.0",
|
"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",
|
"pg": "^8.10.0",
|
||||||
"premiumize-api": "^1.0.3",
|
"premiumize-api": "^1.0.3",
|
||||||
"prom-client": "^12.0.0",
|
"prom-client": "^12.0.0",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue