mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-10 08:47:52 +08:00
Removing mediainfo related code.
This commit is contained in:
parent
2792d5f7a7
commit
4b12dea4cf
4 changed files with 2 additions and 48 deletions
|
@ -17,7 +17,6 @@ defaults = {
|
|||
'single_language': 'False',
|
||||
'minimum_score': '90',
|
||||
'use_scenename': 'True',
|
||||
'use_mediainfo': 'True',
|
||||
'use_postprocessing': 'False',
|
||||
'postprocessing_cmd': '',
|
||||
'use_sonarr': 'False',
|
||||
|
|
|
@ -1255,11 +1255,6 @@ def save_settings():
|
|||
settings_general_scenename = 'False'
|
||||
else:
|
||||
settings_general_scenename = 'True'
|
||||
settings_general_mediainfo = request.forms.get('settings_general_mediainfo')
|
||||
if settings_general_mediainfo is None:
|
||||
settings_general_mediainfo = 'False'
|
||||
else:
|
||||
settings_general_mediainfo = 'True'
|
||||
settings_general_embedded = request.forms.get('settings_general_embedded')
|
||||
if settings_general_embedded is None:
|
||||
settings_general_embedded = 'False'
|
||||
|
@ -1342,7 +1337,6 @@ def save_settings():
|
|||
settings.general.single_language = text_type(settings_general_single_language)
|
||||
settings.general.minimum_score = text_type(settings_general_minimum_score)
|
||||
settings.general.use_scenename = text_type(settings_general_scenename)
|
||||
settings.general.use_mediainfo = text_type(settings_general_mediainfo)
|
||||
settings.general.use_postprocessing = text_type(settings_general_use_postprocessing)
|
||||
settings.general.postprocessing_cmd = text_type(settings_general_postprocessing_cmd)
|
||||
settings.general.use_sonarr = text_type(settings_general_use_sonarr)
|
||||
|
|
|
@ -53,19 +53,13 @@ def get_binary(name):
|
|||
binaries_dir = os.path.realpath(os.path.join(os.path.dirname(__file__), '..', 'bin'))
|
||||
|
||||
exe = None
|
||||
if name != 'mediainfo':
|
||||
installed_exe = which(name)
|
||||
installed_exe = which(name)
|
||||
|
||||
if name != 'mediainfo' and installed_exe and os.path.isfile(installed_exe):
|
||||
if installed_exe and os.path.isfile(installed_exe):
|
||||
return installed_exe
|
||||
else:
|
||||
if platform.system() == "Windows": # Windows
|
||||
exe = os.path.abspath(os.path.join(binaries_dir, "Windows", "i386", name, "%s.exe" % name))
|
||||
if exe and not os.path.isfile(exe):
|
||||
if sys.maxsize > 2**32: # is 64bits Python
|
||||
exe = os.path.abspath(os.path.join(binaries_dir, "Windows", "x86_64", name, "%s.dll" % name))
|
||||
else: # is 32bits Python
|
||||
exe = os.path.abspath(os.path.join(binaries_dir, "Windows", "i386", name, "%s.dll" % name))
|
||||
|
||||
elif platform.system() == "Darwin": # MacOSX
|
||||
exe = os.path.abspath(os.path.join(binaries_dir, "MacOSX", "i386", name, name))
|
||||
|
|
|
@ -20,33 +20,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="middle aligned row">
|
||||
<div class="right aligned four wide column">
|
||||
<label>Use MediaInfo</label>
|
||||
</div>
|
||||
<div class="one wide column">
|
||||
% import platform
|
||||
<div id="settings_mediainfo" class="ui toggle checkbox{{' disabled' if platform.system() == 'Linux' else ''}}" data-mediainfo={{settings.general.getboolean('use_mediainfo')}}>
|
||||
<input name="settings_general_mediainfo" type="checkbox">
|
||||
<label></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="collapsed column">
|
||||
<div class="collapsed center aligned column">
|
||||
<div class="ui basic icon" data-tooltip="Use MediaInfo to extract video and audio stream properties." data-inverted="">
|
||||
<i class="help circle large icon"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="collapsed column">
|
||||
<div class="collapsed center aligned column">
|
||||
<div class="ui basic icon" data-tooltip="This settings is only available on Windows and MacOS." data-inverted="">
|
||||
<i class="yellow warning sign icon"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="middle aligned row">
|
||||
<div class="right aligned four wide column">
|
||||
<label>Minimum score for episodes</label>
|
||||
|
@ -579,12 +552,6 @@
|
|||
$("#settings_scenename").checkbox('uncheck');
|
||||
}
|
||||
|
||||
if ($('#settings_mediainfo').data("mediainfo") === "True") {
|
||||
$("#settings_mediainfo").checkbox('check');
|
||||
} else {
|
||||
$("#settings_mediainfo").checkbox('uncheck');
|
||||
}
|
||||
|
||||
if ($('#settings_upgrade_subs').data("upgrade") === "True") {
|
||||
$("#settings_upgrade_subs").checkbox('check');
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue