Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -33,7 +33,7 @@ async def _run_auto_dl_check() -> int:
|
|||||||
if not dm.already_enqueued(c["url"]):
|
if not dm.already_enqueued(c["url"]):
|
||||||
m = re.search(r"\b(20\d{2})\b", c.get("subtitle", ""))
|
m = re.search(r"\b(20\d{2})\b", c.get("subtitle", ""))
|
||||||
year = int(m.group(1)) if m else None
|
year = int(m.group(1)) if m else None
|
||||||
await dm.enqueue_direct(c["url"], c["title"], c.get("subtitle", ""), year, cat)
|
await dm.enqueue(c["url"], c["title"], c.get("subtitle", ""), year, cat)
|
||||||
total += 1
|
total += 1
|
||||||
return total
|
return total
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user