DOWNLOAD IPTV addon for Kodi 19 + only

Status
Not open for further replies.

Havic2u

Active member
VIP Member
Joined
Apr 15, 2021
Messages
303
Awards
3
Offline
have bought a panelled version of this just wish i could get hold of the panel as i use 2 dns and the panel version for kodi 19 is only single dns

So just wondering where you got the panel? I would be interested in purchasing it also.
 

mukaaa

New member
Joined
Sep 29, 2022
Messages
12
Offline
I used requests instead of urllib and fixed some bugs.
in tools.py

Headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0'
}
def OPEN_URL2(url):
xbmc.executebuiltin('Notification(%s)'%(url))
response=requests.get(url,timeout=200, headers=Headers)
data = response.json()
return data

Since it returns json
Fixed default.py according to this
 

billy73

Member
Joined
Jun 4, 2021
Messages
29
Awards
1
Offline
I used requests instead of urllib and fixed some bugs.
in tools.py

Headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0'
}
def OPEN_URL2(url):
xbmc.executebuiltin('Notification(%s)'%(url))
response=requests.get(url,timeout=200, headers=Headers)
data = response.json()
return data

Since it returns json
Fixed default.py according to this
did you manage to fix it?is it possible to share your version?
 
Last edited:

mukaaa

New member
Joined
Sep 29, 2022
Messages
12
Offline
did you manage to fix it?is it possible to share your version?

I may give the major changes I made and maybe the FireTVGuru makes a new release.
Because I changed a lot according to my need.


 
Last edited:

billy73

Member
Joined
Jun 4, 2021
Messages
29
Awards
1
Offline
Yes, I'm interested in testing your changes.
I think the problem is only present on certain subscriptions so I don't know if FireTVGuru will update.
thank you for your work .
 

mukaaa

New member
Joined
Sep 29, 2022
Messages
12
Offline
Yes, I'm interested in testing your changes.
I think the problem is only present on certain subscriptions so I don't know if FireTVGuru will update.
thank you for your work .
My provider gives results as json :
You may check on firefox these :
GET Live Stream Categories
player_api.php?username=X&password=X&action=get_live_categories
GET VOD Stream Categories
player_api.php?username=X&password=X&action=get_vod_categories
GET SERIES Categories
player_api.php?username=X&password=X&action=get_series_categories

if they are json it will work .
I think these are standarts for xtream api.
 

billy73

Member
Joined
Jun 4, 2021
Messages
29
Awards
1
Offline
My provider gives results as json :
You may check on firefox these :
GET Live Stream Categories
player_api.php?username=X&password=X&action=get_live_categories
GET VOD Stream Categories
player_api.php?username=X&password=X&action=get_vod_categories
GET SERIES Categories
player_api.php?username=X&password=X&action=get_series_categories

if they are json it will work .
I think these are standarts for xtream api.
the json link works for me.
I think I can test the modification.
I installed visual studio so I must be able to modify the files if you tell me the modifications to make..
 

mukaaa

New member
Joined
Sep 29, 2022
Messages
12
Offline
the json link works for me.
I think I can test the modification.
I installed visual studio so I must be able to modify the files if you tell me the modifications to make..
It is python:
Yoy may reinstall after changes made and zipped.

Addon.Xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.iptvxc" name="[COLOR red]XCUI Streams[/COLOR]" version="3.1.4" provider-name="[COLOR orange]Fire TV Guru[/COLOR]">
<requires>
<import addon="script.module.requests" version="2.27.1"/>
</requires>
<extension point="xbmc.python.pluginsource"
library="default.py">
<provides>video</provides>
</extension>
<extension point="xbmc.addon.metadata">
<summary lang="en">[COLOR red]An IPTV addon written to work with XC and XCUI for Kodi 19 only[/COLOR] </summary>
<language>en</language>
<description lang="en">[COLOR red]This addon does not supply nor provide any illegal content[/COLOR]</description>
<platform>all</platform>
<assets>
<icon>icon.png</icon>
<fanart>fanart.jpg</fanart>
</assets>
</extension>
</addon>


resources\modules\tools.py

add at imports section:
import requests


change all OPEN_URL as :

def OPEN_URL(url):
xbmc.executebuiltin('Notification(%s)'%(url))
Headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0'
}
response=requests.get(url,timeout=200, headers=Headers)
data = response.json()
return data
 
Last edited:

mukaaa

New member
Joined
Sep 29, 2022
Messages
12
Offline
the json link works for me.
I think I can test the modification.
I installed visual studio so I must be able to modify the files if you tell me the modifications to make..
I am not a python guy but
in few weeks I may enhance default py to use meta and more bug free if I will have time

and this is default py
 

billy73

Member
Joined
Jun 4, 2021
Messages
29
Awards
1
Offline
It is python:
Yoy may reinstall after changes made and zipped.

Addon.Xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.iptvxc" name="[COLOR red]XCUI Streams[/COLOR]" version="3.1.4" provider-name="[COLOR orange]Fire TV Guru[/COLOR]">
<requires>
<import addon="script.module.requests" version="2.27.1"/>
</requires>
<extension point="xbmc.python.pluginsource"
library="default.py">
<provides>video</provides>
</extension>
<extension point="xbmc.addon.metadata">
<summary lang="en">[COLOR red]An IPTV addon written to work with XC and XCUI for Kodi 19 only[/COLOR] </summary>
<language>en</language>
<description lang="en">[COLOR red]This addon does not supply nor provide any illegal content[/COLOR]</description>
<platform>all</platform>
<assets>
<icon>icon.png</icon>
<fanart>fanart.jpg</fanart>
</assets>
</extension>
</addon>


resources\modules\tools.py

add at imports section:
import requests


change all OPEN_URL as :

def OPEN_URL(url):
xbmc.executebuiltin('Notification(%s)'%(url))
Headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0'
}
response=requests.get(url,timeout=200, headers=Headers)
data = response.json()
return data
I tried to modify the files but nothing works anymore. I even lost the series and the catchup..
if you can give me a download link with google drive? or other.
I compared the files to understand where I am wrong.
thank you
 

mukaaa

New member
Joined
Sep 29, 2022
Messages
12
Offline
I tried to modify the files but nothing works anymore. I even lost the series and the catchup..
if you can give me a download link with google drive? or other.
I compared the files to understand where I am wrong.
thank you
sent message
 

billy73

Member
Joined
Jun 4, 2021
Messages
29
Awards
1
Offline
Avez-vous installé ?
Après l’installation ça n’a pas marché ?
yes i installed it..
but nothing works, there is just the account info section that works. I tried with several providers with the same result.
 

billy73

Member
Joined
Jun 4, 2021
Messages
29
Awards
1
Offline
yes i installed it..
but nothing works, there is just the account info section that works. I tried with several providers with the same result.
log error for vod
EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: can only concatenate str (not "int") to str
Traceback (most recent call last):
File "C:\Users\laure\AppData\Roaming\Kodi\addons\plugin.video.iptvxc\default.py", line 765, in <module>
vod(url)
File "C:\Users\laure\AppData\Roaming\Kodi\addons\plugin.video.iptvxc\default.py", line 326, in vod
player_api + '&action=get_vod_streams&category_id=' + (cat['category_id']), 9, icon,
TypeError: can only concatenate str (not "int") to str
-->End of Python script error report<--

log error for series
EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: can only concatenate str (not "int") to str
Traceback (most recent call last):
File "C:\Users\laure\AppData\Roaming\Kodi\addons\plugin.video.iptvxc\default.py", line 807, in <module>
series_cats(url)
File "C:\Users\laure\AppData\Roaming\Kodi\addons\plugin.video.iptvxc\default.py", line 184, in series_cats
tools.addDir(cat['category_name'],player_api+'&action=get_series&category_id='+cat['category_id'],25,icon,background,'')
TypeError: can only concatenate str (not "int") to str
-->End of Python script error report<--


