Skip to content

Commit

Permalink
fix(smc-output): working enable/disable option (#560)
Browse files Browse the repository at this point in the history
it's not ready yet because we need to open the firewall first anyways.
  • Loading branch information
hairmare authored Dec 11, 2023
1 parent dfbe07b commit 8dceed3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions nowplaying/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,16 @@ def get_track_handler(self): # pragma: no cover
)
)
)
handler.register_observer(
SmcFtpTrackObserver(
options=SmcFtpTrackObserver.Options(
hostname=self.options.dab_smc_ftp_hostname,
username=self.options.dab_smc_ftp_username,
password=self.options.dab_smc_ftp_password,
if self.options.dab_smc:
handler.register_observer(
SmcFtpTrackObserver(
options=SmcFtpTrackObserver.Options(
hostname=self.options.dab_smc_ftp_hostname,
username=self.options.dab_smc_ftp_username,
password=self.options.dab_smc_ftp_password,
)
)
)
)

return handler

Expand Down

0 comments on commit 8dceed3

Please sign in to comment.