1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 08:26:57 -05:00

Enable Thumbnail Updating

This commit is contained in:
deathbybandaid 2020-12-01 09:40:03 -05:00
parent 85d3099f96
commit e54005247a
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
<td data-th="Channel Name"><input type="text" name="name" value={{ chan_dict["name"] }}></td>
<td data-th="Channel Calsign"><input type="text" name="callsign" value={{ chan_dict["callsign"] }}></td>
<td data-th="Channel Number"><input type="text" name="number" value={{ chan_dict["number"] }}></td>
<td data-th="Channel Thumbnail"><input type="text" name="number" value={{ chan_dict["thumbnail"] }}></td>
<td data-th="Channel Thumbnail"><input type="text" name="thumbnail" value={{ chan_dict["thumbnail"] }}></td>
<td>
<select name="enabled">
{% if chan_dict["enabled"] %}

View File

@ -78,7 +78,7 @@ class Channels():
updatedict = {}
for key in list(request.form.keys()):
if key != "id":
if key in ["name", "callsign"]:
if key in ["name", "callsign", "thumbnail"]:
updatedict[key] = str(request.form.get(key))
elif key in ["number"]:
updatedict[key] = float(request.form.get(key))