Private GIT

Skip to content
Snippets Groups Projects
Commit dbda0ec7 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Merge branch 'hotfix-2063' into develop

parents 14b77f16 8ce9877e
Branches
Tags
No related merge requests found
...@@ -40,13 +40,13 @@ provider_urls = {'addic7ed': 'http://www.addic7ed.com', ...@@ -40,13 +40,13 @@ provider_urls = {'addic7ed': 'http://www.addic7ed.com',
SINGLE = 'und' SINGLE = 'und'
def sortedServiceList(): def sortedServiceList():
newList = [] newList = []
lmgtfy = 'http://lmgtfy.com/?q=' lmgtfy = 'http://lmgtfy.com/?q=%s'
curIndex = 0 curIndex = 0
for curService in sickbeard.SUBTITLES_SERVICES_LIST: for curService in sickbeard.SUBTITLES_SERVICES_LIST:
if curService in subliminal.provider_manager.available_providers: if curService in subliminal.provider_manager.available_providers:
newList.append({'name': curService, newList.append({'name': curService,
'url': provider_urls[curService] if curService in provider_urls else (lmgtfy % curService), 'url': provider_urls[curService] if curService in provider_urls else lmgtfy % curService,
'image': curService + '.png', 'image': curService + '.png',
'enabled': sickbeard.SUBTITLES_SERVICES_ENABLED[curIndex] == 1 'enabled': sickbeard.SUBTITLES_SERVICES_ENABLED[curIndex] == 1
}) })
...@@ -55,7 +55,7 @@ def sortedServiceList(): ...@@ -55,7 +55,7 @@ def sortedServiceList():
for curService in subliminal.provider_manager.available_providers: for curService in subliminal.provider_manager.available_providers:
if curService not in [x['name'] for x in newList]: if curService not in [x['name'] for x in newList]:
newList.append({'name': curService, newList.append({'name': curService,
'url': provider_urls[curService] if curService in provider_urls else (lmgtfy % curService), 'url': provider_urls[curService] if curService in provider_urls else lmgtfy % curService,
'image': curService + '.png', 'image': curService + '.png',
'enabled': False, 'enabled': False,
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment