Frndly TV for Channels

Got it. Sorry for the misunderstanding. :blush:

Today I looked at Frndly. I get reconnecting... and Hallmark and all other Frndly channels are not working.

Anything else change or are they all gone now?

All but 4 of them are still working. A&E, History, Lifetime and FYI are not working because those channels are now DRM'd, Channels can't stream DRM'd content.

Sorry. I just updated Docker. Removed and reinstalled FRNDLY TV FOR CHANNELS, and it seems to be working again.

Thanks Matt.

1 Like

I can't seem to get this to work this week. I've removed and reinstalled my docker image multiple times. log says that it's invalid PW but I've verified with the website and haven't changed it.
logs....

ErrorWarningSystemArrayLogin


Starting server on port 80
logging in....
xxxxxxxxxx - - [18/Dec/2021 00:31:25] "GET /playlist.m3u8 HTTP/1.1" 500 -
----------------------------------------
Exception happened during processing of request from ('xxxxxxxx', 62890)
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 22, 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 51, in do_GET
self._error(e)
File "./app.py", line 49, in do_GET
routes[func]()
File "./app.py", line 62, in _playlist
channels = frndly.channels()
File "/usr/src/app/frndly.py", line 133, in channels
rows = self._request('https://frndlytv-api.revlet.net/service/api/v1/tvguide/channels?skip_tabs=0')['data']
File "/usr/src/app/frndly.py", line 106, in _request
self.login()
File "/usr/src/app/frndly.py", line 176, in login
raise Exception('Failed to login: {}'.format(data['error']['message']))

Exception: Failed to login: Invalid password.

Has it worked previously with this same password? If not I wonder if there’s a special character in the password that the code isn’t translating properly.

yes, changed my password to remove special characters and that worked....thanks

1 Like

pretty sure special characters should work fine as long as you have the password within quotes "[password]"

Just gave this a go. Great work. Seem to have all channels except Local Now. Tried different IP but still no luck.

I am trying to set this up using the python method. I'm very much a novice at this. I copied the python script into notepad as frndlytv.py and run it on my pc but get the following error:

C:\Users\debtv\PythonPrograms>python frndlytv.py
File "C:\Users\debtv\PythonPrograms\frndlytv.py", line 1
git clone https://github.com/matthuisman/frndlytv-for-channels
^^^^^
SyntaxError: invalid syntax

Have I missed something? Or am I really missing the boat here on how to get this up and running?
Thanks for any help!

1 Like

You copied a list of commands to run and named it a python script. That's not going to work out.

The commands are meant to be typed one by one in to a terminal, I'm not sure if Windows CMD or Powershell will work, it looks like the commands are meant for bash on a linux machine.

git clone https://github.com/matthuisman/frndlytv-for-channels
cd frndlytv-for-channels
pip install --no-cache-dir -r requirements.txt
python app.py --PORT 8183 --USERNAME "MY_EMAIL" --PASSWORD "MY_PASSWORD" --IP "72.229.28.185"

You need to type the first line, which will clone the pre-written python scripts from GitHub for you, then change to the directory that you just downloaded. Then pip to pull in the dependencies and finally python to run the script. I don't see anything offhand that would prevent this from being run in WSL or WSL2, may even work at the Window CMD or Powershell?

Thanks!
So I just went to the github link and downloaded the zip file and extracted that on my PC. Then I entered the other commands at my cmd prompt.
Now I have a message that says Starting server on port 8183 But I don't have a cmd prompt or anything else. Is this something that takes some time to finish?

It doesn't finish, it runs forever and you access it via the port

1 Like

When I try to set the custom channel up using http://127.0.0.1:8183 I get 'connection refused' messages. Do I need to do something on my gateway? Or is there something else going on?
Thanks.

I opened the port on my gateway for the dvr, but I still get this error message when trying to set up the custom channel.

invalid source url: Get "http://127.0.0.1:8183": dial tcp 127.0.0.1:8183: connectex: No connection could be made because the target machine actively refused it.

Did I miss something in the python setup?
Thanks

The IP address 127.0.0.1 is called a local loopback address and means "THIS PC".
So if you're not running Channels DVR server and the Python script from the same PC, 127.0.0.1 won't work.
In your Channels DVR server you would put the IP address of the PC you're running the Python script on in place of 127.0.0.1.

Yeah, I concur with chDVRuser. In my case my computer doesn’t like to do 127.0.0.1 for any calls from any program to localhost so I always just use the actual PC address even though it is the same PC. I have to use the actual address instead of the loopback for Plex, Sonarr, and Radar too even though it is the same system. So if your system has a static assigned local IP just use that.

1 Like

Channels and the Python Script are on the same PC. Running on windows 10 pro pc.
I opened port 8183 in the gateway and gave access to the PC device.
I've used the pc's actual IP with :8183 and still get connection refused.
Am I missing something on the playlist side?

If you mean your Internet gateway/router, no need to do that.
Your PC should be able to talk to itself without going through a router/gateway.
Maybe your Windows firewall or Antivirus software is blocking it?

I don't see anything in the firewall. I'd like to verify that the python side was setup correctly. Is there a good way to do that to see if the service is running correctly? Is there any reason why I could not go thru the setup process again? Should I run as admin?