mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 10:00:05 -04:00
Upgrade iptv-checker package
This commit is contained in:
parent
d95790f0d1
commit
48614e52f6
8 changed files with 2104 additions and 2084 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue