From e9da3b39a2b2d9b386fb5c9f1998ec41cfc43588 Mon Sep 17 00:00:00 2001 From: mueslo Date: Thu, 28 Oct 2021 12:56:52 +0200 Subject: [PATCH 1/3] Fix remaster input checkbox id --- pythonbits/bb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonbits/bb.py b/pythonbits/bb.py index e3155f3..6175539 100644 --- a/pythonbits/bb.py +++ b/pythonbits/bb.py @@ -1244,7 +1244,7 @@ class MusicSubmission(AudioSubmission): _cat_id = 'music' _form_type = 'Music' - @form_field('remaster_true', 'checkbox') + @form_field('remaster', 'checkbox') def _render_remaster(self): # todo user input function/module to reduce boilerplating return bool( From 169ee924146e8c291f182eb9814247728e849d02 Mon Sep 17 00:00:00 2001 From: mueslo Date: Mon, 22 Nov 2021 13:57:59 +0100 Subject: [PATCH 2/3] coerce tvdb_id to int --- pythonbits/tvdb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pythonbits/tvdb.py b/pythonbits/tvdb.py index 505eb19..9820212 100644 --- a/pythonbits/tvdb.py +++ b/pythonbits/tvdb.py @@ -112,6 +112,7 @@ def __init__(self, interactive=True): actors=True, apikey=d(api_key)) def search(self, tv_specifier, tvdb_id=None): + tvdb_id = tvdb_id if tvdb_id is None else int(tvdb_id) show = self.tvdb[tvdb_id or tv_specifier.title] season = show[tv_specifier.season] if tv_specifier.episode is not None: From 94131e5302669133dd2adbda4186f65d7d2c2154 Mon Sep 17 00:00:00 2001 From: mueslo Date: Mon, 6 Dec 2021 17:32:15 +0100 Subject: [PATCH 3/3] Propagate headless mode to TVDB --- pythonbits/bb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pythonbits/bb.py b/pythonbits/bb.py index 6175539..16d0fb5 100644 --- a/pythonbits/bb.py +++ b/pythonbits/bb.py @@ -17,6 +17,7 @@ from unidecode import unidecode from requests.exceptions import HTTPError +from . import flags from .config import config from .logging import log from .torrent import make_torrent @@ -697,7 +698,7 @@ def _render_form_title(self): m=" / ".join(self['markers'])) def _render_summary(self): - t = tvdb.TVDB() + t = tvdb.TVDB(interactive=('headless' not in flags)) results = t.search(self['tv_specifier'], self['tvdb_id']) title_i18n = self.tvdb_title_i18n(results[0]) summaries = []