--- android.py 2014-11-04 09:59:00.000000000 +0100
+++ android.py 2015-01-07 11:10:04.078375142 +0100
@@ -57,10 +57,10 @@
if tag in line:
in_download = True
if in_download:
- p = re.search(r'href="(.*)">', line)
+ p = re.search(r'href="(.*)"', line)
with suppress(AttributeError):
url = p.group(1)
- p = re.search(r'
(\w+) | ', line)
+ p = re.search(r'([0-9a-f]+) | ', line)
with suppress(AttributeError):
md5sum = p.group(1)
if "" in line:
@@ -87,7 +87,7 @@
def parse_download_link(self, line, in_download):
"""Parse Android Studio download link, expect to find a md5sum and a url"""
- return self.category.parse_download_link('id="linux-studio"', line, in_download)
+ return self.category.parse_download_link('id="linux-bundle"', line, in_download)
def create_launcher(self):
"""Create the Android Studio launcher"""