woefe / ytcc

Command line tool to keep track of your favorite playlists on YouTube and many other places.
GNU General Public License v3.0
178 stars 20 forks source link

Ability to "ytcc unsubscribe" in bulk by -y, assume yes, or batch/script mode #102

Closed pghpete closed 2 years ago

pghpete commented 2 years ago

Periodically I like to go through my subscriptions and unsubscribe to channels I am no longer interested in. In ytcc < 2 I could 'ytcc remove "channel name"' by feeding it a list of channels or cycling through a list to remove. I am unable to do so with the 2.x version of ytcc because it prompts "Unsubscribing will remove videos from the database that are not part of another playlist. Do you really want to unsubscribe? [y/N]:"

It would be useful if there was an "assume yes" yes option like -y or some sort of batch or script mode that would allow you to avoid the prompt.

Thank you very much for the great work on this and for putting it out there for the rest of us. If this is too much trouble or I can assist in creating such a feature and contributing please let me know.

woefe commented 2 years ago

There should be a --yes option on unsubscribe.

> ytcc unsubscribe --help        
Usage: ytcc unsubscribe [OPTIONS] NAME

  Unsubscribe from a playlist.

  Unsubscribes from the playlist identified by NAME.

Options:
  --yes   Confirm the action without prompting.
  --help  Show this message and exit.

What version of click are you using, if it's not there? python3 -c 'import click; print(click.__version__)'

pghpete commented 2 years ago

It is there! I don't know how I over looked that. I apologize for taking up you're time on this. Thank you!

woefe commented 2 years ago

You brought up a valid point. I think it makes sense to allow to delete multiple lists in one unsubscribe command. I changed the behavior in 72dd009. Additionally, the shell completions are fixed now.

pghpete commented 2 years ago

Fantastic. Ty very much!