Release uEPG - Universal EPG Framework
#46
@Tony5856 Not sure the sports content is legal; I really hope the first screenshot isn't a repackaging of my Pluto.TV Plugin? that would really be disappointing!
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Twitter | Help?
Reply
#47
(2020-03-22, 05:03)Tony5856 Wrote:
(2020-03-22, 02:54)Lunatixz Wrote:
(2020-03-22, 01:51)Tony5856 Wrote: Once again, great module you have made, i'm loving it!

I have set up a custom skin in my addon folder and it works great with uepg.
Is it possible to use two different skin folders with uepg?
For example, a 1080i folder for one section of my addon and a 720p folder for a different section of my addon.
I have looked through the code in uepg and it seems as though it looks for any folder named 1080i, 720p, or xml and uses one if it exists.

Thanks.... Yes, it's possible on your end to write a function that determines skin path for use in uEPG.

EX. Pseudocode

def getSkinPath():
   res = xbmcgui.getResolution() # https://codedocs.xyz/xbmc/xbmc/group__py...91c294d9e1
   return  'special://plugin.video.example/resources/skins/default_%s/'%(res)
xbmc.executebuiltin("RunScript(script.module.uepg,json=%s&skin_path=%s&refresh_path=%s&refresh_interval=%s&row_count=%s)"%(getGuide(),getSkinPath(),'','7200','6')))

BTW can you post a screenshot of your skin?  
Here are a couple of screen shots. 

https://www.dropbox.com/s/jcm9dgcd8z03vh...9.png?dl=1

https://www.dropbox.com/s/vh5rz1fiebqk69...9.png?dl=1

Thanks for the help! 
Those are my first attempt at skinning by the way.
Trying to add any folder deeper than the addon path is causing an error.
This is as deep as it will allow me,

C:\Users\hoise\Desktop\Tonys_build3\Kodi\portable_data\addons\plugin.video.tvfanatic

Here is the error

                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.RuntimeError'>
                                            Error Contents: XML File for Window is missing
                                            Traceback (most recent call last):
                                              File "C:\Users\hoise\Desktop\Tonys_build3\Kodi\portable_data\addons\script.module.uepg\uepg.py", line 299, in <module>
                                                if data is not None: initChannels(params, data, dataType)
                                              File "C:\Users\hoise\Desktop\Tonys_build3\Kodi\portable_data\addons\script.module.uepg\uepg.py", line 275, in initChannels
                                                channelLST.myEPG = epg.uEPG('%s.guide.xml'%utils.ADDON_ID,channelLST.skinPath,'default')
                                            RuntimeError: XML File for Window is missing
                                            -->End of Python script error report<--

Any ideas?
Thanks
Reply
#48
(2020-03-22, 08:36)Tony5856 Wrote:
(2020-03-22, 05:03)Tony5856 Wrote:
(2020-03-22, 02:54)Lunatixz Wrote: Thanks.... Yes, it's possible on your end to write a function that determines skin path for use in uEPG.

EX. Pseudocode

def getSkinPath():
   res = xbmcgui.getResolution() # https://codedocs.xyz/xbmc/xbmc/group__py...91c294d9e1
   return  'special://plugin.video.example/resources/skins/default_%s/'%(res)
xbmc.executebuiltin("RunScript(script.module.uepg,json=%s&skin_path=%s&refresh_path=%s&refresh_interval=%s&row_count=%s)"%(getGuide(),getSkinPath(),'','7200','6')))

BTW can you post a screenshot of your skin?  
Here are a couple of screen shots. 

https://www.dropbox.com/s/jcm9dgcd8z03vh...9.png?dl=1

https://www.dropbox.com/s/vh5rz1fiebqk69...9.png?dl=1

Thanks for the help!   
Those are my first attempt at skinning by the way.
Trying to add any folder deeper than the addon path is causing an error.
This is as deep as it will allow me,

C:\Users\hoise\Desktop\Tonys_build3\Kodi\portable_data\addons\plugin.video.tvfanatic

Here is the error

                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.RuntimeError'>
                                            Error Contents: XML File for Window is missing
                                            Traceback (most recent call last):
                                              File "C:\Users\hoise\Desktop\Tonys_build3\Kodi\portable_data\addons\script.module.uepg\uepg.py", line 299, in <module>
                                                if data is not None: initChannels(params, data, dataType)
                                              File "C:\Users\hoise\Desktop\Tonys_build3\Kodi\portable_data\addons\script.module.uepg\uepg.py", line 275, in initChannels
                                                channelLST.myEPG = epg.uEPG('%s.guide.xml'%utils.ADDON_ID,channelLST.skinPath,'default')
                                            RuntimeError: XML File for Window is missing
                                            -->End of Python script error report<--

Any ideas?
Thanks  
As a workaround, i have just added a sub directory and placed the skin folders in there.

On a side note, if I wanted to skin my addon itself, would i need to change it to a script.module?
I'm not sure how to call the window to use, should it be a view instead?
Is there any documentation for skinning an addon specifically, not just skinning a skin?

Thanks again
Reply
#49
(2020-03-22, 19:10)Tony5856 Wrote:
(2020-03-22, 08:36)Tony5856 Wrote:
(2020-03-22, 05:03)Tony5856 Wrote: Here are a couple of screen shots. 

https://www.dropbox.com/s/jcm9dgcd8z03vh...9.png?dl=1

https://www.dropbox.com/s/vh5rz1fiebqk69...9.png?dl=1

Thanks for the help!   
Those are my first attempt at skinning by the way.
Trying to add any folder deeper than the addon path is causing an error.
This is as deep as it will allow me,

C:\Users\hoise\Desktop\Tonys_build3\Kodi\portable_data\addons\plugin.video.tvfanatic

Here is the error

                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.RuntimeError'>
                                            Error Contents: XML File for Window is missing
                                            Traceback (most recent call last):
                                              File "C:\Users\hoise\Desktop\Tonys_build3\Kodi\portable_data\addons\script.module.uepg\uepg.py", line 299, in <module>
                                                if data is not None: initChannels(params, data, dataType)
                                              File "C:\Users\hoise\Desktop\Tonys_build3\Kodi\portable_data\addons\script.module.uepg\uepg.py", line 275, in initChannels
                                                channelLST.myEPG = epg.uEPG('%s.guide.xml'%utils.ADDON_ID,channelLST.skinPath,'default')
                                            RuntimeError: XML File for Window is missing
                                            -->End of Python script error report<--

Any ideas?
Thanks      
As a workaround, i have just added a sub directory and placed the skin folders in there.

On a side note, if I wanted to skin my addon itself, would i need to change it to a script.module?
I'm not sure how to call the window to use, should it be a view instead?
Is there any documentation for skinning an addon specifically, not just skinning a skin?

Thanks again    
Why would you add a path deeper than the root path? You're not following the pseudocode posted yesterday.

Your plugins skin folder should look like this:

/skin
  /default_720
    /720
    /media
  /default_1080
    /1080
    /media

I'm in the middle of updating uEPG for py3 so I'll add resolution detection; however the above will be your only workaround for now.

Being frank are you developing for personal use and/or are you a third-party pirate developer? 

I'm more than happy to help developers, but I will not facilitate piracy. THX
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Twitter | Help?
Reply
#50
(2020-03-22, 21:31)Lunatixz Wrote:
(2020-03-22, 19:10)Tony5856 Wrote:
(2020-03-22, 08:36)Tony5856 Wrote: Those are my first attempt at skinning by the way.
Trying to add any folder deeper than the addon path is causing an error.
This is as deep as it will allow me,

C:\Users\hoise\Desktop\Tonys_build3\Kodi\portable_data\addons\plugin.video.tvfanatic

