Revise examples/cliverc
[clive.git] / examples / cliverc
blob2ecd3b92b9299f50dffc9ceb0057f214079ff26c
2 # Typical paths.
3 #   /usr/local/share/clive/config
4 #   /usr/share/clive/config
5 #   /etc/clive/config
6 #   ~/.cliverc
7 #   ~/.clive/config
8 #   ~/.config/clive/config
9 # or set the path to the file with CLIVE_CONFIG env. variable.
11 # quvi command. clive appends "--quiet" to it.
12 #   %u  Media page URL
13 --quvi "/usr/bin/quvi --category-http %u"
15 # Download command.
16 #   %u  Media stream URL
17 #   %f  Path to the downloaded media file
18 #   %n  File name (basename of the above)
19 # Make a note of user-agent. Some websites are known refuse to work
20 # with the curl default user-agent value. Use the quvi default value.
21 --get-with "/usr/bin/curl -L -C - -o %f %u --user-agent Mozilla/5.0"
23 # Play copied media file when transfer finishes.
24 #   %f  Path to the local media file
25 #--exec "/usr/bin/vlc --quiet %f"
27 # Save downloaded media as, where
28 #   %h  Media host ID
29 #   %t  Media title
30 #   %s  File suffix
31 #   %i  Media ID
32 #--filename-format "%t_%i.%s"
34 # Cleanup title with regular expression.
35 #--regexp "/(\\w)/g"