From f8a8d207997378dac72146806edcbf846fa69879 Mon Sep 17 00:00:00 2001 From: Kazuki Przyborowski Date: Tue, 23 Feb 2016 05:04:41 -0600 Subject: [PATCH] Yet another small update. --- pymotherless.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pymotherless.py b/pymotherless.py index a7744c9..ab342c3 100755 --- a/pymotherless.py +++ b/pymotherless.py @@ -561,6 +561,12 @@ def get_motherless_links_from_url(httpurl, httpheaders, httpcookie, httplibuse=" if(filewithext[0]=="/images"): filewithoutext = os.path.splitext(filewithext[1])[0]; returnval = get_motherless_links("http://motherless.com/"+filewithoutext, httpheaders, httpcookie, httplibuse="urllib"); + if(filewithext[0]=="/thumbs"): + filewithoutext = os.path.splitext(filewithext[1])[0]; + filewithoutext = filewithoutext.replace("-zoom", ""); + filewithoutext = filewithoutext.replace("-small", ""); + filewithoutext = filewithoutext.replace("-strip", ""); + returnval = get_motherless_links("http://motherless.com/"+filewithoutext, httpheaders, httpcookie, httplibuse="urllib"); return returnval; def get_motherless_external_links(httpurl, httpheaders, httpcookie, httplibuse="urllib"): -- 2.11.4.GIT