Kodi Community Forum
[RELEASE] Super Favourites AKA Super-Addon Creator - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Super Favourites AKA Super-Addon Creator (/showthread.php?tid=192662)



[RELEASE] Super Favourites AKA Super-Addon Creator - ed_davidson - 2015-06-20

First of all I had to show hidden files and folders.
I then added the .kodi favourites as a source.
I then navigated to the temp folder and clicked context and a box with add to favourites came up so I added it to kodi favourites.
I then went into SF Addon and explored KODI favourites then added my fav to Super Favourites.

If I click on the kodi fav i get taken directly to the temp folder.
If I click the SF favourite I get taken to the file manager main screen.


[RELEASE] Super Favourites AKA Super-Addon Creator - spoyser - 2015-06-20

(2015-06-20, 23:42)ed_davidson Wrote: First of all I had to show hidden files and folders.
I then added the .kodi favourites as a source.
I then navigated to the temp folder and clicked context and a box with add to favourites came up so I added it to kodi favourites.
I then went into SF Addon and explored KODI favourites then added my fav to Super Favourites.

If I click on the kodi fav i get taken directly to the temp folder.
If I click the SF favourite I get taken to the file manager main screen.

Cheers, I'll take a look.

One thing you can try in he meantime is to switch on the SF global menu and then navigate to the temp folder again and click context and select Add to Super Favourites


[RELEASE] Super Favourites AKA Super-Addon Creator - ed_davidson - 2015-06-21

The SF menu will not come up even with global enabled in the .kodi folder.
The only way I could add it was by adding it to kodi favs first.


RE: [RELEASE] Super Favourites AKA Super-Addon Creator - spoyser - 2015-06-21

(2015-06-21, 00:01)ed_davidson Wrote: The SF menu will not come up even with global enabled in the .kodi folder.
The only way I could add it was by adding it to kodi favs first.

Okay I have found the issue, if you want to fix it yourself then you can make the following change, otherwise you'll have to wait for the next release.

In default.py find these 2 lines:

Code:
def activateWindowCommand(cmd):    
    cmds = cmd.split(',', 1)

then immediately after add this:

Code:
if '10003' in cmds[0] or 'filemanager' in cmds[0].lower():
        xbmc.executebuiltin(cmd)
        return

So you'll end up with

Code:
def activateWindowCommand(cmd):    
    cmds = cmd.split(',', 1)

    #special case for filemanager
    if '10003' in cmds[0] or 'filemanager' in cmds[0].lower():
        xbmc.executebuiltin(cmd)
        return  

    plugin   = None
    activate = None



RE: [RELEASE] Super Favourites AKA Super-Addon Creator - ghanoom0007 - 2015-06-21

Hi

thanks a lot for the wonderful add-on.
the new update is working perfectly on the aeon nox skin but when i use CONQ (which is my favourite) i only get an empty screen.
any suggested fix?

thank you


[RELEASE] Super Favourites AKA Super-Addon Creator - spoyser - 2015-06-21

(2015-06-21, 12:47)ghanoom0007 Wrote: Hi

thanks a lot for the wonderful add-on.
the new update is working perfectly on the aeon nox skin but when i use CONQ (which is my favourite) i only get an empty screen.
any suggested fix?

thank you

I'll have to take a look


RE: [RELEASE] Super Favourites AKA Super-Addon Creator - ghanoom0007 - 2015-06-21

thanks


RE: [RELEASE] Super Favourites AKA Super-Addon Creator - ed_davidson - 2015-06-21

(2015-06-21, 08:09)spoyser Wrote:
(2015-06-21, 00:01)ed_davidson Wrote: The SF menu will not come up even with global enabled in the .kodi folder.
The only way I could add it was by adding it to kodi favs first.

Okay I have found the issue, if you want to fix it yourself then you can make the following change, otherwise you'll have to wait for the next release.

In default.py find these 2 lines:

Code:
def activateWindowCommand(cmd):    
    cmds = cmd.split(',', 1)

then immediately after add this:

Code:
if '10003' in cmds[0] or 'filemanager' in cmds[0].lower():
        xbmc.executebuiltin(cmd)
        return

So you'll end up with

Code:
def activateWindowCommand(cmd):    
    cmds = cmd.split(',', 1)

    #special case for filemanager
    if '10003' in cmds[0] or 'filemanager' in cmds[0].lower():
        xbmc.executebuiltin(cmd)
        return  

    plugin   = None
    activate = None

