mirror of
https://github.com/iptv-org/iptv
synced 2026-11-02 23:34:07 -05:00
Upgrade iptv-checker package
This commit is contained in:
1 parent
b55e8a66d9
commit
5186f587d6
8 files changed
+2104
-2084
No files matched your search
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user