1. hwiechers
  2. mtgwpget

Commits

hwiechers  committed cb5633a

Fixed re for finding the wallpaper in the article.

  • Participants
  • Parent commits 979a449
  • Branches default

Comments (0)

Files changed (1)

File src/mtgwpget.py

View file
 
 def get_wallpaper_url(wallpaper_page_url, size):
     page = open_page(wallpaper_page_url)
-    wallpaper_link = find_link_by_href(page, '{}_Wallpaper\.jpg$'.format(size))
+    wallpaper_link = find_link_by_href(page, '{}_Wallpaper[^.]*\.jpg$'.format(size))
     if not wallpaper_link:
         return None
     return urllib.parse.urljoin(wallpaper_page_url, wallpaper_link)