Explorar el Código

[scrobblers] Fix missing r in regex string

Colin Powell hace 1 mes
padre
commit
48114aee5e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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"