Rafostar / gtuber

C library to fetch media info from websites
https://rafostar.github.io/gtuber/
GNU Lesser General Public License v2.1
9 stars 3 forks source link

gtuber-dl: --itags option should check the argument value format #58

Closed josch closed 1 year ago

josch commented 1 year ago

Hi,

the --itags option takes a comma separated list of itags to download. If the argument passed via --itags is not a comma separated list, gtuber-dl should at least warn about that (if not error out).

For example, when giving an argument like "1+1" then gtuber-dl should not perform an arithmetic operation on the argument but warn the user (or error out) that the usage of + indicates an incorrect argument value.

The --itags option could of course also support the + as a separator (similar to what the -f option for youtube-dl does) but it should still check whether the format is legal or not.

Thanks!