mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-24 06:37:16 -04:00
Fix for manual search when all providers are throttled.
This commit is contained in:
parent
a3956a715c
commit
33dc89b487
1 changed files with 4 additions and 0 deletions
|
@ -541,6 +541,8 @@ class EpisodesSubtitlesManualSearch(Resource):
|
|||
|
||||
data = manual_search(episodePath, language, hi, forced, providers_list, providers_auth, sceneName, title,
|
||||
'series')
|
||||
if not data:
|
||||
data = []
|
||||
row_count = len(data)
|
||||
return jsonify(draw=draw, recordsTotal=row_count, recordsFiltered=row_count, data=data)
|
||||
|
||||
|
@ -936,6 +938,8 @@ class MovieSubtitlesManualSearch(Resource):
|
|||
|
||||
data = manual_search(moviePath, language, hi, forced, providers_list, providers_auth, sceneName, title,
|
||||
'movie')
|
||||
if not data:
|
||||
data = []
|
||||
row_count = len(data)
|
||||
return jsonify(draw=draw, recordsTotal=row_count, recordsFiltered=row_count, data=data)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue