mirror of
https://github.com/iptv-org/iptv
synced 2026-11-07 09:44:12 -05:00
Create scripts/store/setters
This commit is contained in:
1 parent
df6af6dec0
commit
7255ab8335
13 files changed
+156
No files matched your search
@@ -0,0 +1,9 @@
|
||||
module.exports = function ({ title, resolution = {} }) {
|
||||
if (title) {
|
||||
const [_, h] = title.match(/\((\d+)P\)/i) || [null, null]
|
||||
|
||||
return h ? { height: parseInt(h), width: null } : resolution
|
||||
}
|
||||
|
||||
return resolution
|
||||
}
|
||||
Reference in new issue
Block a user