From ef6c4b7ea9b992f5c42fc5e0e28346ec5b142eca Mon Sep 17 00:00:00 2001 From: freearhey Date: Sat, 18 Jul 2020 02:02:21 +0300 Subject: [PATCH] Update CONTRIBUTING.md Moved section 'Add EPG source' up --- .github/CONTRIBUTING.md | 64 ++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index dbf77662d6..817be6d857 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -3,11 +3,11 @@ If you want to help the project you can do this in several ways. Here are some options: - [Add channel](#add-channel) +- [Add EPG source](#add-epg-source) - [Sort channels by category](#sort-channels-by-category) - [Sort channels by language](#sort-channels-by-language) - [Sort channels by country](#sort-channels-by-country) - [Remove broken broadcasts](#remove-broken-broadcasts) -- [Add EPG source](#add-epg-source) ## Add channel @@ -56,6 +56,37 @@ Also, if necessary, you can specify custom HTTP User-Agent or Referrer via `#EXT http://example.com/stream.m3u8 ``` +## 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: + +```xml +#EXTM3U x-tvg-url="http://example.com/epg.xml.gz" +``` + +The next step is to copy the corresponding `tvg-id` and `tvg-name` from EPG into the description of the channels. To do this, we need to open the EPG file in a browser or any text editor, find the list of channels. Usually it looks like this: + +```xml + + + CNN + + + NBC + + ... + +``` + +Copy `id` and `display-name` from it and paste it to the channel description, like this: + +```xml +#EXTINF:-1 tvg-id="cnn" tvg-name="CNN",CNN +http://example.com/cnn.m3u8 +``` + +And if you did everything right, then by opening a playlist in a player that supports EPG, you should see the program guide for all updated channels. In some cases, it may also be necessary to manually specify the source of EPG in the player itself. + ## Sort channels by category To help sort channels by category, you need to add the corresponding category in the description of the channel, like this: @@ -140,34 +171,3 @@ 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: - -```xml -#EXTM3U x-tvg-url="http://example.com/epg.xml.gz" -``` - -The next step is to copy the corresponding `tvg-id` and `tvg-name` from EPG into the description of the channels. To do this, we need to open the EPG file in a browser or any text editor, find the list of channels. Usually it looks like this: - -```xml - - - CNN - - - NBC - - ... - -``` - -Copy `id` and `display-name` from it and paste it to the channel description, like this: - -```xml -#EXTINF:-1 tvg-id="cnn" tvg-name="CNN",CNN -http://example.com/cnn.m3u8 -``` - -And if you did everything right, then by opening a playlist in a player that supports EPG, you should see the program guide for all updated channels. In some cases, it may also be necessary to manually specify the source of EPG in the player itself.