mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -05:00
cherry-pick a Sickbeard pull request add an option to NOT rename .nfo to .nfo-orig
from oldskool:nfo_orig credit to oldskool Fixing issue 2404: Option to NOT rename .nfo to .nfo-orig Conflicts: data/interfaces/default/config_postProcessing.tmpl sickbeard/__init__.py sickbeard/postProcessor.py sickbeard/webserve.py
This commit is contained in:
parent
b47b2e1f58
commit
37c3354325
@ -110,9 +110,13 @@
|
|||||||
<span class="component-title">Move Associated Files</span>
|
<span class="component-title">Move Associated Files</span>
|
||||||
<span class="component-desc">Move srr/srt/sfv/etc files with the episode when processed?</span>
|
<span class="component-desc">Move srr/srt/sfv/etc files with the episode when processed?</span>
|
||||||
</label>
|
</label>
|
||||||
<label class="nocheck clearfix" for="move_associated_files">
|
</div>
|
||||||
<span class="component-title"> </span>
|
|
||||||
<span class="component-desc"><b>NOTE:</b> <i>.nfo</i> will be renamed to <i>.nfo-orig</i> when moved.</span>
|
<div class="field-pair">
|
||||||
|
<input type="checkbox" name="nfo_rename" id="nfo_rename" #if $sickbeard.NFO_RENAME == True then "checked=\"checked\"" else ""# />
|
||||||
|
<label class="clearfix" for="nfo_rename">
|
||||||
|
<span class="component-title">Rename .nfo file</span>
|
||||||
|
<span class="component-desc">Rename the original .nfo file to .nfo-orig to avoid conflicts?</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -210,6 +210,7 @@ PROCESS_AUTOMATICALLY = False
|
|||||||
KEEP_PROCESSED_DIR = False
|
KEEP_PROCESSED_DIR = False
|
||||||
PROCESS_METHOD = None
|
PROCESS_METHOD = None
|
||||||
MOVE_ASSOCIATED_FILES = False
|
MOVE_ASSOCIATED_FILES = False
|
||||||
|
NFO_RENAME = True
|
||||||
TV_DOWNLOAD_DIR = None
|
TV_DOWNLOAD_DIR = None
|
||||||
UNPACK = False
|
UNPACK = False
|
||||||
SKIP_REMOVED_FILES = False
|
SKIP_REMOVED_FILES = False
|
||||||
@ -468,7 +469,7 @@ def initialize(consoleLogging=True):
|
|||||||
USE_SYNOLOGYNOTIFIER, SYNOLOGYNOTIFIER_NOTIFY_ONSNATCH, SYNOLOGYNOTIFIER_NOTIFY_ONDOWNLOAD, SYNOLOGYNOTIFIER_NOTIFY_ONSUBTITLEDOWNLOAD, \
|
USE_SYNOLOGYNOTIFIER, SYNOLOGYNOTIFIER_NOTIFY_ONSNATCH, SYNOLOGYNOTIFIER_NOTIFY_ONDOWNLOAD, SYNOLOGYNOTIFIER_NOTIFY_ONSUBTITLEDOWNLOAD, \
|
||||||
USE_EMAIL, EMAIL_HOST, EMAIL_PORT, EMAIL_TLS, EMAIL_USER, EMAIL_PASSWORD, EMAIL_FROM, EMAIL_NOTIFY_ONSNATCH, EMAIL_NOTIFY_ONDOWNLOAD, EMAIL_NOTIFY_ONSUBTITLEDOWNLOAD, EMAIL_LIST, \
|
USE_EMAIL, EMAIL_HOST, EMAIL_PORT, EMAIL_TLS, EMAIL_USER, EMAIL_PASSWORD, EMAIL_FROM, EMAIL_NOTIFY_ONSNATCH, EMAIL_NOTIFY_ONDOWNLOAD, EMAIL_NOTIFY_ONSUBTITLEDOWNLOAD, EMAIL_LIST, \
|
||||||
USE_LISTVIEW, METADATA_XBMC, METADATA_XBMC_12PLUS, METADATA_MEDIABROWSER, METADATA_PS3, metadata_provider_dict, \
|
USE_LISTVIEW, METADATA_XBMC, METADATA_XBMC_12PLUS, METADATA_MEDIABROWSER, METADATA_PS3, metadata_provider_dict, \
|
||||||
NEWZBIN, NEWZBIN_USERNAME, NEWZBIN_PASSWORD, GIT_PATH, MOVE_ASSOCIATED_FILES, CLEAR_CACHE, dailySearchScheduler, \
|
NEWZBIN, NEWZBIN_USERNAME, NEWZBIN_PASSWORD, GIT_PATH, MOVE_ASSOCIATED_FILES, CLEAR_CACHE, dailySearchScheduler, NFO_RENAME, \
|
||||||
GUI_NAME, HOME_LAYOUT, HISTORY_LAYOUT, DISPLAY_SHOW_SPECIALS, COMING_EPS_LAYOUT, COMING_EPS_SORT, COMING_EPS_DISPLAY_PAUSED, COMING_EPS_MISSED_RANGE, FUZZY_DATING, TRIM_ZERO, DATE_PRESET, TIME_PRESET, TIME_PRESET_W_SECONDS, \
|
GUI_NAME, HOME_LAYOUT, HISTORY_LAYOUT, DISPLAY_SHOW_SPECIALS, COMING_EPS_LAYOUT, COMING_EPS_SORT, COMING_EPS_DISPLAY_PAUSED, COMING_EPS_MISSED_RANGE, FUZZY_DATING, TRIM_ZERO, DATE_PRESET, TIME_PRESET, TIME_PRESET_W_SECONDS, \
|
||||||
METADATA_WDTV, METADATA_TIVO, METADATA_MEDE8ER, IGNORE_WORDS, CALENDAR_UNPROTECTED, CREATE_MISSING_SHOW_DIRS, \
|
METADATA_WDTV, METADATA_TIVO, METADATA_MEDE8ER, IGNORE_WORDS, CALENDAR_UNPROTECTED, CREATE_MISSING_SHOW_DIRS, \
|
||||||
ADD_SHOWS_WO_DIR, USE_SUBTITLES, SUBTITLES_LANGUAGES, SUBTITLES_DIR, SUBTITLES_SERVICES_LIST, SUBTITLES_SERVICES_ENABLED, SUBTITLES_HISTORY, SUBTITLES_FINDER_FREQUENCY, subtitlesFinderScheduler, \
|
ADD_SHOWS_WO_DIR, USE_SUBTITLES, SUBTITLES_LANGUAGES, SUBTITLES_DIR, SUBTITLES_SERVICES_LIST, SUBTITLES_SERVICES_ENABLED, SUBTITLES_HISTORY, SUBTITLES_FINDER_FREQUENCY, subtitlesFinderScheduler, \
|
||||||
@ -657,6 +658,7 @@ def initialize(consoleLogging=True):
|
|||||||
KEEP_PROCESSED_DIR = check_setting_int(CFG, 'General', 'keep_processed_dir', 1)
|
KEEP_PROCESSED_DIR = check_setting_int(CFG, 'General', 'keep_processed_dir', 1)
|
||||||
PROCESS_METHOD = check_setting_str(CFG, 'General', 'process_method', 'copy' if KEEP_PROCESSED_DIR else 'move')
|
PROCESS_METHOD = check_setting_str(CFG, 'General', 'process_method', 'copy' if KEEP_PROCESSED_DIR else 'move')
|
||||||
MOVE_ASSOCIATED_FILES = check_setting_int(CFG, 'General', 'move_associated_files', 0)
|
MOVE_ASSOCIATED_FILES = check_setting_int(CFG, 'General', 'move_associated_files', 0)
|
||||||
|
NFO_RENAME = check_setting_int(CFG, 'General', 'nfo_rename', 1)
|
||||||
CREATE_MISSING_SHOW_DIRS = check_setting_int(CFG, 'General', 'create_missing_show_dirs', 0)
|
CREATE_MISSING_SHOW_DIRS = check_setting_int(CFG, 'General', 'create_missing_show_dirs', 0)
|
||||||
ADD_SHOWS_WO_DIR = check_setting_int(CFG, 'General', 'add_shows_wo_dir', 0)
|
ADD_SHOWS_WO_DIR = check_setting_int(CFG, 'General', 'add_shows_wo_dir', 0)
|
||||||
|
|
||||||
@ -1449,6 +1451,7 @@ def save_config():
|
|||||||
new_config['General']['keep_processed_dir'] = int(KEEP_PROCESSED_DIR)
|
new_config['General']['keep_processed_dir'] = int(KEEP_PROCESSED_DIR)
|
||||||
new_config['General']['process_method'] = PROCESS_METHOD
|
new_config['General']['process_method'] = PROCESS_METHOD
|
||||||
new_config['General']['move_associated_files'] = int(MOVE_ASSOCIATED_FILES)
|
new_config['General']['move_associated_files'] = int(MOVE_ASSOCIATED_FILES)
|
||||||
|
new_config['General']['nfo_rename'] = int(NFO_RENAME)
|
||||||
new_config['General']['process_automatically'] = int(PROCESS_AUTOMATICALLY)
|
new_config['General']['process_automatically'] = int(PROCESS_AUTOMATICALLY)
|
||||||
new_config['General']['unpack'] = int(UNPACK)
|
new_config['General']['unpack'] = int(UNPACK)
|
||||||
new_config['General']['rename_episodes'] = int(RENAME_EPISODES)
|
new_config['General']['rename_episodes'] = int(RENAME_EPISODES)
|
||||||
|
@ -275,7 +275,7 @@ class PostProcessor(object):
|
|||||||
cur_extension = cur_lang + os.path.splitext(cur_extension)[1]
|
cur_extension = cur_lang + os.path.splitext(cur_extension)[1]
|
||||||
|
|
||||||
# replace .nfo with .nfo-orig to avoid conflicts
|
# replace .nfo with .nfo-orig to avoid conflicts
|
||||||
if cur_extension == 'nfo':
|
if cur_extension == 'nfo' and sickbeard.NFO_RENAME == True:
|
||||||
cur_extension = 'nfo-orig'
|
cur_extension = 'nfo-orig'
|
||||||
|
|
||||||
# If new base name then convert name
|
# If new base name then convert name
|
||||||
|
@ -1563,7 +1563,7 @@ class ConfigPostProcessing(IndexHandler):
|
|||||||
wdtv_data=None, tivo_data=None, mede8er_data=None,
|
wdtv_data=None, tivo_data=None, mede8er_data=None,
|
||||||
keep_processed_dir=None, process_method=None, process_automatically=None,
|
keep_processed_dir=None, process_method=None, process_automatically=None,
|
||||||
rename_episodes=None, airdate_episodes=None, unpack=None,
|
rename_episodes=None, airdate_episodes=None, unpack=None,
|
||||||
move_associated_files=None, tv_download_dir=None, naming_custom_abd=None, naming_anime=None,
|
move_associated_files=None, nfo_rename=None, tv_download_dir=None, naming_custom_abd=None, naming_anime=None,
|
||||||
naming_abd_pattern=None, naming_strip_year=None, use_failed_downloads=None,
|
naming_abd_pattern=None, naming_strip_year=None, use_failed_downloads=None,
|
||||||
delete_failed=None, extra_scripts=None, skip_removed_files=None,
|
delete_failed=None, extra_scripts=None, skip_removed_files=None,
|
||||||
naming_custom_sports=None, naming_sports_pattern=None, autopostprocesser_frequency=None):
|
naming_custom_sports=None, naming_sports_pattern=None, autopostprocesser_frequency=None):
|
||||||
@ -1602,6 +1602,7 @@ class ConfigPostProcessing(IndexHandler):
|
|||||||
sickbeard.USE_FAILED_DOWNLOADS = config.checkbox_to_value(use_failed_downloads)
|
sickbeard.USE_FAILED_DOWNLOADS = config.checkbox_to_value(use_failed_downloads)
|
||||||
sickbeard.DELETE_FAILED = config.checkbox_to_value(delete_failed)
|
sickbeard.DELETE_FAILED = config.checkbox_to_value(delete_failed)
|
||||||
sickbeard.SKIP_REMOVED_FILES = config.checkbox_to_value(skip_removed_files)
|
sickbeard.SKIP_REMOVED_FILES = config.checkbox_to_value(skip_removed_files)
|
||||||
|
sickbeard.NFO_RENAME = config.checkbox_to_value(nfo_rename)
|
||||||
|
|
||||||
sickbeard.METADATA_XBMC = xbmc_data
|
sickbeard.METADATA_XBMC = xbmc_data
|
||||||
sickbeard.METADATA_XBMC_12PLUS = xbmc_12plus_data
|
sickbeard.METADATA_XBMC_12PLUS = xbmc_12plus_data
|
||||||
|
Loading…
Reference in New Issue
Block a user