-type
- Options* = Table[string, bool]
- SearchResult* = tuple[title: string, url: string]
- SearchResults* = seq[tuple[title: string, url: string]]
- CommandLineOptions* = tuple[searchQuery: string, options: Options]
- SelectionRange* = tuple[begin: int, until: int]
+let
+ processOptions = {poStdErrToStdOut, poUsePath} # poEchoCmd can be added to options for debugging
+ PEERTUBE_REGEX = re"videos\/watch\/[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}"