Private GIT

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

Merge branch 'hotfix-2063'

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