Skip to content

Commit 909c266

Browse files
Format Python code with Black
1 parent 2b03341 commit 909c266

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

app/api/torznab/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,3 @@
6969
"list_available_languages_cached",
7070
"upsert_availability",
7171
]
72-

app/api/torznab/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def torznab_api(
6060
# --- SEARCH (generic) ---
6161
if t == "search":
6262
import app.api.torznab as tn
63+
6364
logger.debug("Handling 'search' request.")
6465
rss, channel = _rss_root()
6566
q_str = (q or "").strip()
@@ -77,9 +78,7 @@ def torznab_api(
7778
language=TORZNAB_TEST_LANGUAGE,
7879
provider=None,
7980
)
80-
guid = (
81-
f"aw:{TORZNAB_TEST_SLUG}:s{TORZNAB_TEST_SEASON}e{TORZNAB_TEST_EPISODE}:{TORZNAB_TEST_LANGUAGE}"
82-
)
81+
guid = f"aw:{TORZNAB_TEST_SLUG}:s{TORZNAB_TEST_SEASON}e{TORZNAB_TEST_EPISODE}:{TORZNAB_TEST_LANGUAGE}"
8382
now = datetime.now(timezone.utc)
8483

8584
_build_item(
@@ -190,6 +189,7 @@ def torznab_api(
190189

191190
# require at least q, and either both season+ep or only season (we'll default ep=1)
192191
import app.api.torznab as tn
192+
193193
if q is None or season is None:
194194
rss, _channel = _rss_root()
195195
xml = ET.tostring(rss, encoding="utf-8", xml_declaration=True).decode("utf-8")

0 commit comments

Comments
 (0)