Skip to content

Commit

Permalink
Add SNI_SUPPORTED
Browse files Browse the repository at this point in the history
Add SNI_SUPPORTED
  • Loading branch information
tigranl committed Dec 6, 2016
1 parent 91819b2 commit efa9041
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions beetsplug/fetchart.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def fetch_image(self, candidate, extra):
class CoverArtArchive(RemoteArtSource):
NAME = u"Cover Art Archive"

if ui.SNI_SUPPORTED >= (2, 7, 9):
if uti.SNI_SUPPORTED:
URL = 'https://coverartarchive.org/release/{mbid}/front'
GROUP_URL = 'https://coverartarchive.org/release-group/{mbid}/front'
else:
Expand All @@ -314,7 +314,7 @@ def get(self, album, extra):

class Amazon(RemoteArtSource):
NAME = u"Amazon"
if ui.SNI_SUPPORTED >= (2, 7, 9):
if util.SNI_SUPPORTED:
URL = 'https://images.amazon.com/images/P/%s.%02i.LZZZZZZZ.jpg'
else:
URL = 'http://images.amazon.com/images/P/%s.%02i.LZZZZZZZ.jpg'
Expand All @@ -331,7 +331,7 @@ def get(self, album, extra):

class AlbumArtOrg(RemoteArtSource):
NAME = u"AlbumArt.org scraper"
if ui.SNI_SUPPORTED >= (2, 7, 9):
if util.SNI_SUPPORTED:
URL = 'https://www.albumart.org/index_detail.php'
else:
URL = 'http://www.albumart.org/index_detail.php'
Expand Down Expand Up @@ -404,7 +404,7 @@ def get(self, album, extra):
class FanartTV(RemoteArtSource):
"""Art from fanart.tv requested using their API"""
NAME = u"fanart.tv"
if ui.SNI_SUPPORTED >= (2, 7, 9):
if util.SNI_SUPPORTED:
API_URL = 'https://webservice.fanart.tv/v3/'
else:
API_URL = 'htts://webservice.fanart.tv/v3/'
Expand Down Expand Up @@ -500,7 +500,7 @@ def get(self, album, extra):

class Wikipedia(RemoteArtSource):
NAME = u"Wikipedia (queried through DBpedia)"
if ui.SNI_SUPPORTED >= (2, 7, 9):
if uti.SNI_SUPPORTED:
DBPEDIA_URL = 'https://dbpedia.org/sparql'
WIKIPEDIA_URL = 'https://en.wikipedia.org/w/api.php'
else:
Expand Down

0 comments on commit efa9041

Please sign in to comment.