Fix move_videolibrary + alcuni edit

This commit is contained in:
axlt2002
2020-04-11 15:12:06 +02:00
parent 14cd1cee26
commit f2fdb777cf
5 changed files with 13 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.kod" name="Kodi on Demand BETA" version="0.8.1" provider-name="KOD Team"> <addon id="plugin.video.kod" name="Kodi on Demand BETA" version="0.8.1" provider-name="KoD Team">
<requires> <requires>
<import addon="script.module.libtorrent" optional="true"/> <import addon="script.module.libtorrent" optional="true"/>
<import addon="metadata.themoviedb.org"/> <import addon="metadata.themoviedb.org"/>

View File

@@ -581,7 +581,7 @@ def set_content(content_type, silent=False, custom=False):
if not continuar: if not continuar:
msg_text = config.get_localized_string(60047) msg_text = config.get_localized_string(60047)
if continuar: if continuar:
xbmc.executebuiltin('xbmc.addon.opensettings(metadata.themoviedb.org)', True) xbmc.executebuiltin('Addon.OpenSettings(metadata.themoviedb.org)', True)
# Instalar Universal Movie Scraper # Instalar Universal Movie Scraper
elif seleccion == 1: elif seleccion == 1:
@@ -605,7 +605,7 @@ def set_content(content_type, silent=False, custom=False):
if not continuar: if not continuar:
msg_text = config.get_localized_string(70097) msg_text = config.get_localized_string(70097)
if continuar: if continuar:
xbmc.executebuiltin('xbmc.addon.opensettings(metadata.universal)', True) xbmc.executebuiltin('Addon.OpenSettings(metadata.universal)', True)
else: # SERIES else: # SERIES
scraper = [config.get_localized_string(70098), config.get_localized_string(70093)] scraper = [config.get_localized_string(70098), config.get_localized_string(70093)]
@@ -635,7 +635,7 @@ def set_content(content_type, silent=False, custom=False):
if not continuar: if not continuar:
msg_text = config.get_localized_string(60049) msg_text = config.get_localized_string(60049)
if continuar: if continuar:
xbmc.executebuiltin('xbmc.addon.opensettings(metadata.tvdb.com)', True) xbmc.executebuiltin('Addon.OpenSettings(metadata.tvdb.com)', True)
# Instalar The Movie Database # Instalar The Movie Database
elif seleccion == 1: elif seleccion == 1:
@@ -660,7 +660,7 @@ def set_content(content_type, silent=False, custom=False):
if not continuar: if not continuar:
msg_text = config.get_localized_string(60051) msg_text = config.get_localized_string(60051)
if continuar: if continuar:
xbmc.executebuiltin('xbmc.addon.opensettings(metadata.tvshows.themoviedb.org)', True) xbmc.executebuiltin('Addon.OpenSettings(metadata.tvshows.themoviedb.org)', True)
idPath = 0 idPath = 0
idParentPath = 0 idParentPath = 0

View File

@@ -6178,11 +6178,11 @@ msgid "You will be asked to configure The Movie Database for movies and The TVDB
msgstr "" msgstr ""
msgctxt "#80028" msgctxt "#80028"
msgid "The selected folders are already used by the Kodi library. Please change them" msgid "The selected folders are already used by the Kodi library. Please change them properly"
msgstr "" msgstr ""
msgctxt "#80029" msgctxt "#80029"
msgid "The selected folders are already used by the Kodi library. Please change them from the settings menu inside KoD" msgid "The selected folders are already used by the Kodi library. Please change them properly from the settings menu inside KoD"
msgstr "" msgstr ""
msgctxt "#80030" msgctxt "#80030"

View File

@@ -6178,12 +6178,12 @@ msgid "You will be asked to configure The Movie Database for movies and The TVDB
msgstr "Ti verrà chiesto di configurare The Movie Database per i film e The TVDB per le serie TV" msgstr "Ti verrà chiesto di configurare The Movie Database per i film e The TVDB per le serie TV"
msgctxt "#80028" msgctxt "#80028"
msgid "The selected folders are already used by the Kodi library. Please change them" msgid "The selected folders are already used by the Kodi library. Please change them properly"
msgstr "Le cartelle selezionate sono già utilizzate dalla libreria di Kodi. Si prega di cambiarle" msgstr "Le cartelle selezionate sono già utilizzate dalla libreria di Kodi. Si prega di cambiarle opportunamente"
msgctxt "#80029" msgctxt "#80029"
msgid "The selected folders are already used by the Kodi library. Please change them" msgid "The selected folders are already used by the Kodi library. Please change them properly from the settings menu inside KoD"
msgstr "Le cartelle selezionate sono già utilizzate dalla libreria di Kodi. Si prega di cambiarle dal menu impostazioni all'interno di KoD" msgstr "Le cartelle selezionate sono già utilizzate dalla libreria di Kodi. Si prega di cambiarle opportunamente dal menu impostazioni all'interno di KoD"
msgctxt "#80030" msgctxt "#80030"
msgid "The default path and folders will be used. You will be asked to choose and configure the information providers for movies and TV shows" msgid "The default path and folders will be used. You will be asked to choose and configure the information providers for movies and TV shows"

View File

@@ -711,10 +711,10 @@ def move_videolibrary(current_path, new_path, current_movies_folder, new_movies_
filetools.rmdir(new_movies_path) filetools.rmdir(new_movies_path)
if not tvshows_path: if not tvshows_path:
filetools.rmdir(new_tvshows_path) filetools.rmdir(new_tvshows_path)
config.set_setting("videolibrarypath", current_path) config.set_setting("videolibrarypath", backup_current_path)
config.set_setting("folder_movies", current_movies_folder) config.set_setting("folder_movies", current_movies_folder)
config.set_setting("folder_tvshows", current_tvshows_folder) config.set_setting("folder_tvshows", current_tvshows_folder)
xbmc_videolibrary.update_sources(current_path, new_path) xbmc_videolibrary.update_sources(backup_current_path, backup_new_path)
progress.update(100) progress.update(100)
xbmc.sleep(1000) xbmc.sleep(1000)
progress.close() progress.close()