Here is the error

                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.RuntimeError'>
                                            Error Contents: XML File for Window is missing
                                            Traceback (most recent call last):
                                              File "C:\Users\hoise\Desktop\Tonys_build3\Kodi\portable_data\addons\script.module.uepg\uepg.py", line 299, in <module>
                                                if data is not None: initChannels(params, data, dataType)
                                              File "C:\Users\hoise\Desktop\Tonys_build3\Kodi\portable_data\addons\script.module.uepg\uepg.py", line 275, in initChannels
                                                channelLST.myEPG = epg.uEPG('%s.guide.xml'%utils.ADDON_ID,channelLST.skinPath,'default')
                                            RuntimeError: XML File for Window is missing
                                            -->End of Python script error report<--

Any ideas?
Thanks      
As a workaround, i have just added a sub directory and placed the skin folders in there.

On a side note, if I wanted to skin my addon itself, would i need to change it to a script.module?
I'm not sure how to call the window to use, should it be a view instead?
Is there any documentation for skinning an addon specifically, not just skinning a skin?

Thanks again     
Why would you add a path deeper than the root path? You're not following the pseudocode posted yesterday.

Your plugins skin folder should look like this:

/skin
  /default_720
    /720
    /media
  /default_1080
    /1080
    /media

I'm in the middle of updating uEPG for py3 so I'll add resolution detection; however the above will be your only workaround for now.

Being frank are you developing for personal use and/or are you a third-party pirate developer? 

I'm more than happy to help developers, but I will not facilitate piracy. THX 
I see now that the resolution was at the end of the default folder name, lol
I am just doing this as a hobby to use in my home, I really enjoy using python and developing for Kodi.
I dont share my work as I am not interested in getting in trouble with the authorities.
I have to admit to looking at your other addons and using some info from them such as api url's ect.
Credit where it is due! But again, I'm only using it for my houshold.
Reply
#51
(2020-03-22, 23:15)Tony5856 Wrote:
(2020-03-22, 21:31)Lunatixz Wrote:
(2020-03-22, 19:10)Tony5856 Wrote: As a workaround, i have just added a sub directory and placed the skin folders in there.

On a side note, if I wanted to skin my addon itself, would i need to change it to a script.module?
I'm not sure how to call the window to use, should it be a view instead?
Is there any documentation for skinning an addon specifically, not just skinning a skin?

Thanks again     
Why would you add a path deeper than the root path? You're not following the pseudocode posted yesterday.

Your plugins skin folder should look like this:

/skin
  /default_720
    /720
    /media
  /default_1080
    /1080
    /media

I'm in the middle of updating uEPG for py3 so I'll add resolution detection; however the above will be your only workaround for now.

Being frank are you developing for personal use and/or are you a third-party pirate developer? 

I'm more than happy to help developers, but I will not facilitate piracy. THX  
I see now that the resolution was at the end of the default folder name, lol
I am just doing this as a hobby to use in my home, I really enjoy using python and developing for Kodi.
I dont share my work as I am not interested in getting in trouble with the authorities.
I have to admit to looking at your other addons and using some info from them such as api url's ect.
Credit where it is due! But again, I'm only using it for my houshold. 
On a side note, if I wanted to skin my addon itself, would i need to change it to a script.module?
I'm not sure how to call the window to use, should it be a view instead?
Is there any documentation for skinning an addon specifically, not just skinning a skin?
Reply
#52
(2020-03-22, 07:33)Lunatixz Wrote: @Tony5856 Not sure the sports content is legal; I really hope the first screenshot isn't a repackaging of my Pluto.TV Plugin? that would really be disappointing!
The Pluto TV guide screenshot is from an addon I made, not a copy paste of your code. I did mention that i used the api url's i found in your Pluto Tv addon, your addon is open sources is it not?
I'm sorry if you are disappointed. I was working on a Pluto TV addon before i found yours. I updated mine by adding your uepg module and skinning a guide.
I will refrain from asking you any more questions. Maybe im not understanding the meaning of open source.
Reply
 
Thread Rating:
  • 1 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
uEPG - Universal EPG Framework51
This forum uses Lukasz Tkacz MyBB addons.