bug fixed and ui tweak

This commit is contained in:
LASER-Yi 2020-09-27 19:47:00 +08:00
parent b3db2da3d8
commit 38732ca47e
2 changed files with 9 additions and 5 deletions

View File

@ -554,7 +554,11 @@ class SubtitleNameInfo(Resource):
def get(self):
name = request.args.get('filename')
if name is not None:
result = guessit(name, options=None)
opts = dict()
opts['type'] = 'episode'
result = guessit(name, options=opts)
if 'subtitle_language' in result:
result['subtitle_language'] = str(result['subtitle_language'])
return jsonify(data=result)
else:
return '', 400

View File

@ -224,7 +224,7 @@
</div>
<div id="massUploadModal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"><span id="mass_upload_title_span"></span></h5><br>
@ -251,7 +251,7 @@
<th style="text-align: left;">Filename</th>
<th style="text-align: left;">Season</th>
<th style="text-align: left;">Episode</th>
<th style="text-align: left;">Action</th>
<th style="text-align: center;">Action</th>
</tr>
</thead>
</table>
@ -1073,7 +1073,7 @@
}
}
return `<input type="text" ${readonly ? 'readonly' : ''} \
class="mass-upload-season-input form-control w-50 ${cls.join(' ')}" \
class="mass-upload-season-input form-control ${cls.join(' ')}" \
value="${data}" />`
}
},
@ -1094,7 +1094,7 @@
}
}
return `<input type="text" ${readonly ? 'readonly' : ''} \
class="mass-upload-episode-input form-control w-50 ${cls.join(' ')}" \
class="mass-upload-episode-input form-control ${cls.join(' ')}" \
value="${data}" />`
}
},