Resta in Seed: se questa opzione è attiva il file resta in seed
finché non viene eliminato dalla lista dei download
This commit is contained in:
@@ -6003,6 +6003,14 @@ msgctxt "#70804"
|
||||
msgid "Next extraction..."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#70805"
|
||||
msgid "Stay on seed"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#70806"
|
||||
msgid "Changing this parameter permanently overwrites the Elementum settings.\nAre you sure you want to continue?"
|
||||
msgstr ""
|
||||
|
||||
# DNS start [ settings and declaration ]
|
||||
msgctxt "#707401"
|
||||
msgid "Enable DNS check alert"
|
||||
|
||||
@@ -6003,6 +6003,14 @@ msgctxt "#70804"
|
||||
msgid "Next extraction..."
|
||||
msgstr "Estrazione successiva..."
|
||||
|
||||
msgctxt "#70805"
|
||||
msgid "Stay on seed"
|
||||
msgstr "Resta in seed"
|
||||
|
||||
msgctxt "#70806"
|
||||
msgid "Changing this parameter permanently overwrites the Elementum settings.\nAre you sure you want to continue?"
|
||||
msgstr "Modificando questo parametro vengono sovrascritte permanentemente le impostazioni di Elementum.\nSicuro di Voler continuare?"
|
||||
|
||||
# DNS start [ settings and declaration ]
|
||||
msgctxt "#707401"
|
||||
msgid "Enable DNS check alert"
|
||||
|
||||
@@ -69,7 +69,8 @@
|
||||
<setting id="debriders_config" type="action" label="60552" action="RunPlugin(plugin://plugin.video.kod/?ew0KICAgICJhY3Rpb24iOiAic2VydmVyc19tZW51IiwNCiAgICAiY2hhbm5lbCI6ICJzaG9ydGN1dHMiLA0KCSJ0eXBlIjogImRlYnJpZGVycyINCn0==)"/>
|
||||
<setting label="70578" type="lsep"/>
|
||||
<!-- <setting id="torrent_config" type="action" label="70253" action="RunPlugin(plugin://plugin.video.kod/?ew0KICAgICJhY3Rpb24iOiJzZXR0aW5nX3RvcnJlbnQiLA0KICAgICJjaGFubmVsIjoic2V0dGluZyINCn0=)"/> -->
|
||||
<setting id="quasar_install" type="action" label="70785" action="RunPlugin(plugin://plugin.video.kod/?ew0KICAgICJhY3Rpb24iOiJkb3dubG9hZCIsDQogICAgImNoYW5uZWwiOiJxdWFzYXJfZG93bmxvYWQiDQp9)"/>
|
||||
<setting id="elementum_on_seed" type="bool" label="70805" default="false"/>
|
||||
<setting id="elementum_install" type="action" label="70785" action="RunPlugin(plugin://plugin.video.kod/?ew0KICAgICJhY3Rpb24iOiJkb3dubG9hZCIsDQogICAgImNoYW5uZWwiOiJxdWFzYXJfZG93bmxvYWQiDQp9)"/>
|
||||
</category>
|
||||
|
||||
<!-- Search -->
|
||||
|
||||
@@ -113,7 +113,7 @@ def elementum_monitor():
|
||||
jsontools.update_node(4, Monitor[name]['file'], 'downloadStatus', path, silent=True)
|
||||
if status in ['Paused']:
|
||||
jsontools.update_node(0, Monitor[name]['file'], 'downloadStatus', path, silent=True)
|
||||
if status in ['Seeding', 'Finished']:
|
||||
if status in ['Seeding', 'Finished'] and not config.get_setting('elementum_on_seed'):
|
||||
monitor_update(TorrentPath, name, remove=True)
|
||||
dlJson = jsontools.load(open(filetools.join(path, Monitor[name]['file']), "r").read())
|
||||
jsontools.update_node(dlJson['downloadSize'], Monitor[name]['file'], 'downloadCompleted', path, silent=True)
|
||||
@@ -200,7 +200,7 @@ def find_file(hash):
|
||||
def elementum_actions(parameter, TorrentHash):
|
||||
elementum_setting, elementum_host, TorrentPath = setting()
|
||||
if elementum_setting:
|
||||
if parameter == 'delete' : monitor_update(TorrentPath, TorrentHash, remove=True)
|
||||
if parameter == 'delete': monitor_update(TorrentPath, TorrentHash, remove=True)
|
||||
requests.get('%s/%s/%s' %(elementum_host, parameter, TorrentHash))
|
||||
|
||||
|
||||
|
||||
@@ -342,6 +342,10 @@ class AddonMonitor(xbmc.Monitor):
|
||||
schedule.clear('videolibrary')
|
||||
self.scheduleVideolibrary()
|
||||
|
||||
if self.settings_pre.get('elementum_on_seed') != settings_post.get('elementum_on_seed') and settings_post.get('elementum_on_seed'):
|
||||
if not platformtools.dialog_yesno(config.get_localized_string(70805), config.get_localized_string(70806)):
|
||||
config.set_setting('elementum_on_seed', False)
|
||||
|
||||
self.settings_pre = settings_post
|
||||
|
||||
def onScreensaverActivated(self):
|
||||
|
||||
Reference in New Issue
Block a user