def startMenu(): inp = '' while inp != 'q': printOptions() inp = input() if inp == '1': subinp = '' print( "Input subscription with format: 'Series name', 'last episode watched'" ) print("Exit by inputting 'q'") while subinp != "q": subinp = input() if subinp != 'q': subinp = subinp.split(',') if len(subinp) == 2: subscriber.subscribe(subinp[0], int(subinp[1]), subList) logInp = subinp[0].replace('"', "") print(f"Subscribed to {logInp}") else: print("Could not interpret input") elif inp == '2': subinp = '' print("Input name of the anime to remove from subscription list.") print("Exit by inputting 'q'. Input 'all' to clear subscriptions") while subinp != "q": subinp = input() if subinp != 'q': output = subscriber.unsubscribe(subinp, subList) if output[1]: print(f"Unsubscribed to {output[0]}.") else: print("Could not find specified anime in list") elif inp == '3': printSubList(subList)
def run(self): subscribe(self.consume, queue=self.internal_queue, late_ack=True)
def run(self): subscribe(self.on_stone_received)