mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-16 14:25:02 -05:00
* allow unset of osdb or sublight
This commit is contained in:
parent
e33eac84c8
commit
d740a89958
@ -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')
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------- */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user