Esempio n. 1
0
 def validate_config(self, config):
     if not config.getboolean('soundcloud', 'enabled'):
         return
     if not config.get('soundcloud', 'auth_token'):
         raise ExtensionError("In order to use SoundCloud extension you\
          must provide auth_token, for more information referrer to \
          https://github.com/mopidy/mopidy-soundcloud/")
Esempio n. 2
0
 def validate_config(self, config):  # no_coverage
     if not config.getboolean('soundcloud', 'enabled'):
         return
     if not config.get('soundcloud', 'auth_token'):
         raise ExtensionError(
             'In order to use SoundCloud extension you must provide an '
             'auth token. For more information refer to '
             'https://github.com/mopidy/mopidy-soundcloud/')
Esempio n. 3
0
 def validate_config(self, config):  # no_coverage
     if not config.getboolean('soundcloud', 'enabled'):
         return
     if not config.get('soundcloud', 'auth_token'):
         raise ExtensionError(
             'In order to use SoundCloud extension you must provide an '
             'auth token. For more information refer to '
             'https://github.com/mopidy/mopidy-soundcloud/')
Esempio n. 4
0
 def validate_config(self, config):  # no_coverage
     if not config.getboolean('plex', 'enabled'):
         return
     if not config.get('plex', 'server'):
         raise exceptions.ExtensionError(
             'In order to use the Plex Music extension you must provide a '
             'server address. For more information refer to '
             'https://github.com/havardgulldahl/mopidy-plex/')
Esempio n. 5
0
 def validate_config(self, config):  # no_coverage
     if not config.getboolean("soundcloud", "enabled"):
         return
     if not config.get("soundcloud", "auth_token"):
         raise ExtensionError(
             "In order to use SoundCloud extension you must provide an "
             "auth token. For more information refer to "
             "https://github.com/mopidy/mopidy-soundcloud/"
         )
Esempio n. 6
0
    def validate_config(self, config):  # no_coverage
        if not config.getboolean("azure", "enabled"):
            return

        if not config.get("azure", "account_key"):
            raise ExtensionError("Azure account_key missing")

        if not config.get("azure", "account_name"):
            raise ExtensionError("Azure account_name missing")

        if not config.get("azure", "container"):
            raise ExtensionError("Azure container missing")
Esempio n. 7
0
 def validate_config(self, config):
     if not config.getboolean("qobuz", "enabled"):
         return
Esempio n. 8
0
 def validate_config(self, config):
     if not config.getboolean('vkontakte', 'enabled'):
         return
Esempio n. 9
0
 def validate_config(self, config):  # no_coverage
     if not config.getboolean('mixcloud', 'enabled'):
         return
Esempio n. 10
0
 def validate_config(self, config):  # no_coverage
     if not config.getboolean('mixcloud', 'enabled'):
         return