#EXTM3U
#EXTINF:-1 tvg-id="trt1.tr" tvg-name="TRT 1 HD" tvg-logo="https://stream.example.com:8080/images/trt1.png" group-title="Ulusal",TRT 1 HD
https://stream.example.com:8080/live/demo_user/demo_pass/101.m3u8
#EXTINF:-1 tvg-id="atv.tr" tvg-name="ATV HD" tvg-logo="https://stream.example.com:8080/images/atv.png" group-title="Ulusal",ATV HD
https://stream.example.com:8080/live/demo_user/demo_pass/102.m3u8
Technical Specification & Standards
M3U Playlist & #EXTINF Tag Specification
Learn how Mayk IP TV parses M3U and M3U Plus playlists, maps channel metadata, and automatically classifies live streams, movies, and series.
File Header and Text Encoding
An M3U playlist file must begin with the #EXTM3U directive on the very first line. Files must be encoded in UTF-8 with either LF or CRLF line endings. All stream targets must be absolute HTTP or HTTPS URLs.
Tier 1 Standard #EXTINF Attributes
Stream metadata is defined on the #EXTINF line using double-quoted key-value pairs. tvg-id provides EPG matching, tvg-name provides fallback channel naming, tvg-logo supplies the icon URL, and group-title categorizes the item.
Automatic Media Classification
Mayk IP TV classifies URLs containing /movie/ as on-demand movies, and URLs containing /series/ with S01E01 or S01.E01 patterns as series episodes. All other playable streams default to Live TV.
Tier 2 Extended Attributes
Custom playlist generators can provide media-type="live|movie|series", series-name, season, and episode attributes to override URL-based detection without depending on specific path conventions.
Catalog Size and Performance Tips
Large uncompressed playlists exceeding 40 MB strain Smart TV memory. Server operators should enable HTTP gzip compression or offer Xtream API access for fast category-by-category loading.
Tier 1: Standard #EXTINF Tags
| Field / Tag | Tier | Type | Example Value | Description |
|---|---|---|---|---|
#EXTM3U | Standard (Tier 1) · Required | Directive (Header) | #EXTM3U | Playlist file header; must be the very first line of any valid M3U file. |
#EXTINF | Standard (Tier 1) · Required | Directive (Metadata) | #EXTINF:-1 tvg-id="trt1" tvg-name="TRT 1",TRT 1 HD | Track info directive specifying stream duration and metadata attributes. |
tvg-id | Standard (Tier 1) · Optional | String | trt1.tr | EPG channel identifier used to match program schedule listings. |
tvg-name | Standard (Tier 1) · Optional | String | TRT 1 HD | Channel display name used as a fallback for electronic guide matching. |
tvg-logo | Standard (Tier 1) · Optional | URL (http/https) | https://stream.example.com:8080/images/trt1.png | Direct HTTP or HTTPS URL to the channel icon or media cover image. |
group-title | Standard (Tier 1) · Optional | String | National | Category or genre name used for organizing channels into groups. |
#EXTGRP: | Standard (Tier 1) · Optional | Directive | #EXTGRP:National | Alternative group directive placed immediately following the EXTINF line. |
Tier 2: Mayk IP TV Extended Tags
| Field / Tag | Tier | Type | Example Value | Description |
|---|---|---|---|---|
media-type | Extended (Tier 2) · Optional | Enum ("live" | "movie" | "series") | media-type="series" | Explicit media type override: 'live', 'movie', or 'series'. |
series-id | Extended (Tier 2) · Optional | String / Integer | series-id="show-42" | Unique series identifier grouping multiple episode streams together. |
series-name | Extended (Tier 2) · Optional | String | series-name="Example Series" | Canonical TV show name for aggregating seasons and episode tracks. |
season | Extended (Tier 2) · Optional | Integer | season="1" | Season number for television series episodes (integer). |
episode | Extended (Tier 2) · Optional | Integer | episode="4" | Episode number within the specified season (integer). |
is_adult | Extended (Tier 2) · Optional | Integer ("0" | "1") | is_adult="1" | Parental lock indicator flag: '1' marks adult or restricted content. |
age_rating | Extended (Tier 2) · Optional | String | age_rating="18+" | Minimum age rating badge (e.g. '18+') for parental control filters. |
Content Classification Rules
| Type | # | Example Value |
|---|---|---|
| Live TV | #3 | http(s)://... | media-type="live" |
| Movie (VOD) | #2 | /movie/... | media-type="movie" |
| Series Episode | #1 | /series/... + S01E01 / S01.E01 | media-type="series" |
Sample Templates
#EXTM3U
#EXTINF:-1 tvg-logo="https://stream.example.com:8080/images/movie202.png" group-title="Sinema",Example Movie (2026)
https://stream.example.com:8080/movie/demo_user/demo_pass/202.mp4
#EXTINF:-1 group-title="Dizi",Example Series - S01E01 - Pilot
https://stream.example.com:8080/series/demo_user/demo_pass/30301.mp4
#EXTINF:-1 media-type="series" series-name="Custom Show" season="1" episode="2" group-title="Dizi",Custom Show - S01E02
https://stream.example.com:8080/series/demo_user/demo_pass/30302.mp4
Interactive Format Checker
Paste your M3U snippet or Xtream JSON payload below to verify compatibility with Mayk IP TV parsing rules.
M3U Format Compatibility Checklist
- Ensure #EXTM3U is the first line of the file and encoding is UTF-8.
- Enclose all attribute values in double quotes and position the comma correctly.
- Structure movie URLs with /movie/ and series with /series/ and SxxEyy.
- Use valid, absolute HTTP or HTTPS URLs for all channel logos.
- Avoid decorative separator lines and rely on group-title attributes instead.