Continuing development.

pull/479/head
Louis Vézina 5 years ago
parent 85cad57b48
commit 732cc056bb

@ -583,7 +583,7 @@ def serieseditor():
missing_count = missing_count[0]
c.execute(
"SELECT tvdbId, title, path_substitution(path), languages, hearing_impaired, sonarrSeriesId, poster, audio_language FROM table_shows ORDER BY title ASC")
"SELECT tvdbId, title, path_substitution(path), languages, hearing_impaired, sonarrSeriesId, poster, audio_language, forced FROM table_shows ORDER BY title ASC")
data = c.fetchall()
c.execute("SELECT code2, name FROM table_settings_languages WHERE enabled = 1")
languages = c.fetchall()
@ -778,7 +778,7 @@ def movieseditor():
missing_count = missing_count[0]
c.execute(
"SELECT tmdbId, title, path_substitution(path), languages, hearing_impaired, radarrId, poster, audio_language FROM table_movies ORDER BY title ASC")
"SELECT tmdbId, title, path_substitution(path), languages, hearing_impaired, radarrId, poster, audio_language, forced FROM table_movies ORDER BY title ASC")
data = c.fetchall()
c.execute("SELECT code2, name FROM table_settings_languages WHERE enabled = 1")
languages = c.fetchall()

@ -64,6 +64,7 @@
<th>Audio language</th>
<th>Subtitles languages</th>
<th>Hearing-impaired</th>
<th>Forced</th>
</tr>
</thead>
<tbody>
@ -88,6 +89,7 @@
%end
</td>
<td>{{!"" if row[4] == None else row[4]}}</td>
<td>{{!"" if row[8] is None else row[8]}}</td>
</tr>
%end
</tbody>
@ -115,6 +117,15 @@
<option value="False">False</option>
</select>
</div>
<div class="field">
<label style='color: white;'>Forced</label>
<select name="forced" class="select ui disabled selection dropdown">
<option value="">No change</option>
<option value="False">False</option>
<option value="True">True</option>
<option value="Both">Both</option>
</select>
</div>
<div class='field'>
<label style='color: white;'><span id='count'>0</span> movies selected</label>
<button type="submit" id="save" name="save" value="save" class="ui disabled blue approve button">Save</button>

@ -64,6 +64,7 @@
<th>Audio language</th>
<th>Subtitles languages</th>
<th>Hearing-impaired</th>
<th>Forced</th>
</tr>
</thead>
<tbody>
@ -88,6 +89,7 @@
%end
</td>
<td>{{!"" if row[4] is None else row[4]}}</td>
<td>{{!"" if row[8] is None else row[8]}}</td>
</tr>
%end
</tbody>
@ -115,6 +117,15 @@
<option value="False">False</option>
</select>
</div>
<div class="field">
<label style='color: white;'>Forced</label>
<select name="forced" class="select ui disabled selection dropdown">
<option value="">No change</option>
<option value="False">False</option>
<option value="True">True</option>
<option value="Both">Both</option>
</select>
</div>
<div class='field'>
<label style='color: white;'><span id='count'>0</span> series selected</label>
<button type="submit" id="save" name="save" value="save" class="ui disabled blue approve button">Save</button>

Loading…
Cancel
Save