diff --git a/Core.py b/Core.py index ff8189d..231c59a 100644 --- a/Core.py +++ b/Core.py @@ -55,6 +55,9 @@ class Core: if self.__settings__.getSetting('plugin_name') != self.__plugin__: #Every update run first_run_260() + if self.version_check(): + estuary() + self.__settings__.setSetting('first_run_260', 'True') self.__settings__.setSetting('plugin_name', self.__plugin__) #check_network_advancedsettings() @@ -317,7 +320,6 @@ class Core: params = {'mode': 'watched'} searchwindow.main(params) - def swsearch(self, params={}): if len(Searchers().get_active())<1: noActiveSerachers() @@ -330,7 +332,6 @@ class Core: import searchwindow searchwindow.main(params) - def DownloadStatus(self, params={}): db = DownloadDB() get = params.get diff --git a/Localization.py b/Localization.py index fb92526..e535ff5 100644 --- a/Localization.py +++ b/Localization.py @@ -809,6 +809,7 @@ def localize(text): 'Play (from start)':'Lejátszás (az elejétől)', }, 'ru': { + 'Torrenter has a better view style for Kodi 17 default skin.':'У Torrenter есть оптимизированный вид под новый скин Kodi 17.', 'is recommended for Kodi 17 users and now out of beta.': 'рекомендовано пользователям Kodi 17 и вышло из беты.', 'You can disable it usage in Settings.':'Его можно отключить в настройках плагина.', 'Move Up': 'Вверх', diff --git a/addon.xml b/addon.xml index 657ce7b..1c42334 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@  - + diff --git a/functions.py b/functions.py index 9941335..88669f9 100644 --- a/functions.py +++ b/functions.py @@ -1363,7 +1363,7 @@ def get_contentList(url): import Downloader url = urllib.unquote_plus(url) - log('0' + __settings__.getSetting("lastTorrent")) + debug('0' + __settings__.getSetting("lastTorrent")) __settings__.setSetting("lastTorrentUrl", url) classMatch = re.search('(\w+)::(.+)', url) @@ -1374,9 +1374,9 @@ def get_contentList(url): torrent = Downloader.Torrent(userStorageDirectory, url, torrentFilesDirectory=torrentFilesDirectory) - log('1'+__settings__.getSetting("lastTorrent")) + debug('1'+__settings__.getSetting("lastTorrent")) __settings__.setSetting("lastTorrent", torrent.saveTorrent(url)) - log('2'+__settings__.getSetting("lastTorrent")) + debug('2'+__settings__.getSetting("lastTorrent")) append_filesize = __settings__.getSetting("append_filesize") == 'true' @@ -1886,6 +1886,17 @@ def first_run_260(): searchwindow.main() +def estuary(): + if __settings__.getSetting('skin_optimization') not in ['7', '0'] and \ + __settings__.getSetting('ask17_skin_optimization') != 'true': + + yes = xbmcgui.Dialog().yesno('< %s >' % (Localization.localize('Torrenter Update ') + '2.6.0'), + Localization.localize('Torrenter has a better view style for Kodi 17 default skin.'), + Localization.localize('Would you like to try it?'), ) + if yes: + __settings__.setSetting('skin_optimization', '7') + __settings__.setSetting('ask17_skin_optimization', 'true') + def seeking_warning(seek): if __settings__.getSetting('torrent_player')!='1': seek_point = '%02d:%02d:%02d' % ((seek / (60*60)), (seek / 60) % 60, seek % 60)