From c4867acceb66db08a402cf310e62749ab8213433 Mon Sep 17 00:00:00 2001 From: Kazuki Suzuki Przyborowski Date: Wed, 30 Jan 2019 16:36:13 -0600 Subject: [PATCH] Add files via upload --- pymotherless.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pymotherless.py b/pymotherless.py index e358472..c50b269 100755 --- a/pymotherless.py +++ b/pymotherless.py @@ -1096,11 +1096,11 @@ def get_motherless_links(httpurl, httpheaders, httpcookie, httplibuse="urllib", mlesstitle = re.findall(mregex_gettitle, mrtext); mregex_geturlone = re.escape("__fileurl = '")+'?\'?([^"\'>]*)'+re.escape("';"); mlesslinkone = re.findall(mregex_geturlone, mrtext); - mregex_geturlonetype = re.escape("https://")+"cdn([0-9]+)\."+"(images|videos)"+re.escape(".motherlessmedia.com/")+"(images|videos)"+re.escape("/")+"([\w\/\?\&\=\.\-]+)"; + mregex_geturlonetype = re.escape("https://")+"cdn([0-9]+)\-"+"(images|videos)"+re.escape(".motherlessmedia.com/")+"(images|videos)"+re.escape("/")+"([\w\/\?\&\=\.\-]+)"; mlesslinkonetype = re.findall(mregex_geturlonetype, mrtext); mregex_geturltwo = re.escape("]*)'+re.escape("\">"); mlesslinktwo = re.findall(mregex_geturltwo, mrtext); - mregex_geturltwotype = re.escape("https://")+"cdn([0-9]+)\."+"(images|thumbs)"+re.escape(".motherlessmedia.com/")+"(images|thumbs)"+re.escape("/")+"([\w\/\?\&\=\.\-]+)"; + mregex_geturltwotype = re.escape("https://")+"cdn([0-9]+)\-"+"(images|thumbs)"+re.escape(".motherlessmedia.com/")+"(images|thumbs)"+re.escape("/")+"([\w\/\?\&\=\.\-]+)"; mlesslinktwotype = re.findall(mregex_geturltwotype, mrtext); filenameext = os.path.basename(urlparse.urljoin(mlesslinkone[0], urlparse.urlparse(mlesslinkone[0]).path)); filename, fileextension = os.path.splitext(filenameext); -- 2.11.4.GIT