Upgrade iptv-checker package

This commit is contained in:
Aleksandr Statciuk 2022-06-08 20:45:03 +03:00
parent d95790f0d1
commit 48614e52f6
8 changed files with 2104 additions and 2084 deletions

View file

@ -142,10 +142,12 @@ function parseMediaInfo(streams) {
function parseStatus(error) {
if (!error) return 'online'
switch (error) {
case 'Operation timed out':
switch (error.code) {
case 'HTTP_REQUEST_TIMEOUT':
case 'FFMPEG_PROCESS_TIMEOUT':
return 'timeout'
case 'Server returned 403 Forbidden (access denied)':
case 'HTTP_FORBIDDEN':
case 'HTTP_UNAVAILABLE_FOR_LEGAL_REASONS':
return 'blocked'
default:
return 'error'