Frndly TV for Channels

argh, looks like FrndlyTv is switching some channels over to MPD with DRM which Channels / ffmpeg don't support.

The latest container will now show an error for streams that are not supported.
You could use /playlist.m3u8?exclude=frndly-31,frndly-33 etc to remove them from playlist

i could make a Kodi FrndlyTv add-on that can support Widevine DRM, but that obviously doesn't help the Channels users much

1 Like

I wonder if there is any hope that Frndly won't do this to all the channels they carry. This ChannelsDVR "add-on" to get Frndly is pretty much the only reason why I got Frndly. Glad I didn't go for the annual subscription. Is there any hope of getting around this set back.

In the USA, at least, it is illegal to circumvent DRM.
Since Channels is and wants to remain 100% legal, they will never even remotely consider trying to get around DRM. I support this.

Sadly, once DRM is used by providers, it simply won't work in Channels.

Let's enjoy whatever is left while we can. :laughing:

To clarify I didn't mean to suggest circumventing the DRM. I agree everything should of course be legal. I meant is there a way to legally authenticate the DRM using our proper Frndly credentials like we do with the other channels Frndly offers. Or is this basically a "you use our app or nothing at all" type of thing even though we are paying for access to the stream?

1 Like

Authenticating (signing in) is totally different than DRM.
You need a client that supports their DRM method.
It's like the PBS stations that added DRM to their stream. The web player and apps can handle the DRM, but Channels cannot.

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