Explorar el Código

Oops, url is loaded via JS :(

Colin Powell hace 2 años
padre
commit
945776b885
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      vrobbler/apps/podcasts/scrapers.py

+ 1 - 1
vrobbler/apps/podcasts/scrapers.py

@@ -29,7 +29,7 @@ def get_url_from_soup(soup) -> Optional[int]:
     try:
         url_tag = soup.find("div", class_="AZqljb JSLBqe")
         if url_tag:
-            url = url_tag["data-feed"]
+            url = url_tag.get("data-feed")
     except ValueError:
         pass
     return url