Plex Live TV Channels M3U?

I feel like a complete dunce. I pulled your repo and tried both commands in your GitHub readme, but I keep getting "Connection Refused" errors in Chrome and Edge for http://127.0.0.1:8183/ or http://127.0.0.1:7777/ (depending on what I pass for the port)

docker run -d --restart unless-stopped --network=host -e PLEX_PORT=8183 -e PLEX_CODE=us_west --name plex-for-channels ghcr.io/jgomez177/plex-for-channels

I can see that the container is running and initialized and listening on the assigned port (log: http server started on [::]:8183). I can go into the container and cat /app/epg-us_west.xml and see program data. Nonetheless, I cannot get a browser to connect. I tried going into Chrome's site settings and allowed insecure content, but it did not help.

I have had my media server on ice for almost 2 years because of a move, so I am a bit rusty. I am sure the error is located firmly between my keyboard and my chair. :wink: However, any advice will be appreciated.

Based upon what you said, it sounds like your Media Server is a different machine than the one you are using a web browser on. If so, you need to use the IP Address of the Media Server.

image

Windows?
If so, it doesn't support --net=host or --network=host.
It should have given you an error.
It runs as --net=bridge or --network=bridge (no need to use that as it's the default)

So you need to use this instead.

docker run -d --restart unless-stopped -p 8183:7777 -e PLEX_CODE=us_west --name plex-for-channels ghcr.io/jgomez177/plex-for-channels

And access it from a browser using the IP address of the pc it's running on.
http://<host_pc_ip_address>:8183
Docker for Windows doesn't use host network, so can't access a container using 127.0.0.1

1 Like

Thanks for the advice. I can see that I was not complete in phrasing my question. It is all running on the same Windows PC, and I am trying to access it locally.

Thanks, @chDVRuser! My machine is indeed running Windows. You nailed it!

I ran your version of the command and now http://localhost:8183/ gets me to the main page for the guide data.

Many thanks!

1 Like

For those who want to run natively (preferrably for those who are on windows and don't want to mess with WSL):

git clone git://github.com/jgomez177/plex-for-channels
cd plex-for-channels
pip install -r requirements.txt
python pywsgi.py

Has anyone's antivirus started reporting a virus in python3.12? Here's the messages I received last night from my nightly virus scan:
/usr/local/lib/python3.12/ensurepip/_bundled/pip-24.0-py3-none-any.whl: Win.Virus.Expiro-10022939-0 FOUND
/usr/local/lib/python3.12/site-packages/pip/_vendor/distlib/t64-arm.exe: Win.Virus.Expiro-10022939-0 FOUND
/usr/local/lib/python3.12/site-packages/pip/_vendor/distlib/w32.exe: Win.Virus.Expiro-10022939-0 FOUND
/usr/local/lib/python3.12/site-packages/pip/_vendor/distlib/w64-arm.exe: Win.Virus.Expiro-10022939-0 FOUND

1 Like

all of the guide data has stopped.

I still have guide data through friday.
Please provide logs from the docker

Are you running clamav? This may be a false positive based on other reports
clamav recognizes pip-24.0-py3-none-any.whl as malware · Issue #12565 · pypa/pip · GitHub

I found the problem on my end.
I did have a URL setup properly in Channels.
The docker is retrieving guide data just fine.

Yes, I'm running clamav. Glad to hear it may be a false positive.
Update: Looks like clamav has updated their virus signature file and the false positive as been resolved!

1 Like

Can someone help me with this? I installed docker VM (with Docker Toolbox) and have the container running. I cannot connect via my browser though and it appears like the container is constantly restarting if I run docker ps. I have pluto docker up now so I'm not sure what I'm doing wrong on this plex one. Thanks.


What was the command used to start the docker? Looks like there is an error in the arguments so need some additional information

I've tried a couple different ones. The last was:

docker run -d --restart unless-stopped -p 8183:7777 -e PLEX_CODE=us_east --name plex-for-channels ghcr.io/jgomez177/plex-for-channels

also tried:
docker run -d --restart unless-stopped -p 8183:7777 --name plex-for-channels ghcr.io/jgomez177/plex-for-channels

2 Likes

I assume you've pulled the latest version, so only thing I can think of is the processor type. What is the processor type you are running on? Is it arm based?

Actually I do see one of the error handling in the script but looks like you are having an issue reaching the plex api url. Let me fix the error handling to be able to better see the error you are hitting

The docker is running in a virtualbox virtual machine created by Docker Toolbox. The host PC uses the Intel 1037u processor. Am I answering the what you're asking? I don't understand all this really but the pluto one seems to be okay (?).

Please pull the latest version and try again.
While this may not resolve the issue I can get a better feel of what is happing with the logs instead of the script crashing

okay. here is the log for that version. thanks for your help.