Thanks a lot that worked great, just what i needed. Thanks again


[RELEASE] Super Favourites AKA Super-Addon Creator - spoyser - 2015-06-21

(2015-06-21, 16:30)ed_davidson Wrote:
(2015-06-21, 08:09)spoyser Wrote:
(2015-06-21, 00:01)ed_davidson Wrote: The SF menu will not come up even with global enabled in the .kodi folder.
The only way I could add it was by adding it to kodi favs first.

Okay I have found the issue, if you want to fix it yourself then you can make the following change, otherwise you'll have to wait for the next release.

In default.py find these 2 lines:

Code:
def activateWindowCommand(cmd):  
    cmds = cmd.split(',', 1)

then immediately after add this:

Code:
if '10003' in cmds[0] or 'filemanager' in cmds[0].lower():
        xbmc.executebuiltin(cmd)
        return

So you'll end up with

Code:
def activateWindowCommand(cmd):  
    cmds = cmd.split(',', 1)

    #special case for filemanager
    if '10003' in cmds[0] or 'filemanager' in cmds[0].lower():
        xbmc.executebuiltin(cmd)
        return  

    plugin   = None
    activate = None

Thanks a lot that worked great, just what i needed. Thanks again

Good to hear.

I've now added the ability to add directly to SF from filemanager, saves having to go via Kodi favourites. Will be in the next release.


[RELEASE] Super Favourites AKA Super-Addon Creator - spoyser - 2015-06-21

(2015-06-21, 12:47)ghanoom0007 Wrote: Hi

thanks a lot for the wonderful add-on.
the new update is working perfectly on the aeon nox skin but when i use CONQ (which is my favourite) i only get an empty screen.
any suggested fix?

thank you

I've just downloaded Conq and it seems perfectly okay for me (on Helix)

Can you just make sure the view type is compatible, so go into SF settings and set the view type to 0

Might also be worth checking you have the latest Conq


RE: [RELEASE] Super Favourites AKA Super-Addon Creator - ed_davidson - 2015-06-21

Hi spoyser,

On a somewhat related topic I was wondering if you knew how to edit this favorite to get it working on every PC, not just mine.

I have tried a few things and nothing seems to work

<favourite name="Clear Temp Files PC" thumb="">ActivateWindow(10003,&quot;C:\\Users\\user\\AppData\\Roaming\\Kodi\\cache\\&quot;,return)</favourite>


[RELEASE] Super Favourites AKA Super-Addon Creator - spoyser - 2015-06-21

(2015-06-21, 19:13)ed_davidson Wrote: Hi spoyser,

On a somewhat related topic I was wondering if you knew how to edit this favorite to get it working on every PC, not just mine.

I have tried a few things and nothing seems to work

<favourite name="Clear Temp Files PC" thumb="">ActivateWindow(10003,&quot;C:\\Users\\user\\AppData\\Roaming\\Kodi\\cache\\&quot;,return)</favourite>

Do you just want it to start filemanager in that folder?

Edit
looking at this some more, I think there may be a bug in Kodi

Code:
ActivateWindow(10003,&quot;special://home/cache&quot;,return)

Should work, but unfortuantely it doesn't, so I think you're a bit stuck at the moment Sad

Okay, here's a workaround Smile

In Filemanager Create a source called cache that points to the cache folder.
In SF select Create Manual Entry
Give it a name
Choose ActivateWindow as the type
Select 10003 as the WindowID
Enter the cache (or whatever name you gave the the source) as the command
Job done


[RELEASE] Super Favourites AKA Super-Addon Creator - ed_davidson - 2015-06-21

Should I post it on the kodi.tv forum under Windows?


RE: [RELEASE] Super Favourites AKA Super-Addon Creator - ed_davidson - 2015-06-21

Perfect thank you it worked amazingly Smile


RE: [RELEASE] Super Favourites AKA Super-Addon Creator - spoyser - 2015-06-21

(2015-06-21, 20:26)ed_davidson Wrote: Should I post it on the kodi.tv forum under Windows?
It is probably os independent to be honest.

I'm hazarding a guess that the file manager code doesn't parse the special format correctly (or at all)

Glad to hear the work around worked for you though.