Samsung TV Plus for Channels

Any idea how to resolve this error on most of the channels from this container? I started getting this about a week ago before I updated my container and I'm still getting it now that I have updated.

"message":"failed to generate manifest: Unable to obtain template playlist.

This is resulting in this error within Channels:

Failed: could not start stream on channels=[9486]: M3U: Could not fetch playlist: GET: 504 Gateway Time-out

Mine is working.

What's the date of the docker image you're using?
Portainer

sha256:ea2b7bacd5e8d1f3fc395e2502c742... matthuisman/samsung-tvplus-for-channels:latest  141.9 MB  2024-08-31 01:48:53

Docker command line

# docker images
REPOSITORY                               TAG     IMAGE ID      CREATED     SIZE
matthuisman/samsung-tvplus-for-channels  latest  ea2b7bacd5e8  2 days ago  142MB

Any container errors immediately before or after what you posted?

"message":"failed to generate manifest: Unable to obtain template playlist.

And what does your source
Capture

settings look like

Now that I'm digging into it, this seems to be user error. The failing channel is CourtTV, which seems to have disappeared from the advertised channel lineup. If that isn't the case, I can still post the errors I'm getting.

how does "most of the channels" suddenly become a single channel?

My apologies. I forgot to mention that I initially had issues with all but two channels. After I updated the container, I forgot to change the links in the source, so everything I tried failed. Now that I've updated the source settings, it's down to just this one (which appears to have been removed from the lineup).

Again, I apologize for not mentioning all of this earlier.

1 Like

I was about to ask the same thing, but you beat me to it.

Now I know which channel, it's still in my lineup and guide, but I do get a 504 Gateway Time-out in the Channels log when trying to watch it.

does the website play it?

I don't see it in the channel lineup on the website (at least, not on the US site)

Anyone else getting a 404 error for the EPG in the logs?

This is cool - thanks for making it!

I notice the season and episode numbers aren't available for shows in the guide. Is this just a limitation of their service, or is there something clever that could be done to fill in that data?

samsung provide pretty limited data

1 Like

Read somewhere that Samsung TV Pluss added a few more channels. Which ones, not sure.

How often does this docker update for when Samsung adds/removes channels?

I try to keep track of the lineup changes and report them in this thread:

the docker image pulls currently 367 channels. Hasn't changed for me in a while.
There is a new MLP channel. See it in the app on my tv, channel 3653, but i do not see it on the Samsung Tv Plus website where u also can stream their channels.

The Pluto docker, and no cords urls, they add/remove channels every few days it seems.

pretty sure it scrapes every few hours and only those specific regions that have access to their android app.

If you dont see the channels, that will mean they are Widevine channels so ignored as they wont play in channels

