Delete extra setters

This commit is contained in:
Aleksandr Statciuk 2022-02-13 12:05:56 +03:00
parent 8238e802d8
commit d3f6b824bd
5 changed files with 0 additions and 34 deletions

View File

@ -1,3 +0,0 @@
module.exports = function ({ channel_id }) {
return channel_id || null
}

View File

@ -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(' ')
}

View File

@ -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')

View File

@ -1,7 +0,0 @@
module.exports = function ({ is_broken = false, status }) {
if (status) {
return status.level > 3 ? true : false
}
return is_broken
}

View File

@ -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
}