I've got 2 video plugins I want to change in order to:
1) always set thumbnail viewpoint as the default
2) make a refresh context menu item that refreshes the whole plugin from the internet. I'd like to do that each time the user enters the main page of the plugin. Now it seems XBMC caches it and never refetches the content.
Any help?
Vrok
Senior Member Posts: 109 Joined: Feb 2011 Reputation: 0 Location: Greece |
2012-04-01 14:23
Post: #1
|
| find quote |
Vrok
Senior Member Posts: 109 Joined: Feb 2011 Reputation: 0 Location: Greece |
2012-04-01 14:41
Post: #2
I found that cachToDisc = False on #2 issue resolved it
#1 is still up for answers please
|
| find quote |
Vrok
Senior Member Posts: 109 Joined: Feb 2011 Reputation: 0 Location: Greece |
2012-04-01 17:05
Post: #3
Argh.. cacheToDisc=False doesn't work all that good. I want it to keep cache but I also want it to refresh when the user goes in the main url of the pligin from the main menu
|
| find quote |
Vrok
Senior Member Posts: 109 Joined: Feb 2011 Reputation: 0 Location: Greece |
2012-04-01 18:41
Post: #4
After testing some stuff I found out that the way I call the plugin doesn't really refresh it.
I call it through favorites which has ActivateWindow for the call. This apparently doesn't refresh the plugin like when you go directly to it through videos -> video add-ons How can I make the call in favourites.xml so that it gets refreshed whenever I go there? |
| find quote |
paddycarey
Senior Member Joined: Sep 2009 Reputation: 8 |
2012-04-02 19:26
Post: #5
#1 The youtube plugin does this so you should look at that code
#2 I'm not sure what you mean by "refresh the plugin". Which plugin is this? and what data are you trying to reload and in what context? Add-ons: Artwork Downloader, MMA Browser, MMAFighting.com, The Joe Rogan Experience, FightCasts, Deathsquad.tv, Vice.com |
| find quote |
Vrok
Senior Member Posts: 109 Joined: Feb 2011 Reputation: 0 Location: Greece |
2012-04-02 19:31
Post: #6
(2012-04-02 19:26)paddycarey Wrote: #1 The youtube plugin does this so you should look at that code Let's say the Youtube plugin Go ahead and add Youtube -> Explore Youtube -> Categories -> Music to your favourites Go back to the main menu and do these 2 things: 1) Press S -> Favourites -> Choose the favourite you just added and go to it 2) Go to Videos -> Video addons -> Youtube -> Explore Youtube -> Categories -> Music The 1st way will not refresh the current listing of the Music category and show you the cached version it had before moving to main menu The 2nd way will reload all music videos and show you a new list How can I make the 1st way behave like the 2nd one?
(This post was last modified: 2012-04-02 19:31 by Vrok.)
|
| find quote |
paddycarey
Senior Member Joined: Sep 2009 Reputation: 8 |
2012-04-02 19:36
Post: #7
It's most likely that whatever way you're using to call the script isn't calling the plugin correctly. It's more likely to be a skin issue than a plugin issue.
(EDIT: This also happens when calling a plugin from the main menu in T! but I always assumed was by design) I doubt there's anything you can do in the plugin code to stop this as it's not the plugin code at fault (i think) Can you do exactly as you have described above (step by step) and post a full debug log to http://xbmclogs.com/ and it might be more clear. Add-ons: Artwork Downloader, MMA Browser, MMAFighting.com, The Joe Rogan Experience, FightCasts, Deathsquad.tv, Vice.com
(This post was last modified: 2012-04-02 19:38 by paddycarey.)
|
| find quote |
Vrok
Senior Member Posts: 109 Joined: Feb 2011 Reputation: 0 Location: Greece |
2012-04-02 19:40
Post: #8
i will post the logs laterbut till then I know that in the favourites.xml file activatewindow gets called in order to open up the plugin folder.
I don't know how the 2nd way does this and I'd like to know if i can replace activatewindow with another suitable method I'm using aeon nox btw but i'll try this in other skins to check it out |
| find quote |
paddycarey
Senior Member Joined: Sep 2009 Reputation: 8 |
2012-04-02 19:46
Post: #9
yeah that's the problem, activatewindow only seems to call the plugin the first time you run it after boot, but a debug log will confirm that
Add-ons: Artwork Downloader, MMA Browser, MMAFighting.com, The Joe Rogan Experience, FightCasts, Deathsquad.tv, Vice.com |
| find quote |
Vrok
Senior Member Posts: 109 Joined: Feb 2011 Reputation: 0 Location: Greece |
2012-04-02 19:50
Post: #10
yes it does exactly that. any solutions to my problem? can i call anything else from the favourites file?
|
| find quote |

Search
Help