Frndly TV for Channels

Reload M3U for the source.
Screenshot 2024-01-05 at 10-19-44 Channels Settings

Channels DVR should do it automatically every morning if you have that in the settings.

oh lordy..thats easy. I thought it was something that I would have to do in the terminal. I am using Python for FRNDLY....

And that worked...THANKS A BUNCH!

My setup was working properly for a couple of months until I noticed my frndly and MLB sources were missing channels today. I got this for the frndly source " context deadline exceeded (Client.Timeout exceeded while awaiting headers)" has anyone experienced this? Running docker compose on Synology 920+. Have tried changing the ip from 192 to localhost.

Check your Frndly for Channels docker log.

You can't copy/paste from that.
What I do is run this command which dumps the last 2 hours of the docker log to the file /volume1/arkives/frndlycontainer.log. Change /volume1/arkives/ to a directory on your NAS and run it so you can view the text log file.

sudo docker logs -t --since=2h frndlytv-for-channels >>/volume1/arkives/frndlycontainer.log 2>&1

Here was my last error (happens every few days)

2024-01-29T01:55:41.766587375Z 401
2024-01-29T01:55:41.767697799Z Unauthorized access
2024-01-29T01:55:41.767924158Z logging in....
2024-01-29T01:55:45.619150758Z Logged in!
2024-01-29T01:55:45.947051152Z 401
2024-01-29T01:55:45.987071984Z Unauthorized access
2024-01-29T01:55:45.947348784Z 172.18.0.1 - - [28/Jan/2024 17:55:45] "GET /playlist.m3u?gracenote=include HTTP/1.1" 500 -
2024-01-29T01:55:45.987725530Z ----------------------------------------
2024-01-29T01:55:45.987850230Z Exception happened during processing of request from ('172.18.0.1', 51406)
2024-01-29T01:55:45.987971753Z Traceback (most recent call last):
2024-01-29T01:55:45.988074336Z   File "/usr/local/lib/python3.8/socketserver.py", line 683, in process_request_thread
2024-01-29T01:55:45.988188510Z     self.finish_request(request, client_address)
2024-01-29T01:55:45.988281489Z   File "/usr/local/lib/python3.8/socketserver.py", line 360, in finish_request
2024-01-29T01:55:45.988429688Z     self.RequestHandlerClass(request, client_address, self)
2024-01-29T01:55:45.988565537Z   File "./app.py", line 25, in __init__
2024-01-29T01:55:45.988677493Z     super().__init__(*args, **kwargs)
2024-01-29T01:55:45.988776498Z   File "/usr/local/lib/python3.8/socketserver.py", line 747, in __init__
2024-01-29T01:55:45.988876957Z     self.handle()
2024-01-29T01:55:45.988966910Z   File "/usr/local/lib/python3.8/http/server.py", line 435, in handle
2024-01-29T01:55:45.989068693Z     self.handle_one_request()
2024-01-29T01:55:45.989155675Z   File "/usr/local/lib/python3.8/http/server.py", line 423, in handle_one_request
2024-01-29T01:55:45.989254819Z     method()
2024-01-29T01:55:45.989382985Z   File "./app.py", line 55, in do_GET
2024-01-29T01:55:45.989493997Z     self._error(e)
2024-01-29T01:55:45.989596915Z   File "./app.py", line 53, in do_GET
2024-01-29T01:55:45.989690932Z     routes[func]()
2024-01-29T01:55:45.989781020Z   File "./app.py", line 71, in _playlist
2024-01-29T01:55:45.989875795Z     channels = frndly.channels()
2024-01-29T01:55:45.989968071Z   File "/usr/src/app/frndly.py", line 150, in channels
2024-01-29T01:55:45.990065670Z     rows = self._request('https://frndlytv-api.revlet.net/service/api/v1/tvguide/channels?skip_tabs=0')['data']
2024-01-29T01:55:45.990182809Z   File "/usr/src/app/frndly.py", line 133, in _request
2024-01-29T01:55:45.990280961Z     return self._request(url, params=params, login_on_failure=False)
2024-01-29T01:55:45.990416705Z   File "/usr/src/app/frndly.py", line 136, in _request
2024-01-29T01:55:45.990527860Z     raise Exception(data['error']['message'])
2024-01-29T01:55:45.990624576Z Exception: Unauthorized access
2024-01-29T01:55:45.990714164Z ----------------------------------------
2024-01-29T01:55:46.298114283Z 401
2024-01-29T01:55:46.298399193Z Unauthorized access
2024-01-29T01:55:46.298617156Z logging in....
2024-01-29T01:55:49.935967661Z Logged in!

Either that or Export the logs (could be very large) to an html or csv file.

When you export to html, the lines are in reverse order, with the oldest at the bottom and newest at the top.

If you want to dump the container log, you can easily do it using the Synology Task Manager.
Create a user defined script as a new scheduled task and schedule it to run once in the past so it doesn't run, except when you choose to manually run it. docker commands need to be run as root, so do this and you can run it anytime you want, and edit it to dump more or less that 2hrs of log data
(--since=2h).
1



docker logs -t --since=2h frndlytv-for-channels >>/volume1/arkives/frndlycontainer.log 2>&1

Looks like your DNS server couldn't resolve the website.
If you go to this url in a web browser, what happens?
https://frndlytv-api.revlet.net/

It should display The requested resource could not be found.

I get this when going to that url "The requested resource could not be found."

1 Like

Can you log in and watch at their website?
https://watch.frndlytv.com

I guess the question should be is it working for you now?
Did the error just happen once?
Can you reload the playlist and guide data?

What is the FrndlyTV for Channels docker running on?
Is it at 192.168.7.109:8187
What does a browser show at http://192.168.7.109:8187

Not sure if they ever fixed this issue.
Try adding it back as a custom m3u source using a different Name/Nickname for the source than you had before.

Also, what timezone environment variable are you passing to the container?

1 Like

Tried a different name when adding no success
US/Arizona

I don't know.
The error you posted says "Temporary failure in name resolution"
There's also a string in the errors timezone=Pacific%2FAuckland

Yeah I am not sure either, MLB is also doing that, its showing 0 channels.

I would think you want America/Phoenix

In the frndly compose correct? I currently have that in the MLB yaml.

For any docker run or compose you use

Since I'm not fluent in Python code and errors, I'm guessing here.
Could be your password.
Does the docker log show it logged in?

401
Unauthorized access
logging in....
Logged in!

It just displays logging in....

1 Like

Special characters in your password?
I don't use compose/yaml so not sure how it would handle them.