File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 6969 "list_available_languages_cached" ,
7070 "upsert_availability" ,
7171]
72-
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments