Merge branch 'dev'
This commit is contained in:
commit
b35e4bc206
|
@ -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.
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue