Merge branch 'dev'

This commit is contained in:
freearhey 2019-07-07 04:27:28 +03:00
commit b35e4bc206
3 changed files with 18 additions and 1 deletions

View File

@ -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.

View File

@ -22,6 +22,14 @@ function writeToLog(test, country, msg, url) {
console.log(line)
}
function skipPlaylist(filename) {
let test_country = process.env.npm_config_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) {