From 788b3adf9c50f09723e414b6be6d551ee199b6fe Mon Sep 17 00:00:00 2001 From: freearhey Date: Sun, 15 Sep 2019 17:13:47 +0300 Subject: [PATCH 1/2] Update README.md Moved Testing section to Contribution Guide --- README.md | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/README.md b/README.md index 1c160592d2..4da3370501 100644 --- a/README.md +++ b/README.md @@ -249,27 +249,6 @@ Or select one of the playlists from the list below. | International | 408 | `https://raw.githubusercontent.com/freearhey/iptv/master/channels/int.m3u`| -## Testing - -```sh -npm test -``` - -Be prepared test may take a long time. Or if you want to test the playlist of a particular country, you can specify the [ISO 3166 code](https://en.wikipedia.org/wiki/ISO_3166) of the country as an argument when running the test. - -```sh -npm test --country=uk -``` - -Another option to exclude specific playlists from tests: - -```sh -npm test --exclude=cn,int -``` - -After the test is over all broken links will be saved to the file `error.log`. - - ## Contribution Please make sure to read the [Contributing Guide](https://github.com/freearhey/iptv/blob/master/.github/CONTRIBUTING.md) before making a pull request. From 791536e879a254cdc2773dd18cec84328bba6bbb Mon Sep 17 00:00:00 2001 From: freearhey Date: Sun, 15 Sep 2019 17:14:11 +0300 Subject: [PATCH 2/2] Update CONTRIBUTING.md Added `Remove broken broadcasts` section --- .github/CONTRIBUTING.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 6a46cf85b2..ea93936609 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -5,6 +5,7 @@ If you want to help the project you can do this in several ways. Here are some o - [Add channel](#add-channel) - [Sort channels by category](#sort-channels-by-category) - [Sort channels by country](#sort-channels-by-country) +- [Remove broken broadcasts](#remove-broken-broadcasts) - [Add EPG source](#add-epg-source) ## Add channel @@ -64,6 +65,44 @@ You can help sorting channels by country by moving the link to the channel with It should also be noted that the channels are not sorted by country of stream source, but by the country in which they are broadcast. If the same channel is broadcast in several countries at once, you can move it to the `channels/int.m3u`. +## Remove broken broadcasts + +To make sure that the broadcast does not work, just start it in one of the supported players (preferably in the VLC player) and wait at least a minute. The fact is that some broadcasts are started with a delay due to the location of the source. + +If it turns out that the broadcast still does not start, this means that it can be safely deleted from the playlist. At the same time, you should delete not only the link to the channel but also the description for it. + +It would also be nice if you indicated in the description of the PR the reason for the removal of the channel, so that other members of the community could also double-check the channel for their part. + +It is also possible to automatically find broken broadcasts. To do this, you first need to install [Node.js](https://nodejs.org/en/) on your computer. + +Copy this repository to your computer. Then open it in the console line and install all the dependencies from it by running this command: + +```sh +npm install +``` + +And as soon as everything is installed, you can run tests, like this: + +```sh +npm test +``` + +And be prepared test may take a long time. + +If you want to test the playlist of a particular country, you can specify the [ISO 3166 code](https://en.wikipedia.org/wiki/ISO_3166) of the country as an argument when running the test. + +```sh +npm test --country=uk +``` + +Another option to exclude specific playlists from tests: + +```sh +npm test --exclude=cn,int +``` + +After the test is over all broken links will be saved to the file `error.log`. + ## Add EPG source To add a new source of EPG (Electronic Program Guide), you must add the `x-tvg-url` attribute to the beginning of the corresponding playlist, like this: