예제 #1
0
 def url_matches(url):
     """
     This matches all tumblr urls
     """
     if BasePlugin.get_basic_matcher('tumblr.com').match(url):
         return True
     else:
         return False
예제 #2
0
 def url_matches(url):
     """
     This matches all of imgur
     """
     if BasePlugin.get_basic_matcher('imgur.com').match(url):
         return True
     else:
         return False
예제 #3
0
 def url_matches(url):
     """
     This matches a gfycat link
     """
     if BasePlugin.get_basic_matcher('gfycat.com').match(url):
         return True
     else:
         return False
예제 #4
0
 def url_matches(url):
     """
     This matches 500px photo pages
     """
     if BasePlugin.get_basic_matcher('500px.com').match(url):
         return True
     else:
         return False
예제 #5
0
 def url_matches(url):
     """
     This matches only wallbase user collections.
     """
     if BasePlugin.get_basic_matcher('wallbase.cc').match(url):
         return True
     else:
         return False
예제 #6
0
 def url_matches(url):
     """
     This is matches all deviant art pages
     """
     if BasePlugin.get_basic_matcher('deviantart.com').match(url):
         return True
     else:
         return False
예제 #7
0
 def url_matches(url):
     """
     This matches flickr photo pages
     """
     #QUESTION: is /photos needed here?
     flickr_pat = BasePlugin.get_basic_matcher('flickr.com/photos')
     if flickr_pat.match(url):
         return True
     else:
         return False
예제 #8
0
 def test_basic_matcher(self):
     matcher = BasePlugin.get_basic_matcher("tangerinepulsar.com")
     self.assertTrue(matcher.match("http://tangerinepulsar.com"))