Ver código fonte

Oops, url is loaded via JS :(

Colin Powell 2 anos atrás
pai
commit
945776b885
1 arquivos alterados com 1 adições e 1 exclusões
  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