Frndly TV for Channels

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?

python adventure - day 2 -
I don't know what I'm doing differently today, but I re-ran all the python steps. Today, instead of the white screen from yesterday, I get the message that the server is starting on 8183. So that clears the connection refused issue.
Now I get the following:
[ERR] Failed to parse m3u for frndlytv: malformed M3U provided
In reading the frndly.py script, I should get a message that says logged in. I do not see that. I assume that app.py actually runs frndly.py, but it really doesn't seem to be connecting at all.
I've run app.py with my user id and password. Have I missed a step?

REALLY appreciate all the help so far!

1 Like

Can you show us exactly what you are typing (redact any private information) and any output that might be helpful in tracking down the situation.

You should be able to browse to http://localhost:8183 and get a page that has the URLs for M3U ready to be copy/pasted in to Channels.

1 Like

See that's the problem. No URLs - No M3Us - no playlists
Just get the message that the server is started and a blank screen. I see no indication that it is actually signing into frndly tv.

I'm running app.py and inputting the variables: port #, user name, password, and that New York IP.
I assume that app.py runs frndly.py. if that is not the case, then how do I run frndly.py. After running app.py, I don't get a prompt. Just the message that the service has started on port 8183 and nothing else.
I'm missing something in the setup.
I'll go thru this again and post a screen shot.

1 Like

What do you see when you enter localhost:8183 in your browser ?

python:
C:\Users\debtv\frndlytv-for-channels-master>python app.py --PORT 8183 --USERNAME xxxxxxxxxxxxxxxxxxxxxx --PASSWORD xxxxxxxx --IP 72.229.28.185
Using IP Address: 72.229.28.185
Starting server on port 8183

This if from the browser for localhost:8183

Playlist URL: http://localhost:8183/playlist.m3u8
EPG URL: http://localhost:8183/epg.xml

arrrrgh! That's the step that I was missing! I copied http://localhost:8183/playlist.m3u8 into the custom channel setup field and now I show frndly with 32 channels

Final question, do I need to keep the terminal window that says starting server on port 8183 open or is it ok to close that?

Boy, A big thank you to everyone for the help!

if you close the python window showing the "starting server", then that will kill the server.
You should be able to start it without a console window with pythonw app.py ..... (instead of python app.py)

but note if it ever fails, it does so silently.
You could also google how to create window services etc.

yep, Found that out. :slight_smile: And I did start thinking about how to start it up without having to re-type everything. Microsoft reboots the PC once a month. I think that is the snow day - day 3 project.
Thanks for the head start on that. And thanks for putting this all together!