From d72ceb92d5637a49f7004f9bb1e172034ed6b062 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Fri, 4 Sep 2015 00:37:05 +0200 Subject: [PATCH] BloomingFaeries: Remove imageUrlModifier (not needed). --- dosagelib/plugins/b.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dosagelib/plugins/b.py b/dosagelib/plugins/b.py index d350e6730..2498acbe4 100644 --- a/dosagelib/plugins/b.py +++ b/dosagelib/plugins/b.py @@ -157,15 +157,10 @@ class BloomingFaeries(_BasicScraper): rurl = escape(url) stripUrl = url + 'comic/public/%s/' firstStripUrl = stripUrl % "pit-stop" - imageSearch = compile(tagre("img", "src", r'http://www.bloomingfaeries.com/wp-content/uploads([^"]+)', after='title')) + imageSearch = compile(tagre("img", "src", r'(http://www.bloomingfaeries.com/wp-content/uploads[^"]+)', after='title')) prevSearch = compile(tagre("a", "href", r'([^"]+)', after='comic-nav-base comic-nav-previous')) help = 'Index format: stripname' - @classmethod - def imageUrlModifier(cls, imageUrl, data): - if imageUrl: - return imageUrl.replace("http://www.bloomingfaeries.com/","http://www.bloomingfaeries.com/wp-content/uploads/") - @classmethod def namer(cls, imageUrl, pageUrl): bf = imageUrl.split('/')