matthuisman / samsung-tvplus-for-channels Goto Github PK
View Code? Open in Web Editor NEWSamsung TV Plus for Channels
License: MIT License
Samsung TV Plus for Channels
License: MIT License
ChannelsDVR pulling m3u/XML fails.
Exception happened during processing of request from ('192.168.245.99', 34760)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/socketserver.py", line 683, in process_request_thread
self.finish_request(request, client_address)
File "/usr/local/lib/python3.8/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "./app.py", line 21, in init
super().init(*args, **kwargs)
File "/usr/local/lib/python3.8/socketserver.py", line 747, in init
self.handle()
File "/usr/local/lib/python3.8/http/server.py", line 427, in handle
self.handle_one_request()
File "/usr/local/lib/python3.8/http/server.py", line 415, in handle_one_request
method()
File "./app.py", line 48, in do_GET
self._error(e)
File "./app.py", line 46, in do_GET
routesfunc
File "./app.py", line 58, in _playlist
channels = regions[REGION].get('channels', {})
KeyError: 'us'
My guide data for channels quit updating. Channels shows in the logs that there are out of date airings. When I view the epg.xml it confirms this. I compared mine to https://raw.githubusercontent.com/matthuisman/i.mjh.nz/master/SamsungTVPlus/us.xml and it matches exactly. So something may have barfed again :-(
Any chance of getting data for a longer period or refereed more often? Seems to only go a few hours so even if I set Channels to refresh hourly, I still miss shows.
I'll start by saying i love this.
But I have noticed an issue with the EPG when it reads the data for the Magellan TV Now channel.
In Channels, the guide data only says "Magellan TV Now" which is what is inside of the display-name field.
But it appears the information in "title" or "sub-title" would be a lot more informative. Most of the other channels are working as expected. (at least what I've noticed).
Thanks for taking the time to read this.
The full markup for that channel is below:
<channel id="USAJ340000677">
<display-name>Magellan TV Now</display-name>
<icon src="https://tvpnlogopus.samsungcloud.tv/platform/image/sourcelogo/vc/00/02/34/USAJ340000677_20221109T013603SQUARE.png_20221109013603.png"/>
</channel>
<programme channel="USAJ340000677" start="20230702170000 +0000" stop="20230702180000 +0000">
<title>Wildest Islands</title>
<sub-title>Caribbean: The Wild Side of Paradise</sub-title>
<desc>The Caribbean is a tropical paradise. Each with it's own unique wildlife.</desc>
<icon src="https://tvpnlogopus.samsungcloud.tv/platform/image/contents/vc/00/02/33/US_VC_CTI_USQU352137A_US-304-USAJ340000677-642110_20230701105729229.jpg"/>
<rating>
<value>TV-14</value>
</rating>
</programme>
Seems like the guide data ended a few hours ago and hasn't updated.
I have a Pluto container running already in docker and I ran your script to add samsung-tvplus-for-channels. The script ran without error but now docker show it starting consistently. How do I remedy this?
pi@raspberrypi:~ $ docker ps --format "table {{.ID}}\t{{.Status}}\t{{.Names}}"
CONTAINER ID STATUS NAMES
27dee739bc29 Restarting (1) 20 seconds ago samsung-tvplus-for-channels
09a0e808bda5 Up 28 minutes pluto-for-channels
I have loved the container for quite some time but it stopped working for a few weeks. I use watchtower to automatically update containers once a week but I have not seen any updates coming.
Here is my Docker compose:
version: "3.9"
services:
samsung-tv-channels:
image: matthuisman/samsung-tvplus-for-channels
hostname: samsung-tv
container_name: samsung-tv
environment:
- REGION:us
networks:
- samsung_tv
ports:
- 8182:80
restart: unless-stopped
networks:
samsung_tv:
external: true
I noted explicitly the REGION after the container stopped working.
Going to the address localhost:8182 I can see the links to the M3U and the EPG but visiting the link:
localhost:8182/playlist.m3u
I get the following error:
Error: 'us'
Is this something that others have experienced?
Great add-on, thanks so much! It's working great, but twice now in two days, there hasn't been any guide data when I've checked even though I have this set to refresh XMLTV guide data hourly:
http://i.imgur.com/k5iJaH5.png
The only way I've gotten guide data for these Samsung TV Plus channels to populate when it's empty, has been by stopping and starting the docker container, and then manually redownloading XMTV for it, in the Channels DVR webUI.
All of my other docker containers (Pluto, Stirr, MLB.TV, etc.) are working fine, without these manual steps required. Is there anything else I can try?
Pulled the good channels from Appsatv before the site went down, channels such as Smithsonian channel can only be viewed from the AU reigon of Samsung TV plus.
I need the EPG.
Any specific reason why this hasn't been done?
Thanks
Exception happened during processing of request from ('192.168.245.101', 58600)
Traceback (most recent call last):
File "./app.py", line 46, in do_GET
routesfunc
File "./app.py", line 86, in _playlist
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'))
File "/usr/local/lib/python3.8/socketserver.py", line 826, in write
self._sock.sendall(b)
BrokenPipeError: [Errno 32] Broken pipe
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/socketserver.py", line 683, in process_request_thread
self.finish_request(request, client_address)
File "/usr/local/lib/python3.8/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "./app.py", line 21, in init
super().init(*args, **kwargs)
File "/usr/local/lib/python3.8/socketserver.py", line 747, in init
self.handle()
File "/usr/local/lib/python3.8/http/server.py", line 427, in handle
self.handle_one_request()
File "/usr/local/lib/python3.8/http/server.py", line 415, in handle_one_request
method()
File "./app.py", line 48, in do_GET
self._error(e)
File "./app.py", line 25, in _error
self.end_headers()
File "/usr/local/lib/python3.8/http/server.py", line 529, in end_headers
self.flush_headers()
File "/usr/local/lib/python3.8/http/server.py", line 533, in flush_headers
self.wfile.write(b"".join(self._headers_buffer))
File "/usr/local/lib/python3.8/socketserver.py", line 826, in write
self._sock.sendall(b)
BrokenPipeError: [Errno 32] Broken pipe
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.