iptv/scripts/store/setters/is_broken.js
2021-12-12 07:12:06 +03:00

8 lines
145 B
JavaScript

module.exports = function ({ is_broken = false, status }) {
if (status) {
return status.level > 3 ? true : false
}
return is_broken
}