Fixing iVue Guide to work with IPTV Stalker ("failed authorization")

That's what I was thinking... if the serial references are removed from the ini, or if it sends it over as null, the IPTV Stalker should still work, and not affect PVR Stalker or the STB Emu. I'll see if it still will work by removing the portal ['serial'] argument

Cool. Let me know. If that does the trick, we're lookin' at v3.

I'm not a programmer, or at least current, but I can read code.

Gotcha. I'm not really either, more of a hacker. I just like to automate stuff. Push a button and watch the pretty lights. When you said "middleware", I was instantly impressed...lol. No idea what that is. I'm not current either. Most familiar with vbs, which is about 9999 years old, but still supported in windows by default! lol I've written some python scripts at work and have been able to do what I needed to, but I wouldn't say I'm fluent.

I still don't get how an iVue ini can affect other addons...
 
Cool. Let me know. If that does the trick, we're lookin' at v3.



Gotcha. I'm not really either, more of a hacker. I just like to automate stuff. Push a button and watch the pretty lights. When you said "middleware", I was instantly impressed...lol. No idea what that is. I'm not current either. Most familiar with vbs, which about 9999 years old, but still supported in windows by default! lol I've used python at work and have been able to do what I needed to.

I found the line that sends the serial number in IPTV Stalker, and was able to comment it out. I'll see if work...
 
Might have been a false alarm in my case. Checked windows task manager and there was a python script that was hung up. Killed Kodi, then I killed the python script, restarted KODI and everything works again. Just me?
 
Yeah, it does with the modified ini, and it doesn't screw up PVR Stalker!

For those that want to try this, make this change in the load_channels.py in plugin.video.stalker
Just put a # sign in front of the setSerialNumber(Serial)


Code:
def retriveUrl(portal_mac, url, serial, channel, tmp):
	
	setMac(portal_mac);
#	setSerialNumber(serial);
		
	if 'matrix' in channel:
		return retrieve_matrixUrl(url, channel);
		
	else:
		return retrive_defaultUrl(url, channel, tmp);
 
Ok, cool. What's weird is that the serial piece for iptvstalker is in the iVue addons.ini by default, yet it doesn't mess anything up. All my script does is mod the mac. Do you get why modding the tecbox ini has this affect?
 
This fixed it for you?

Yeah. I used v2 on a default addons.ini with my linked mac, moved it into the userdata for the iVue, and made that code change. iVue is still sending over that serial number trash to IPTV Stalker, but at least IPTV Stalker isn't sending it on to the server, which doesn't need it. However, the cache for PVR Stalker won't be good for that session, to bring it back you have disable/enable live tv after quitting IPTV Stalker.

If you can figure out how to get rid of the serial number from the .ini, then that code change won't be necessary. I'll leave on my local copy... if the iVue guys want, they might want to make that a mod on their copy in their repo but they will need to renumber the addon version to prevent it from being changed by the rogue 1.2.0.
 
Ok, I can still connect to iptvstalker if I remove all of the references to serial in the ini. I just did it in msword. Your's may be the same. I searched for serial%22%3A+%7B%22 replaced with null (in the "replace with" area, I left it blank). Try it on yours and see if this fixes your issues. If so, I'll mod the script to remove this.

Will be a quick fix if your serial string is the same as mine. I can give the script a specific thing to look for.

On another note, if you decrypt that string, it's a weird sad face. :{

EDIT = if your serial string IS the same, I've got a v3 script ready to go... If its not, can you post what yours is so I can code for the variables ?

Here's an example of what mine looks like (bolded in blue):

Code:
2%3A+%22NFPS%22%2C+%22parental%22%3A+%22false%22%2C+%22url%22%3A+%22http%3A%2F%2Fportal.iptvprivateserver.tv%22%2C+%22mac%22%3A+%2200%3A1A%3A79%3ABB%3ABB%3ABB%22%2C+%22[COLOR="#0000FF"][B]serial%22%3A+%7B%22[/B][/COLOR]custom%22%3A+false%7D%2C+%22password%22%3A+%220000%22%7D&mode=play&logo_url=http%3A%2F%2Fportal.iptvprivateserver.tv%2Fstalker_portal%2Fmisc%2Flogos%2F320%2F1405.png&
Channel


