1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-09-11 16:22:24 +02:00

Ich hab mal ins Datenblatt geschaut.

Dabei hat sich herausgestellt, dass die regex hessischen Ursprungs war.
Außerdem hat Instagram wieder irgendwas an den URLs geändert.
This commit is contained in:
André Koch-Kramer 2016-06-23 20:55:50 +02:00
parent e837c8ab5a
commit 4dedc86556

View File

@ -88,7 +88,7 @@ def download_profilepic(name, url):
if os.path.isfile(filename):
print(filename + ' already exists')
return None
m = re.search('http.*://.*instagram.*[^/]+\.(com|net)/[^/]+/.', url)
m = re.search('http.*://.*instagram.*[^/]*\.(com|net)/[^/]+/.', url)
if m is None:
raise DownloaderException("url \'" + url + "\' could not be processed")
index = len(m.group(0))-1