From c9e0d95fd95a1409db804ec7d63fc8e14e286724 Mon Sep 17 00:00:00 2001 From: Max Nikolenko Date: Thu, 9 May 2019 20:04:18 +0300 Subject: [PATCH 1/4] Capability to test only a specific country code via TEST_COUNTRY=xx enviroment variable --- .gitignore | 3 ++- test/index.js | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a4e41da43..950a3102e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ -error.log \ No newline at end of file +error.log +*~ diff --git a/test/index.js b/test/index.js index 85a09b5ff..7f6e86127 100644 --- a/test/index.js +++ b/test/index.js @@ -22,6 +22,14 @@ function writeToLog(test, country, msg, url) { console.log(line) } +function skipPlaylist(filename) { + let test_country = process.env.TEST_COUNTRY + if (test_country && filename !== 'channels/' + test_country + '.m3u') { + return true; + } + return false; +} + function loadPlaylist(filename) { return M3U.parse(fs.readFileSync(path.resolve(__dirname) + "/../" + filename, { encoding: "utf8" })) } @@ -35,6 +43,10 @@ async function testAllLinksIsWorking() { for(let country of countries) { + if (skipPlaylist(country.file)) { + continue; + } + const playlist = loadPlaylist(country.file) for(let channel of playlist) { From c054eb2ff9a4c64378d237c5e00ae98a7823b33b Mon Sep 17 00:00:00 2001 From: Tiago Martinho Date: Fri, 10 May 2019 10:16:01 +0900 Subject: [PATCH 2/4] Add iOS Information --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 1a7d588c0..ba00c961c 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,11 @@ then just press the 'Open' button To watch IPTV on your Android device you can use any player with support M3U-playlists and this playlist: [https://raw.githubusercontent.com/freearhey/iptv/master/index.all.m3u](https://raw.githubusercontent.com/freearhey/iptv/master/index.all.m3u). Or select a playlist for a specific country from the list below. +### iOS + +To watch IPTV on your iOS device you can use [Movie Stream - M3U IP TV Films](https://itunes.apple.com/us/app/movie-stream-ip-tv-films/id1450912244?mt=8) or any other IPTV player with support M3U-playlists and this playlist +[All Sources](https://raw.githubusercontent.com/freearhey/iptv/master/index.all.m3u). Or select a playlist for a specific country from the list below. + ### Plex App In order to watch IPTV through Plex App, you can use the [Cigaras/IPTV.bundle](https://github.com/Cigaras/IPTV.bundle) plugin. From 09bba33e98f18e925d5150df1666e4a80ea7ece2 Mon Sep 17 00:00:00 2001 From: freearhey Date: Sun, 7 Jul 2019 04:24:58 +0300 Subject: [PATCH 3/4] Removed uncommented change --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index 950a3102e..03a38e5ab 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ node_modules/ error.log -*~ From 3ed93ac4819fd7dc3ee7a8baa4f77c449dc4d03c Mon Sep 17 00:00:00 2001 From: freearhey Date: Sun, 7 Jul 2019 04:26:05 +0300 Subject: [PATCH 4/4] Replace env argument with npm_config_argument --- test/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.js b/test/index.js index 7f6e86127..3adaf81c8 100644 --- a/test/index.js +++ b/test/index.js @@ -23,7 +23,7 @@ function writeToLog(test, country, msg, url) { } function skipPlaylist(filename) { - let test_country = process.env.TEST_COUNTRY + let test_country = process.env.npm_config_country if (test_country && filename !== 'channels/' + test_country + '.m3u') { return true; }