@@ -351,6 +351,9 @@ def subliminal(
351
351
debug : bool ,
352
352
logfile : os .PathLike [str ] | None ,
353
353
logfile_level : str ,
354
+ addic7ed : tuple [str , str ],
355
+ opensubtitles : tuple [str , str ],
356
+ opensubtitlescom : tuple [str , str ],
354
357
** kwargs : Any ,
355
358
) -> None :
356
359
"""Subtitles, faster than your thoughts."""
@@ -427,10 +430,14 @@ def subliminal(
427
430
ctx .obj ['refiner_configs' ] = refiner_configs
428
431
429
432
# Deprecated options
430
- deprecated_options = ['addic7ed' , 'opensubtitles' , 'opensubtitlescom' ]
431
- for provider in deprecated_options :
432
- option_value = kwargs .get (provider )
433
- if option_value is not None :
433
+ # To be remove in next version
434
+ deprecated_options = {
435
+ 'addic7ed' : addic7ed ,
436
+ 'opensubtitles' : opensubtitles ,
437
+ 'opensubtitlescom' : opensubtitlescom ,
438
+ }
439
+ for provider , option_value in deprecated_options .items ():
440
+ if option_value is not None : # pragma: no cover
434
441
msg = (
435
442
f'option --{ provider } is deprecated, use --provider.{ provider } .username and '
436
443
f'--provider.{ provider } .password'
0 commit comments