Przeglądaj źródła

[scrobblers] Fix missing r in regex string

Colin Powell 1 miesiąc temu
rodzic
commit
48114aee5e
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      vrobbler/apps/scrobbles/scrobblers.py

+ 2 - 2
vrobbler/apps/scrobbles/scrobblers.py

@@ -315,7 +315,7 @@ def manual_scrobble_from_url(
     # Try generic search for any URL with digit-based IDs
     if not item_id:
         try:
-            item_id = re.findall("\d+", url)[0]
+            item_id = re.findall(r"\d+", url)[0]
         except IndexError:
             pass
 
@@ -477,7 +477,7 @@ def todoist_scrobble_task(
 
 
 def manual_scrobble_task(url: str, user_id: int, action: Optional[str] = None):
-    source_id = re.findall("\d+", url)[0]
+    source_id = re.findall(r"\d+", url)[0]
 
     if "todoist" in url:
         source = "Todoist"