Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plex hosted offsite, change URLBase IP #49

Open
icepicknz opened this issue Jul 5, 2021 · 3 comments
Open

Plex hosted offsite, change URLBase IP #49

icepicknz opened this issue Jul 5, 2021 · 3 comments

Comments

@icepicknz
Copy link

Hi,

Is it possible to change the URLBase IP address? My Plex server is hosted somewhere else and I have pinhole through my router for source of my Plex through to my enigma2 device; but it looks like its giving out the local IP address of http://192.168.55.3:6083 rather than the external IP

@marcel89l
Copy link

marcel89l commented Jul 12, 2021

I would like to change the URLBase as well.
I attached a second network interface (usb to lan dongle) to my enigma2 receiver because i wanted to have more speed than with the built in 100Mbit network card.

The default BaseURL is unfortunately the ip of my build in network card, not the second ip from the usb dongle.
Is there any chance to change this in the config of the HRTunerProxy?

Regards

@icepicknz
Copy link
Author

I made this amendment to getLineup.py , documenting here so I can find it if I ever need to do it again

    def createJSON(self, ip="0.0.0.0", port=8001, dvb_type="DVB-S"):
            output = self.output()
            self.data_tmp = {}
            self.lineup = []
                                    
            for c_n_r in output:
                    if dvb_type == "iptv" and "http" not in c_n_r[2]:
                            continue
                    if dvb_type in ('multi', 'iptv', c_n_r[3]):
                            self.data_tmp = {}
                            self.data_tmp['GuideNumber'] = '%s' % c_n_r[0]
                            self.data_tmp['GuideName'] = '%s' % c_n_r[1]
                            if "http" in c_n_r[2]:
                                    c_n_r[2] = c_n_r[2].replace("192.168.33.3","14.1.x.x")
                                    self.data_tmp['URL'] = c_n_r[2]
                            else:
                                    ip = ip.replace("192.168.33.3","14.1.x.x")
                        	        self.data_tmp['URL'] = 'http://%s:%d/%s' % (ip, port, c_n_r[2])
                            self.lineup.append(self.data_tmp)
            return self.lineup

@icepicknz
Copy link
Author

icepicknz commented Aug 22, 2021

Ohh and also this in getLineupStatus.py...

class getDeviceInfo:
def init(self):
pass

    def discoverJSON(self, dvb_type):
            ip = getIP()  
            ip_port = 'http://%s' % _('14.1.x.x:6083')
            device_uuid = str(uuid.uuid4())
            if path.exists('/etc/enigma2/%s.discover' % dvb_type):
                    with open('/etc/enigma2/%s.discover' % dvb_type) as data_file:
                            discover = json.load(data_file)
              	discover.pop('NumChannels', None)
            else:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants