Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Fix language
Browse files Browse the repository at this point in the history
  • Loading branch information
fugkco committed Oct 15, 2023
1 parent 5e72054 commit fceaee5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions resources/language/English/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@ msgctxt "#32603"
msgid "Unable to connect to Jackett, are your settings correct?"
msgstr ""

msgctxt "#32604"
msgid "Requesting results from Jackett server..."
msgstr ""

msgctxt "#32700"
msgid "Jackett returned error: {}"
msgstr ""
Expand Down
4 changes: 4 additions & 0 deletions resources/language/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ msgctxt "#32603"
msgid "Unable to connect to Jackett, are your settings correct?"
msgstr ""

msgctxt "#32604"
msgid "Requesting results from Jackett server..."
msgstr ""

msgctxt "#32700"
msgid "Jackett returned error: {}"
msgstr ""
Expand Down
4 changes: 3 additions & 1 deletion src/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,11 @@ def _get_with_progress(self, *args, **kwargs):
r = self._session.get(*args, **kwargs)
return r, r.content

prog_from, prog_to = 0, 25
self._update_progress(prog_from, prog_to, 0, 100)

r = self._session.get(stream=True, *args, **kwargs)
total_size = int(r.headers.get('content-length', 0))
prog_from, prog_to = 0, 25
search_resp = b""
for chunk in r.iter_content(64 * 1024):
if chunk:
Expand Down
2 changes: 1 addition & 1 deletion src/jackett.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def search_jackett(p_dialog, payload, method):
return []

log.debug(f"Processing {method} with Jackett")
p_dialog.update(message="Requesting Jackett server...")
p_dialog.update(message=utils.translation(32604))
if method == 'movie':
res = jackett.search_movie(payload["search_title"], payload['year'], payload["imdb_id"])
elif method == 'season':
Expand Down

0 comments on commit fceaee5

Please sign in to comment.