-d
 
Last edited:
Can anyone confirm what their serial string looks like in the tecbox addons.ini file?

The serial string is the same. I'm not sure if it will stop something from getting into serial number, though, so I haven't tested it without that code change I did in IPTV Stalker... I put in a print statement to find out what is seen in "portal ['serial']" before it gets passed to the server, and it does return something, including the word 'custom', so iVue may just be parsing based on character position.
 
Here is version 3 of the iVue MAC Swap Tool. Gives user the choice to remove references to serial in their addons.ini file. This assumes that their serial matches this: serial%22%3A+%7B%22 as I'm assuming this is a default. Also sexied up the prompts.

Enjoy

Pastebin:
Code:
 http://pastebin.com/7ysHbVGm

Link to script:
Code:
https://drive.google.com/file/d/0B7UqN53jp_4cZTBSODVXZEctdEU/view?usp=sharing
 
Last edited:
The serial string is the same. I'm not sure if it will stop something from getting into serial number, though, so I haven't tested it without that code change I did in IPTV Stalker... I put in a print statement to find out what is seen in "portal ['serial']" before it gets passed to the server, and it does return something, including the word 'custom', so iVue may just be parsing based on character position.

Ok. I could modify the script to include the "custom" string if "serial" doesn't do it. Do you want to test out v3 and see if that solves it for you? You'd need to test with your .py file unmodded. Otherwise, can you compare the entire serial & custom string from my previous post to see if it matches yours? I may just need to include that whole string to search for...
 
Last edited:
Forget Ivue, the PVR Stalker guide and channel list works perfect with no need to reset cache !

I've not been able to get it to work yet. Keeps saying "unable to load channels", so I gave up. On Isengard/iOS 8.1.2/Stalker Client 0.8.3, if that makes any difference. Using config from here (but, with my own mac)

Code:
https://www.youtube.com/watch?v=i0lRYI8RR8Q

...or is PVR Stalker Guide it's own type of iVue'ish guide? I'm assuming you mean the built in EPG in KODI populated with IPTV Stalker content that you see when you enable "TV".
 
Last edited:
Drivium, I tried the v3, but the serial number deletion caused script errors in IPTV Stalker. If I don't use that option, the ivue works (and I still preventing the serial number from getting sent). I like the dialog boxes in v3 though.

The iVue developer (ivueguide) is working on creating a python script for the iVue guide to accept a mac to be sent, but he said that it may take some time. At least we know that your scripts work to change the MAC. The code change to IPTV Stalker is pretty easy, so I may just offer that as a patch to allow users to be able to use the iVue and not corrupt their linked MAC. If the IPTV Stalker developer ever comes back, he probably could help too.
 
I want to be able to replicate the error you're seeing. What do I need to have installed in KODI and what steps are you taking to produce the error? If you can feed me that, I can work on a working solution without the need to have you be the guinea pig for every iteration. Maybe screen captures or a video you can pm me of the steps you are taking to produce the error? I'd just need to make my setup like yours. I really don't think this will be hard to fix, just need to understand the problem better. Maybe you can zip up your whole KODI folder and upload somewhere for me to download?
 
Last edited:
I'll see what I can do. TBH, I'm only testing the iVue so I can help others fix their problems with connecting with the service. By themselves, the add-ons are working like they should, and if they are set up to the tutorials, no one should have issues. iVue has been an interesting project, because their guide is probably the best free one out there, but all these add-ons were developed without knowing what exactly "NFPS" was going to do with their validation. They may even change things like introducing serial number validation going forward.

I won't send you my Kodi... it really has no issues, but i'll post the Kodi log where it fails connecting to the server, as well as the output from the log. I really hope others are getting some use out of your script... it does work, but my guess is that they might have given up well before they even tried the fix.