M3U or Xtream Codes login: which one should you use
The same provider will give you both, and they are not two formats for the same data. One is a photograph and the other is a conversation.
Kais Chebbi8 min read

Your provider sent you an email with a username, a password and a host. The same email, or your provider's account page, will also give you a long URL that downloads a playlist file. Those are not 2 formats for the same information. They are not the same data twice, and picking the wrong one costs you features you will later assume the app does not have.
What each one actually is
An M3U export is a text file: channel names and URLs, generated at the moment you asked for it, with some attributes attached. It is a photograph of your account.
A provider login, usually called an Xtream Codes login, signs you in to the provider's API, which is one HTTP endpoint that answers questions. It is a conversation with your account, and the answers change as the account changes.
Concretely, the API is a single endpoint that takes your username, your password and an action parameter, rather than a set of resources:
(no action) handshake: account status and allowance
get_live_categories the live categories
get_live_streams every live channel
get_live_streams + category_id the channels in one category
get_vod_info + vod_id details of one film
get_series_info + series_id seasons and episodes of one series
get_short_epg + stream_id the next few programmes on one channel
The export lives on the same provider server, on a different path. So an export and an API session are 2 views of 1 account rather than 2 products, which is why "which should I use" is a real question.
The three things only the API can express
Categories as data. An export carries a group-title attribute per entry, which is a string. The API has category objects with ids, and streams reference them. On a small playlist the distinction is academic. On a real one it is not: a production source in our own sample carried thousands of titles across many categories of very different sizes. A flat list of thousands of things with a repeated string attached is a different data structure from a catalogue, and the browsing experience follows from which one you have.
The connection allowance. The API reports how many simultaneous connections your subscription permits. An export cannot say this, because a list of URLs has nowhere to put it.
This is not a decorative number. Multiview reads it and counts the budget before it assigns a tile, so asking for a 9 tile grid against a 2 connection subscription is refused in the picker rather than as 7 identical playback errors on the grid. Impossible without the API. Provider connection limits covers the accounting.
The archive. A provider can report which channels keep a rewindable window and how deep it goes. That is the entire basis of catch-up, and again there is nowhere in an M3U entry to express it.
How the client uses it matters: catch-up URLs are constructed from a channel, a start time and a duration rather than read per programme from anywhere. The provider tells us the window exists and we build the addresses ourselves. What catch-up and timeshift are covers the mechanism.
What a playlist still does better
Three things, and they are real rather than consolation.
It works when there is no API. Plenty of sources come with no provider login at all. A community-maintained list of public streams, a local broadcaster's own file, a playlist you wrote yourself: none of these has an API, and an M3U is the universal format for them.
It is inspectable. Open it in a text editor and you see exactly what you have. When something is wrong, being able to read the input is worth a great deal, and an API response you cannot see is harder to reason about.
It survives. A file you downloaded still works while the provider's server is down for maintenance, at least until the URLs inside it expire.
One data point here is easy to over-read. In one measured corpus of 308 live entries, 303 ended in .m3u8, 5 had no extension, and none ended in .ts. That corpus is curated directory-style playlists rather than provider exports, so it says something about how public playlists are written and nothing about what your provider serves. We hold no measured corpus of provider live URLs.
The thing neither of them tells you
Neither an export nor the API tells a client what transport a channel actually uses. The live channel record in our catalogue has no container field, no transport field and no MIME field. There is nowhere for that information to live, because neither source provides it.
So transport can only ever be inferred from the URL string, and the client requests .ts for live channels with no branch and no setting. A provider server is free to redirect that to an HLS manifest. Some do.
There is a Stream format control on a provider login source, and it currently does nothing. It normalizes its value, saves it and reloads it, and when we went looking for the URL builder or playback code that reads it back, we could not find one, because there is none. It is on the list rather than being a switch you are failing to find. MPEG-TS or HLS covers what the two transports actually do differently and why the distinction matters less than it sounds.
What an export actually carries, measured
The case for an export is that the attributes on each line carry most of what a catalogue needs. That is true when they are present, and how often they are present varies.
Measured across 2,203 entries in our own corpus:
entries tvg-id group-title tvg-chno
playlist_01.m3u 308 308 (100%) 283 0
playlist_02.m3u8 1,895 1,392 (73.5%) 1,895 1,355
Both files are curated directory-style playlists rather than provider exports, so read this as a demonstration of variance rather than as a prediction about your provider.
Three things in that table stand out.
Group titles are on every entry of both files. Grouping is the attribute providers get right, because it is the one that visibly breaks their own product if they omit it.
Channel numbers are absent from one file entirely and on 71.5 percent of the other. If you care about your channels appearing in broadcast order, that is a real difference between sources, and worth checking before you commit to one. Channel numbers in a playlist covers what the attribute does.
And 20 entries in the second file carry an identifier attribute that is present and empty. An empty identifier is not an identifier, and treating it as one would join those 20 channels to each other. That has to be handled explicitly rather than falling out of the code by luck.
Series and films: where the two diverge most
Live channels are where an export comes closest to adequate, because a live channel really is a name and a URL. On-demand content is where the gap opens.
A film in an export is one line: a title and a URL. A film through the API is an object with its own detail call, which is where the plot, the cast, the year, the rating and the container extension live.
That last one is not a nicety. The API reports the container extension for a film, and the client builds the URL from it:
live https://provider.example.com/live/{username}/{password}/{stream_id}.ts
film https://provider.example.com/movie/{username}/{password}/{vod_id}.{container_ext}
Live is a fixed .ts. Film is whatever the provider says it is, because films are stored files with real containers and a client that guessed would guess wrong.
Series are further along the same axis. An export flattens a series into a list of episode URLs with names that encode the season and episode if you are lucky. The API has a series object, a per-series detail call, and episodes grouped by season. A shows library that behaves like a shows library rather than a folder of files needs that structure to come from somewhere.
Combining providers, and where that work happens
Once you have more than one source, the obvious wish is one channel list rather than two, with the same channel from two providers appearing once and failing over between them.
That is supported, and the rule behind it explains the performance characteristics. The server stores the definition of an aggregated source and nothing else: resolution and materialisation always run on the device.
So the merging, the matching and the index all happen on the machine you are watching on. That keeps the service unaware of what is in your playlist, which is the same rule that keeps it from parsing your M3U in the first place. The cost is that the work is done once per device rather than once per account, which is part of why a first launch after adding a large source is slower than every launch after it.
Cross-source playback failover ships on top of that. A channel that exists in two sources can move to the other one when the first fails.
Which to choose
If your provider gave you a host, a username and a password, use those. Add them as a provider login. You get the catalogue with real categories, the connection count that makes multiview honest, and catch-up where the provider offers it. The export gives you none of those and no compensating advantage.
If you have a playlist and nothing else, use the playlist. That is what it is for, and most of the app works identically.
If you have both and you are debugging something, the export is a useful diagnostic even when the API is what you run on. It is the one artefact you can read.
The one thing not to do is add both as separate sources and expect the app to work out that they are the same account. They are 2 sources, each consuming connections, and the connection accounting will be right about a situation you did not intend.
For getting either onto a console, adding an M3U playlist for Xbox and signing in with a provider account on Xbox cover the same decision from the setup side. For what the attributes inside an export mean, M3U+ versus plain M3U.