LOG ERROR FOR LIVE
xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2022-10-09 17:43:08.081 T:2092 ERROR <general>: Skipped 6 duplicate messages..
2022-10-09 17:43:08.080 T:2092 ERROR <general>: notification called with invalid number of parameters (should be: 2, is 1)
2022-10-09 17:43:08.746 T:8116 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: can only concatenate str (not "int") to str
Traceback (most recent call last):
File "C:\Users\laure\AppData\Roaming\Kodi\addons\plugin.video.iptvxc\default.py", line 759, in <module>
livecategory()
File "C:\Users\laure\AppData\Roaming\Kodi\addons\plugin.video.iptvxc\default.py", line 156, in livecategory
tools.addDir(mystring,player_api + '&action=get_live_streams&category_id=' + (cat['category_id']), 2, icon, background, '')
TypeError: can only concatenate str (not "int") to str
-->End of Python script error report<-
 

mukaaa

New member
Joined
Sep 29, 2022
Messages
12
Offline
log error for vod
EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: can only concatenate str (not "int") to str
Traceback (most recent call last):
File "C:\Users\laure\AppData\Roaming\Kodi\addons\plugin.video.iptvxc\default.py", line 765, in <module>
vod(url)
File "C:\Users\laure\AppData\Roaming\Kodi\addons\plugin.video.iptvxc\default.py", line 326, in vod
player_api + '&action=get_vod_streams&category_id=' + (cat['category_id']), 9, icon,
TypeError: can only concatenate str (not "int") to str
-->End of Python script error report<--

log error for series
EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: can only concatenate str (not "int") to str
Traceback (most recent call last):
File "C:\Users\laure\AppData\Roaming\Kodi\addons\plugin.video.iptvxc\default.py", line 807, in <module>
series_cats(url)
File "C:\Users\laure\AppData\Roaming\Kodi\addons\plugin.video.iptvxc\default.py", line 184, in series_cats
tools.addDir(cat['category_name'],player_api+'&action=get_series&category_id='+cat['category_id'],25,icon,background,'')
TypeError: can only concatenate str (not "int") to str
-->End of Python script error report<--


LOG ERROR FOR LIVE
xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2022-10-09 17:43:08.081 T:2092 ERROR <general>: Skipped 6 duplicate messages..
2022-10-09 17:43:08.080 T:2092 ERROR <general>: notification called with invalid number of parameters (should be: 2, is 1)
2022-10-09 17:43:08.746 T:8116 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: can only concatenate str (not "int") to str
Traceback (most recent call last):
File "C:\Users\laure\AppData\Roaming\Kodi\addons\plugin.video.iptvxc\default.py", line 759, in <module>
livecategory()
File "C:\Users\laure\AppData\Roaming\Kodi\addons\plugin.video.iptvxc\default.py", line 156, in livecategory
tools.addDir(mystring,player_api + '&action=get_live_streams&category_id=' + (cat['category_id']), 2, icon, background, '')
TypeError: can only concatenate str (not "int") to str
-->End of Python script error report<-

Actually I updated link redownload
 
Last edited:

billy73

Member
Joined
Jun 4, 2021
Messages
29
Awards
1
Offline
yes!! it works.
you are a legend! I will finish on the series and live tv .. thank you
I still have an error that prevents me from opening the series groups..
I don't know how to replace the none

log-error
Error Type: <class 'NameError'>
Error Contents: name 'none' is not defined
Traceback (most recent call last):
File "C:\Users\laure\AppData\Roaming\Kodi\addons\plugin.video.iptvxc\default.py", line 810, in <module>
serieslist(url)
File "C:\Users\laure\AppData\Roaming\Kodi\addons\plugin.video.iptvxc\default.py", line 219, in serieslist
if releaseDate is none:
NameError: name 'none' is not defined
-->End of Python script error report<--
 
Last edited:
Status
Not open for further replies.
Top