music2storage/__init__.py
def add_to_queue(self, url):
        """
        Adds an URL to the download queue.

        :param str url: URL to the music service track
        """

        if self.connection_handler.current_music is None:
            log.error('Music service is not initialized. URL was not added to queue.')
        elif self.connection_handler.current_storage is None:
            log.error('Drive service is not initialized. URL was not added to queue.')
        else:
            self.queues['download'].put(url)
def add_to_queue(self, url):
        """
        Adds an URL to the download queue.

        :param str url: URL to the music service track
        """

        if self.connection_handler.current_music is None:
            log.error('Music service is not initialized. URL was not added to queue.')
        elif self.connection_handler.current_storage is None:
            log.error('Drive service is not initialized. URL was not added to queue.')
        else:
            self.queues['download'].put(url)
Adds an URL to the download queue.

        :param str url: URL to the music service track