* allow unset of osdb or sublight

This commit is contained in:
Reinhard Pointner 2013-03-12 04:42:00 +00:00
parent e33eac84c8
commit d740a89958
1 changed files with 13 additions and 9 deletions

View File

@ -25,16 +25,20 @@ setLogin('sublight.user', sublightUser, sublightPwd)
import net.sourceforge.filebot.*
console.print('Testing OpenSubtitles... ')
WebServices.OpenSubtitles.setUser(osdbUser, osdbPwd)
WebServices.OpenSubtitles.login()
console.println('OK')
if (osdbUser) {
console.print('Testing OpenSubtitles... ')
WebServices.OpenSubtitles.setUser(osdbUser, osdbPwd)
WebServices.OpenSubtitles.login()
console.println('OK')
}
console.print('Testing Sublight... ')
WebServices.Sublight.setClient(sublightClientId, sublightApiKey)
WebServices.Sublight.setUser(sublightUser, sublightPwd)
WebServices.Sublight.getSubtitleList(null, 'Avatar', 2009, 'English')
console.println('OK')
if (sublightUser) {
console.print('Testing Sublight... ')
WebServices.Sublight.setClient(sublightClientId, sublightApiKey)
WebServices.Sublight.setUser(sublightUser, sublightPwd)
WebServices.Sublight.getSubtitleList(null, 'Avatar', 2009, 'English')
console.println('OK')
}
/* --------------------------------------------------------------------- */