Exemple #1
0
    def interaction(self):
        print('%s [https://github.com/bjarneo/Pytify]' %
              self.get_package_name())

        while 1:
            search_input = custom_prompt()

            search = self.pytify.query(search_input)

            if search is not False:
                self.list_songs(list=self.pytify.list())
Exemple #2
0
    def interaction(self):
        print(
            '%s [https://github.com/bjarneo/Pytify]' % self.get_package_name()
        )

        while 1:
            search_input = custom_prompt()

            search = self.pytify.query(search_input)

            if search is not False:
                self.list_songs(list=self.pytify.list())
Exemple #3
0
    def interaction(self):
        print('%s [https://github.com/bjarneo/Pytify]' %
              self.get_package_name())

        while 1:
            search_input = custom_prompt(self.pytify.get_current_playing())

            if self.command.run(search_input):
                continue

            search = self.pytify.query(search_input)

            if search:
                self.list_songs(list=self.pytify.list())
Exemple #4
0
    def interaction(self):
        print(
            '%s [https://github.com/bjarneo/Pytify]' % self.get_package_name()
        )

        while 1:
            search_input = custom_prompt(self.pytify.get_current_playing())

            if self.command.run(search_input):
                continue

            search = self.pytify.query(search_input)

            if search:
                self.list_songs(list=self.pytify.list())
Exemple #5
0
    def interaction(self):
        print('%s [https://github.com/bjarneo/Pytify]' %
              self.get_package_name())

        while 1:
            try:
                search_input = custom_prompt(self.pytify.get_current_playing())
            except KeyboardInterrupt:
                continue
            except EOFError:
                print('\n Closing application...\n')
                break

            if self.command.run(search_input):
                continue

            search = self.pytify.query(search_input)

            if search:
                self.list_songs(list=self.pytify.list())