1 Like
Not that many lineup changes in the last 4 months
2024-05-25 New source with 341 channels: "SamsungTVPlus"
2024-05-29 SamsungTVPlus: 346 channels (+5) (https://i.mjh.nz/SamsungTVPlus/us.m3u8)
           + 10342 : American Crimes
           + 10343 : NBC Sports
           + 10344 : Formula 1 Channel
           + 10345 : Blippi
           + 10346 : BBC Kids
2024-05-30 SamsungTVPlus: 345 channels (-1) (https://i.mjh.nz/SamsungTVPlus/us.m3u8)
           - 10344 : Formula 1 Channel
2024-06-12 SamsungTVPlus: 348 channels (+3) (https://i.mjh.nz/SamsungTVPlus/us.m3u8)
           ! 10034 : Movies on the Rotten Tomatoes Channel (was The Rotten Tomatoes Channel)
           - 10039 : The Preview Channel
           + 10347 : Animation+
           + 10348 : Barbie and Friends
           + 10349 : Miramax Channel
           + 10350 : National Lampoon
2024-06-26 SamsungTVPlus: 356 channels (+8) (https://i.mjh.nz/SamsungTVPlus/us.m3u8)
           + 10351 : Storm Vibes
           + 10352 : MLB Channel
           + 10353 : Island Vibes
           + 10354 : Waterfall Vibes
           + 10355 : Rainy Day Vibes
           + 10356 : Beach Bonfire Vibes
           + 10357 : Lakeside Bonfire Vibes
           + 10358 : Summer Vibes
2024-07-10 SamsungTVPlus: 358 channels (+2) (https://i.mjh.nz/SamsungTVPlus/us.m3u8)
           + 13357 : Unbeaten Sports Channel
           + 13358 : Hallmark en Español
2024-07-24 SamsungTVPlus: 360 channels (+2) (https://i.mjh.nz/SamsungTVPlus/us.m3u8)
           + 13359 : Universe: Mysteries Solved
           + 13360 : Campfire Vibes
2024-07-31 SamsungTVPlus: 356 channels (-4) (https://i.mjh.nz/SamsungTVPlus/us.m3u8)
           - 10031 : CINEVAULT
           - 10032 : CINEVAULT: Classics
           - 10043 : CINEVAULT: Westerns
           - 10144 : People Are Awesome
2024-08-07 SamsungTVPlus: 355 channels (-1) (https://i.mjh.nz/SamsungTVPlus/us.m3u8)
           - 10037 : Chicken Soup for the Soul
2024-08-21 SamsungTVPlus: 356 channels (+1) (http://192.168.1.3:8182/playlist.m3u)
           + 13361 : Conan O'Brien TV
2024-08-27 SamsungTVPlus: 362 channels (+6) (http://192.168.1.3:8182/playlist.m3u)
           + 13362 : Biography: The Icons
           + 13363 : FOX Sports
           + 13364 : Historia
           + 13365 : beIN Sports XTRA ñ
           + 13366 : Novelas Turcas
           + 13367 : ¿Qué Culpa Tiene Fatmagül?
2024-08-30 SamsungTVPlus: 361 channels (-1) (http://192.168.1.3:8182/playlist.m3u8)
           - 13361 : Conan O'Brien TV
2024-09-03 SamsungTVPlus: 361 channels (=) (http://192.168.1.3:8182/playlist.m3u8)
           ! 10046 : Western Bound (was Cowboy Way)
2024-09-10 SamsungTVPlus: 368 channels (+7) (http://192.168.1.3:8182/playlist.m3u8)
           + 13368 : Ancient Aliens
           + 13369 : The Jim Rome Show
           + 13370 : WWE Superstar Central
           + 13371 : Hot Wheels Action
           + 13372 : Curiosity Motores
           + 13373 : Curiosity Animales
           + 13374 : Curiosity Español
2024-09-11 SamsungTVPlus: 367 channels (-1) (http://192.168.1.3:8182/playlist.m3u8)
           - 13368 : Ancient Aliens
1 Like

See five posts in a row, starting with this one Samsung TV Plus for Channels - #11 by Jean0987654321

You could map gracenote guide data to the channels, if you know what it is.

I did that for just one channel and found the included samsung guide data was better than the gracenote guide data for some shows and gracenote was better than samsung for other shows on the same channel.
Example: Samsung guide data at top, Gracenote at the bottom. Same channel, just different EPG.


Example-2: Samsung guide data at top, Gracenote at the bottom. Same channel, just different EPG.

Matt does have a two playlist setup available for Frndly TV, where some channels have gracenote guide data and the others only have Frndly TV guide data. If that could be implemented in the Samsung docker, we could provide the gracenote guide mapping in a simple comma delimited (or error prone when editing, json) file.

I fully understand if he doesn't want to deal with the support issues if implemented.
As we all know, there are (cut&paste) users that (TL;DR) expect someone to (be their unpaid consultant) hold their hand and provide them with a step-by-step tutorial, preferably in a YouTube Video.

2 Likes

Hey thanks for this - it inspired me to do a bit of research, and it clicked once I learned what Gracenote data actually is :slight_smile:, and realized that that guide data is available via Channels (and thus the potential mapping solutions).

Just FYI, i checked via the native Samsung TV UI (the light blue one that also is where u access OTA channels) and that UI has the ability to add/remove channels into Favorite groups.

The TV reports 412 Samsung TV Plus channels.

This Docker has 367 channels. (Default region, US)

So, that leaves 45 channels that are not available/compatible.

(Assuming is USA region that my tv pulls, cause, that is where i am)

Channels DVR times out after 12s trying to fetch the playlist.m3u8 from the Samsung container

2024/10/26 15:15:13.825703 [ERR] Failed to request m3u for SamsungTVPlus: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

To me, this says Channels DVR made the request at 2024/10/26 15:15:01
But the Samsung container shows the request at 2024/10/26 15:15:21, which is 20 seconds after Channels DVR made the request.
So 8 seconds after Channels DVR times out and disconnects, we get a Broken pipe exception.

Samsung container log
2024-10-26T22:15:21.774874689Z Including channels from regions: ['us']
2024-10-26T22:15:21.775205252Z 192.168.144.1 - - [26/Oct/2024 15:15:21] "GET /playlist.m3u8 HTTP/1.1" 200 -
2024-10-26T22:15:21.777449328Z 192.168.144.1 - - [26/Oct/2024 15:15:21] "GET /playlist.m3u8 HTTP/1.1" 500 -
2024-10-26T22:15:21.777787699Z ----------------------------------------
2024-10-26T22:15:21.777908451Z Exception occurred during processing of request from ('192.168.144.1', 44480)
2024-10-26T22:15:21.779876350Z Traceback (most recent call last):
2024-10-26T22:15:21.780945769Z   File "/usr/src/app/./app.py", line 48, in do_GET
2024-10-26T22:15:21.781204142Z     routes[func]()
2024-10-26T22:15:21.781378660Z   File "/usr/src/app/./app.py", line 96, in _playlist
2024-10-26T22:15:21.781524574Z     self.wfile.write(f'#EXTINF:-1 channel-id="{channel_id}" tvg-id="{key}" tvg-logo="{logo}" group-title="{group}"{chno},{name}\n{url}\n'.encode('utf8'))
2024-10-26T22:15:21.781676874Z   File "/usr/local/lib/python3.12/socketserver.py", line 840, in write
2024-10-26T22:15:21.781803555Z     self._sock.sendall(b)
2024-10-26T22:15:21.781905473Z BrokenPipeError: [Errno 32] Broken pipe
2024-10-26T22:15:21.782009662Z 
2024-10-26T22:15:21.782094622Z During handling of the above exception, another exception occurred:
2024-10-26T22:15:21.782198372Z 
2024-10-26T22:15:21.782279478Z Traceback (most recent call last):
2024-10-26T22:15:21.782994632Z   File "/usr/local/lib/python3.12/socketserver.py", line 692, in process_request_thread
2024-10-26T22:15:21.783216446Z     self.finish_request(request, client_address)
2024-10-26T22:15:21.783465992Z   File "/usr/local/lib/python3.12/socketserver.py", line 362, in finish_request
2024-10-26T22:15:21.783672885Z     self.RequestHandlerClass(request, client_address, self)
2024-10-26T22:15:21.783819644Z   File "/usr/src/app/./app.py", line 23, in __init__
2024-10-26T22:15:21.783932717Z     super().__init__(*args, **kwargs)
2024-10-26T22:15:21.784028259Z   File "/usr/local/lib/python3.12/socketserver.py", line 761, in __init__
2024-10-26T22:15:21.784128136Z     self.handle()
2024-10-26T22:15:21.784226555Z   File "/usr/local/lib/python3.12/http/server.py", line 436, in handle
2024-10-26T22:15:21.784396009Z     self.handle_one_request()
2024-10-26T22:15:21.784528152Z   File "/usr/local/lib/python3.12/http/server.py", line 424, in handle_one_request
2024-10-26T22:15:21.784892417Z     method()
2024-10-26T22:15:21.785022207Z   File "/usr/src/app/./app.py", line 50, in do_GET
2024-10-26T22:15:21.785133745Z     self._error(e)
2024-10-26T22:15:21.785230833Z   File "/usr/src/app/./app.py", line 27, in _error
2024-10-26T22:15:21.785374280Z     self.end_headers()
2024-10-26T22:15:21.785496450Z   File "/usr/local/lib/python3.12/http/server.py", line 538, in end_headers
2024-10-26T22:15:21.785606428Z     self.flush_headers()
2024-10-26T22:15:21.785697012Z   File "/usr/local/lib/python3.12/http/server.py", line 542, in flush_headers
2024-10-26T22:15:21.785800081Z     self.wfile.write(b"".join(self._headers_buffer))
2024-10-26T22:15:21.785899353Z   File "/usr/local/lib/python3.12/socketserver.py", line 840, in write
2024-10-26T22:15:21.785999264Z     self._sock.sendall(b)
2024-10-26T22:15:21.786087818Z BrokenPipeError: [Errno 32] Broken pipe
2024-10-26T22:15:21.786179593Z ----------------------------------------

Same thing again

2024/10/26 15:15:25.847026 [ERR] Failed to request m3u for SamsungTVPlusGracenote: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Samsung container log
2024-10-26T22:15:33.560914247Z Including channels from regions: ['us']
2024-10-26T22:15:33.561195371Z 192.168.144.1 - - [26/Oct/2024 15:15:33] "GET /playlist.m3u8 HTTP/1.1" 200 -
2024-10-26T22:15:33.563581368Z 192.168.144.1 - - [26/Oct/2024 15:15:33] "GET /playlist.m3u8 HTTP/1.1" 500 -
2024-10-26T22:15:33.563876285Z ----------------------------------------
2024-10-26T22:15:33.564048296Z Exception occurred during processing of request from ('192.168.144.1', 44482)
2024-10-26T22:15:33.566271507Z Traceback (most recent call last):
2024-10-26T22:15:33.567308958Z   File "/usr/src/app/./app.py", line 48, in do_GET
2024-10-26T22:15:33.567578127Z     routes[func]()
2024-10-26T22:15:33.567756765Z   File "/usr/src/app/./app.py", line 96, in _playlist
2024-10-26T22:15:33.567876033Z     self.wfile.write(f'#EXTINF:-1 channel-id="{channel_id}" tvg-id="{key}" tvg-logo="{logo}" group-title="{group}"{chno},{name}\n{url}\n'.encode('utf8'))
2024-10-26T22:15:33.568022258Z   File "/usr/local/lib/python3.12/socketserver.py", line 840, in write
2024-10-26T22:15:33.568148127Z     self._sock.sendall(b)
2024-10-26T22:15:33.568257951Z BrokenPipeError: [Errno 32] Broken pipe
2024-10-26T22:15:33.568425334Z 
2024-10-26T22:15:33.568528515Z During handling of the above exception, another exception occurred:
2024-10-26T22:15:33.568636881Z 
2024-10-26T22:15:33.568718266Z Traceback (most recent call last):
2024-10-26T22:15:33.569821053Z   File "/usr/local/lib/python3.12/socketserver.py", line 692, in process_request_thread
2024-10-26T22:15:33.570101846Z     self.finish_request(request, client_address)
2024-10-26T22:15:33.570298345Z   File "/usr/local/lib/python3.12/socketserver.py", line 362, in finish_request
2024-10-26T22:15:33.570580709Z     self.RequestHandlerClass(request, client_address, self)
2024-10-26T22:15:33.570748220Z   File "/usr/src/app/./app.py", line 23, in __init__
2024-10-26T22:15:33.570897983Z     super().__init__(*args, **kwargs)
2024-10-26T22:15:33.571043355Z   File "/usr/local/lib/python3.12/socketserver.py", line 761, in __init__
2024-10-26T22:15:33.571192915Z     self.handle()
2024-10-26T22:15:33.571622028Z   File "/usr/local/lib/python3.12/http/server.py", line 436, in handle
2024-10-26T22:15:33.571847537Z     self.handle_one_request()
2024-10-26T22:15:33.571991319Z   File "/usr/local/lib/python3.12/http/server.py", line 424, in handle_one_request
2024-10-26T22:15:33.572553375Z     method()
2024-10-26T22:15:33.572735818Z   File "/usr/src/app/./app.py", line 50, in do_GET
2024-10-26T22:15:33.572883291Z     self._error(e)
2024-10-26T22:15:33.573016765Z   File "/usr/src/app/./app.py", line 27, in _error
2024-10-26T22:15:33.573160596Z     self.end_headers()
2024-10-26T22:15:33.573290232Z   File "/usr/local/lib/python3.12/http/server.py", line 538, in end_headers
2024-10-26T22:15:33.573537161Z     self.flush_headers()
2024-10-26T22:15:33.573677879Z   File "/usr/local/lib/python3.12/http/server.py", line 542, in flush_headers
2024-10-26T22:15:33.573835477Z     self.wfile.write(b"".join(self._headers_buffer))
2024-10-26T22:15:33.573982578Z   File "/usr/local/lib/python3.12/socketserver.py", line 840, in write
2024-10-26T22:15:33.574131134Z     self._sock.sendall(b)
2024-10-26T22:15:33.574267221Z BrokenPipeError: [Errno 32] Broken pipe
2024-10-26T22:15:33.574518319Z ----------------------------------------

This has happened 12 times this month so far

2024/10/05 11:15:14.032575 [ERR] Failed to request m3u for SamsungTVPlusGracenote: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/05 12:15:09.694490 [ERR] Unexpected m3u response for SamsungTVPlus: 500 Internal Server Error
2024/10/05 12:15:21.712464 [ERR] Failed to request m3u for SamsungTVPlusGracenote: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/05 13:15:13.406329 [ERR] Failed to request m3u for SamsungTVPlus: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/05 13:15:25.428759 [ERR] Failed to request m3u for SamsungTVPlusGracenote: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/07 09:15:11.719993 [ERR] Unexpected m3u response for SamsungTVPlus: 500 Internal Server Error
2024/10/24 11:15:14.031980 [ERR] Failed to request m3u for SamsungTVPlus: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/24 11:15:26.050362 [ERR] Failed to request m3u for SamsungTVPlusGracenote: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/26 03:15:13.382200 [ERR] Failed to request m3u for SamsungTVPlus: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/26 03:15:25.403142 [ERR] Failed to request m3u for SamsungTVPlusGracenote: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/26 15:15:13.825703 [ERR] Failed to request m3u for SamsungTVPlus: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/10/26 15:15:25.847026 [ERR] Failed to request m3u for SamsungTVPlusGracenote: Get "http://192.168.1.3:8182/playlist.m3u8": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Anyone else experiencing this?