
# Typical paths.
#   /usr/pkg/local/share/clive/config
#   /usr/pkg/share/clive/config
#   /etc/clive/config
#   ~/.cliverc
#   ~/.clive/config
#   ~/.config/clive/config
# or set the path to the file with CLIVE_CONFIG env. variable.

# quvi command. clive appends "--quiet" to it.
#   %u  Media page URL
# quvi 0.4.1+
--quvi "/usr/pkg/bin/quvi -c http %u"
#--quvi "/usr/pkg/bin/quvi --category-http %u"

# Download command.
#   %u  Media stream URL
#   %f  Path to the downloaded media file
#   %n  File name (basename of the above)
# Make a note of user-agent. Some websites are known refuse to work
# with the curl default user-agent value. Use the quvi default value.
--get-with "/usr/pkg/bin/curl -L -C - -o %f %u --user-agent Mozilla/5.0"

# Play copied media file when transfer finishes.
#   %f  Path to the local media file
#--exec "/usr/pkg/bin/vlc --quiet %f"

# Save downloaded media as, where
#   %h  Media host ID
#   %t  Media title
#   %s  File suffix
#   %i  Media ID
#--filename-format "%t_%i.%s"

# Cleanup title with regular expression.
#--regexp "/(\\w)/g"
