Delete extra setters
This commit is contained in:
parent
8238e802d8
commit
d3f6b824bd
|
@ -1,3 +0,0 @@
|
|||
module.exports = function ({ channel_id }) {
|
||||
return channel_id || null
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
module.exports = function ({ title }) {
|
||||
return title
|
||||
.trim()
|
||||
.split(' ')
|
||||
.map(s => s.trim())
|
||||
.filter(s => {
|
||||
return !/\[|\]/i.test(s) && !/\((\d+)P\)/i.test(s)
|
||||
})
|
||||
.join(' ')
|
||||
}
|
|
@ -1,8 +1,3 @@
|
|||
exports.is_broken = require('./is_broken')
|
||||
exports.resolution = require('./resolution')
|
||||
exports.status = require('./status')
|
||||
exports.url = require('./url')
|
||||
exports.channel_name = require('./channel_name')
|
||||
exports.channel_id = require('./channel_id')
|
||||
exports.http_referrer = require('./http_referrer')
|
||||
exports.user_agent = require('./user_agent')
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
module.exports = function ({ is_broken = false, status }) {
|
||||
if (status) {
|
||||
return status.level > 3 ? true : false
|
||||
}
|
||||
|
||||
return is_broken
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
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
|
||||
}
|
Loading…
Reference in New Issue