Merge pull request #590 from iptv-org/update-contribution-guide

Update CONTRIBUTING.md
This commit is contained in:
boomski 2019-10-31 21:30:13 +01:00 committed by GitHub
commit 97df22f113
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,18 +32,19 @@ http://example.com/stream.m3u8
But of course, the more channel information you add, the better. Here's an example of what a full version of a link in a playlist might look like:
```xml
#EXTINF:-1 tvg-id="exampletv.us" tvg-name="Example TV" tvg-logo="http://example.com/channel-logo.png" group-title="News",Example TV
#EXTINF:-1 tvg-id="exampletv.us" tvg-name="Example TV" tvg-language="English" tvg-logo="http://example.com/channel-logo.png" group-title="News",Example TV
http://example.com/stream.m3u8
```
More details about each attribute:
| Attribute | Description
| ----------- | ---
| tvg-id | Channel ID that is used to load EPG (optional)
| tvg-name | Channel name that is also sometimes used to load EPG (optional)
| tvg-logo | The logo of the channel that will be displayed in the player if it supports it (optional)
| group-title | The category to which the channel belongs. These categories are also displayed in some players, and grouped playlists are also generated based on them. The list of currently supported categories can be found below (optional)
| Attribute | Description
| ------------ | ---
| tvg-id | Channel ID that is used to load EPG (optional)
| tvg-name | Channel name that is also sometimes used to load EPG (optional)
| tvg-language | Channel language. The name of the language must conform to the standard [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (optional)
| tvg-logo | The logo of the channel that will be displayed in the player if it supports it (optional)
| group-title | The category to which the channel belongs. These categories are also displayed in some players, and grouped playlists are also generated based on them. The list of currently supported categories can be found [here](https://github.com/iptv-org/iptv#playlists-by-category) (optional)
## Sort channels by category