wouterdebie / locast2tuner

Locast to Emby/Plex/Channels server
https://wouterdebie.github.io/locast2tuner/
MIT License
52 stars 8 forks source link

Issue with multiple postal codes #88

Closed CTJohnK closed 3 years ago

CTJohnK commented 3 years ago

I've setup three postal codes in the config file, specified a port of 6080, set the tuner_count to 4, multiplex is off and remap is on.

When I enter the IP:port in the PMS Live TV & DVR, I can access and setup the connection to port 6080. However, any subsequent attempt to manually connect to 6081 or 6082 just sits and 'spins'. I do get results back if I call the URL with the 6081 or 6082 port.

Am I missing something in the configuration? Alternatively, am I misunderstanding how to configure the "1xx" and "2xx" channels?

Thank you in advance for your help.

wouterdebie commented 3 years ago

Would you mind sharing your configuration? It's hard to tell what you're missing. Same for logs. Any logs to share so we can see what's going on?

wouterdebie commented 3 years ago

One thing is that remap only works with multiplex on.

wouterdebie commented 3 years ago

@CTJohnK could you share some actual config? And some logs perhaps?

CTJohnK commented 3 years ago

With this configuration I can see ports 6080, 6081 and 6082. In a browser I can enter 192.168.100.90:6080 and receive data back as well as using ports 6081 and 6082. I can manually enter 192.168.100.90:6080 in PMS and it will pull back the tuner and allow me to setup that tuner for postal code 06810.

Mandatory configuration

username = "xxx" password = "xxx"

Optional configuration

bind_address = "192.168.100.90" override_zipcodes = ["06810","02148","92220"] port = 6080 multiplex = false remap = false

After PMS completes its setup, I try to load another tuner in PMS and enter 196.168.100.90:6081, PMS just 'clocks', nothing ever returns. This is the case even when I stop the locast2plex and pms services, then restart them.

Changing the config file to match below, I can only see port 6080 in the browser. In PMS, I'm first asked to enter a Country, then I can enter a postal code. I am then presented with a very long list of channels and these do have the revised 1xx and 2xxx prefixes, but most beyond the first few dozen channels have correct mappings. I tried 'Add channels from another lineup/location', but those continue to show zero channels matched.

Mandatory configuration

username = "xxx" password = "xxx"

Optional configuration

bind_address = "192.168.100.90" override_zipcodes = ["06810","02148","92220"] port = 6080 multiplex = true remap = true

wouterdebie commented 3 years ago

I'm not sure why Plex hangs if you have multiple tuners on different ports. Can you see anything on the locast2tuner side in the logs?

With multiplexing, you should provide the locast2tuner EPG instead of relying on the one from Plex. Have you gone through the quickstart guide at https://wouterdebie.github.io/locast2tuner/quickstart/plex.html?

Here you should click on "Have an XMLTV guide on your server? Click here to use that instead.", rather than filling in a zip code.

CTJohnK commented 3 years ago

I had read the article, but wanted to use the PMS guide. I'll give it a shot this evening.

I was able to get a little further with the multiplex and remap set to 'true', but clicking on and off the channel mapping screen when I specified a second or third "Add channels from another lineup/location" entry. Then it would show the matched channels count rather than just zero.

However, after completing the Tuner setup and the guide download, the "Live TV & DVR" Guide only showed the first set of channels, not the "1xx" and "2xx" prefixed channels.

I'll keep you posted.

wouterdebie commented 3 years ago

I you use multiplex=true, the EPG that locast2tuner provides contains all the information for all the channels. Also, it will provide the lineup for all channels from all locations. If you use remap, the first station will be untouched and consecutive ones will get a rewritten channel number. All this rewriting is also done in the EPG and the lineup, so things should match.

CTJohnK commented 3 years ago

I used the EPG option and it seems to be working, I have all the channels I expected.

Thank you for your guidance.