1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-24 00:33:27 +00:00

Merge branch 'development' into python3

This commit is contained in:
Louis Vézina 2019-10-07 20:38:23 -04:00
commit 3f772c96ef
2 changed files with 18 additions and 4 deletions

View file

@ -1133,6 +1133,8 @@ def upgrade_subtitles():
if os.path.exists(path_replace(episode['video_path'])) and int(episode['score']) < 357: if os.path.exists(path_replace(episode['video_path'])) and int(episode['score']) < 357:
episodes_to_upgrade.append(episode) episodes_to_upgrade.append(episode)
count_episode_to_upgrade = len(episodes_to_upgrade)
if settings.general.getboolean('use_radarr'): if settings.general.getboolean('use_radarr'):
upgradable_movies = TableHistoryMovie.select( upgradable_movies = TableHistoryMovie.select(
TableHistoryMovie.video_path, TableHistoryMovie.video_path,
@ -1169,13 +1171,12 @@ def upgrade_subtitles():
for movie in upgradable_movies_not_perfect: for movie in upgradable_movies_not_perfect:
if os.path.exists(path_replace_movie(movie['video_path'])) and int(movie['score']) < 117: if os.path.exists(path_replace_movie(movie['video_path'])) and int(movie['score']) < 117:
movies_to_upgrade.append(movie) movies_to_upgrade.append(movie)
count_movie_to_upgrade = len(movies_to_upgrade)
providers_list = get_providers() providers_list = get_providers()
providers_auth = get_providers_auth() providers_auth = get_providers_auth()
count_episode_to_upgrade = len(episodes_to_upgrade)
count_movie_to_upgrade = len(movies_to_upgrade)
if settings.general.getboolean('use_sonarr'): if settings.general.getboolean('use_sonarr'):
for i, episode in enumerate(episodes_to_upgrade, 1): for i, episode in enumerate(episodes_to_upgrade, 1):
providers = get_providers() providers = get_providers()

View file

@ -29,6 +29,15 @@
margin-bottom: 3em; margin-bottom: 3em;
padding: 1em; padding: 1em;
} }
.fast.backward, .backward, .forward, .fast.forward {
cursor: pointer;
}
.fast.backward, .backward, .forward, .fast.forward { pointer-events: auto; }
.fast.backward.disabled, .backward.disabled, .forward.disabled, .fast.forward.disabled { pointer-events: none; }
.ui.tabular.menu > .disabled.item {
opacity: 0.45 !important;
pointer-events: none !important;
}
</style> </style>
</head> </head>
<body> <body>
@ -69,14 +78,18 @@
<div id="fondblanc" class="ui container"> <div id="fondblanc" class="ui container">
<div class="ui top attached tabular menu"> <div class="ui top attached tabular menu">
<a id="series_tab" class="tabs item active" data-enabled="{{settings.general.getboolean('use_sonarr')}}" data-tab="series">Series <a id="series_tab" class="tabs item active" data-enabled="{{settings.general.getboolean('use_sonarr')}}" data-tab="series">Series
%if settings.general.getboolean('use_sonarr'):
<div class="ui tiny yellow label"> <div class="ui tiny yellow label">
{{wanted_series}} {{wanted_series}}
</div> </div>
%end
</a> </a>
<a id="movies_tab" class="tabs item" data-enabled="{{settings.general.getboolean('use_radarr')}}" data-tab="movies">Movies <a id="movies_tab" class="tabs item" data-enabled="{{settings.general.getboolean('use_radarr')}}" data-tab="movies">Movies
%if settings.general.getboolean('use_radarr'):
<div class="ui tiny green label"> <div class="ui tiny green label">
{{wanted_movies}} {{wanted_movies}}
</div> </div>
%end
</a> </a>
</div> </div>
<div class="ui bottom attached tab segment" data-tab="series"> <div class="ui bottom attached tab segment" data-tab="series">