Browse Source

Add ClearAllCache and ClearMetaCache to Tools navigator

master
I-A-C 1 year ago
parent
commit
1ae4559ffe

+ 8
- 0
plugin.video.exodusredux/default.py View File

@@ -153,6 +153,14 @@ elif action == 'clearCache':
elif action == 'clearCacheSearch':
from resources.lib.indexers import navigator
navigator.navigator().clearCacheSearch()
elif action == 'clearAllCache':
from resources.lib.indexers import navigator
navigator.navigator().clearCacheAll()
elif action == 'clearMetaCache':
from resources.lib.indexers import navigator
navigator.navigator().clearCacheMeta()
elif action == 'infoCheck':
from resources.lib.indexers import navigator

+ 142
- 18
plugin.video.exodusredux/resources/language/English (US)/strings.po View File

@@ -220,23 +220,23 @@ msgid "[B]SETTINGS[/B] : Providers"
msgstr ""
msgctxt "#32048"
msgid "[B]Exodus Redux[/B] : Downloads"
msgid "[B]EXODUS REDUX[/B] : Downloads"
msgstr ""
msgctxt "#32049"
msgid "[B]Exodus Redux[/B] : Viewtypes"
msgid "[B]EXODUS REDUX[/B] : Viewtypes"
msgstr ""
msgctxt "#32050"
msgid "[B]Exodus Redux[/B] : Clear providers..."
msgid "[B]EXODUS REDUX[/B] : Clear providers..."
msgstr ""
msgctxt "#32051"
msgid "[B]Exodus Redux[/B] : Clear metadata..."
msgid "[B]EXODUS REDUX[/B] : Clear metadata..."
msgstr ""
msgctxt "#32052"
msgid "[B]Exodus Redux[/B] : Clear cache..."
msgid "[B]EXODUS REDUX[/B] : Clear cache..."
msgstr ""
msgctxt "#32053"
@@ -776,7 +776,7 @@ msgid "Are you sure?"
msgstr ""
msgctxt "#32556"
msgid "[B]Exodus Redux[/B] : Library"
msgid "[B]EXODUS REDUX[/B] : Library"
msgstr ""
msgctxt "#32557"
@@ -784,15 +784,15 @@ msgid "[B]LIBRARY[/B] : Settings"
msgstr ""
msgctxt "#32558"
msgid "[B]Exodus Redux[/B] : Update library..."
msgid "[B]EXODUS REDUX[/B] : Update library..."
msgstr ""
msgctxt "#32559"
msgid "[B]Exodus Redux[/B] : Movie folder..."
msgid "[B]EXODUS REDUX[/B] : Movie folder..."
msgstr ""
msgctxt "#32560"
msgid "[B]Exodus Redux[/B] : TV folder..."
msgid "[B]EXODUS REDUX[/B] : TV folder..."
msgstr ""
msgctxt "#32561"
@@ -823,22 +823,146 @@ msgctxt "#32571"
msgid "Hide movies in cinema"
msgstr ""
msgctxt "#32372"
msgid "When playback ends..."
msgctxt "#32572"
msgid "Protected Link. Please enter account credentials in the settings."
msgstr ""
msgctxt "#32373"
msgid "Force container refresh"
msgctxt "#32580"
msgid "Films/TV Movies"
msgstr ""
msgctxt "#32374"
msgid "Enable Debug"
msgctxt "#32581"
msgid "Results Limit"
msgstr ""
msgctxt "#32580"
msgid "Films/TV Movies"
msgctxt "#32582"
msgid "Personal API keys provide quicker API responses."
msgstr ""
msgctxt "#32583"
msgid "Become a VIP member for many benefits at: https://fanart.tv/vip"
msgstr ""
msgctxt "#32584"
msgid "Sort order for Trakt Watched Progress"
msgstr ""
msgctxt "#32585"
msgid "Recently aired"
msgstr ""
msgctxt "#32586"
msgid "Recently watched"
msgstr ""
msgctxt "#32587"
msgid "Show Extra Source Info"
msgstr ""
msgctxt "#32588"
msgid "Premium Source Identifier Color"
msgstr ""
msgctxt "#32589"
msgid "Blue"
msgstr ""
msgctxt "#32590"
msgid "Red"
msgstr ""
msgctxt "#32591"
msgid "Yellow"
msgstr ""
msgctxt "#32592"
msgid "Deep Pink"
msgstr ""
msgctxt "#32593"
msgid "Cyan"
msgstr ""
msgctxt "#32594"
msgid "Lawn Green"
msgstr ""
msgctxt "#32595"
msgid "Gold"
msgstr ""
msgctxt "#32596"
msgid "Magenta"
msgstr ""
msgctxt "#32597"
msgid "Yellow Green"
msgstr ""
msgctxt "#32598"
msgid "No Color"
msgstr ""
msgctxt "#32599"
msgid "Getting genre information from Trakt"
msgstr ""
msgctxt "#32600"
msgid "Preparing sources"
msgstr ""
msgctxt "#32601"
msgid "Total"
msgstr ""
msgctxt "#32602"
msgid "Waiting for"
msgstr ""
msgctxt "#32603"
msgid "New search..."
msgstr ""
msgctxt "#32604"
msgid "[B]EXODUS REDUX[/B] : Clear search history..."
msgstr ""
msgctxt "#32605"
msgid "Click to clear search history"
msgstr ""
msgctxt "#32606"
msgid "Prem"
msgstr ""
msgctxt "#32607"
msgid "Normal"
msgstr ""
msgctxt "#32608"
msgid "Auto Updating Trakt Library"
msgid "Auto Syncing Trakt Library"
msgstr ""
msgctxt "#32613"
msgid "[B]EXODUS REDUX[/B] : Clear All Cache..."
msgstr ""
msgctxt "#32614"
msgid "[B]EXODUS REDUX[/B] : Clear Meta Cache..."
msgstr ""
msgctxt "#32616"
msgid "Debugging"
msgstr ""
msgctxt "#32617"
msgid "Debug Log"
msgstr ""
msgctxt "#32618"
msgid "Kodi Log"
msgstr ""
msgctxt "#32619"
msgid "Addon Log"
msgstr ""

+ 12
- 4
plugin.video.exodusredux/resources/language/English/strings.po View File

@@ -220,7 +220,7 @@ msgid "[B]SETTINGS[/B] : Providers"
msgstr ""
msgctxt "#32048"
msgid "[B]Exodus Redux[/B] : Downloads"
msgid "[B]EXODUS REDUX[/B] : Downloads"
msgstr ""
msgctxt "#32049"
@@ -784,15 +784,15 @@ msgid "[B]LIBRARY[/B] : Settings"
msgstr ""
msgctxt "#32558"
msgid "[B]Exodus Redux[/B] : Update library..."
msgid "[B]EXODUS REDUX[/B] : Update library..."
msgstr ""
msgctxt "#32559"
msgid "[B]Exodus Redux[/B] : Movie folder..."
msgid "[B]EXODUS REDUX[/B] : Movie folder..."
msgstr ""
msgctxt "#32560"
msgid "[B]Exodus Redux[/B] : TV folder..."
msgid "[B]EXODUS REDUX[/B] : TV folder..."
msgstr ""
msgctxt "#32561"
@@ -943,6 +943,14 @@ msgctxt "#32608"
msgid "Auto Syncing Trakt Library"
msgstr ""
msgctxt "#32613"
msgid "[B]EXODUS REDUX[/B] : Clear All Cache..."
msgstr ""
msgctxt "#32614"
msgid "[B]EXODUS REDUX[/B] : Clear Meta Cache..."
msgstr ""
msgctxt "#32616"
msgid "Debugging"
msgstr ""

+ 0
- 1
plugin.video.exodusredux/resources/settings.xml View File

@@ -119,7 +119,6 @@
<setting id="furk.api" type="text" label="Furk API Key" default="" />
<setting id="furk.mod.level" type="labelenum" label="Set Furk Moderation Level" default="Yes" values="No|Yes|Full" />
<setting id="furk.limit" label="Limit results" type="slider" default="25" range="5,5,200" option="int" />
<setting id="furk.auto.resolve" label="Auto Resolve Furk Packs" type="labelenum" default="Both" values="Both|Neither|Movies Only|Episodes Only"/>
<setting type="sep" />
<setting type="lsep" label="segos.es" />
<setting type="lsep" label="Need for more sources in PL scrapper segos" />

+ 4
- 2
script.module.exodusredux/lib/resources/lib/indexers/navigator.py View File

@@ -243,6 +243,8 @@ class navigator:
self.addDirectoryItem(32050, 'clearSources', 'tools.png', 'DefaultAddonProgram.png')
self.addDirectoryItem(32604, 'clearCacheSearch', 'tools.png', 'DefaultAddonProgram.png')
self.addDirectoryItem(32052, 'clearCache', 'tools.png', 'DefaultAddonProgram.png')
self.addDirectoryItem(32614, 'clearMetaCache', 'tools.png', 'DefaultAddonProgram.png')
self.addDirectoryItem(32613, 'clearAllCache', 'tools.png', 'DefaultAddonProgram.png')
self.addDirectoryItem(32073, 'authTrakt', 'trakt.png', 'DefaultAddonProgram.png')
self.endDirectory()
@@ -358,7 +360,7 @@ class navigator:
control.setSetting('tvsearch', '')
control.setSetting('moviesearch', '')
control.refresh()
def clearCacheAll(self):
control.idle()
yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '')
@@ -366,7 +368,7 @@ class navigator:
from resources.lib.modules import cache
cache.cache_clear_all()
control.infoDialog(control.lang(32057).encode('utf-8'), sound=True, icon='INFO')
def addDirectoryItem(self, name, query, thumb, icon, context=None, queue=False, isAction=True, isFolder=True):
try: name = control.lang(name).encode('utf-8')
except: pass

Loading…
Cancel
Save