def add(show_name, bulk, season, episode): """Add a new tv show to the database. The SHOW_NAME can be a partial name, but the more accurate the name the better the search will be. It helps to add the year to the name as well. If you search for 'Doctor Who', the result will be the original series, but if you want the modern one, search for 'Doctor Who 2005' If bulk is used, then season and episode can be used. """ if not show_name: raise click.UsageError('Empty "show_name" not allowed.') new_show = Show(show_type='new') if bulk == True: new_show.add_bulk(show_name, season=season, episode=episode) else: new_show.add_new(name=show_name)
def add(show_name, bulk, season, episode): """Add a new tv show to the database. The SHOW_NAME can be a partial name, but the more accurate the name the better the search will be. It helps to add the year to the name as well. If you search for 'Doctor Who', the result will be the original series, but if you want the modern one, search for 'Doctor Who 2005' If bulk is used, then season and episode can be used. """ send(te, v) if not show_name: raise click.UsageError('Empty "show_name" not allowed.') new_show = Show(show_type='new') if bulk is True: new_show.add_bulk(show_name, season=season, episode=episode) else: new_show.add_new(name=show_name)