DOC: Add note about "Play all" playlists
[umph.git] / doc / man1 / umph.1.pod
blobb3218c479f8a9ea44bf07595b2fcf040e7d8843a
2 =head1 NAME
4 umph - Command line tool for parsing YouTube feeds
6 =head1 SYNOPSIS
8 umph [-q] [-i] [--type=E<lt>valueE<gt>]
9      [--export-response=E<lt>valueE<gt>] [--export-format=E<lt>valueE<gt>]
10      [[--all | [--start-index=E<lt>valueE<gt>] [--max-results=E<lt>valueE<gt>]]
11      [--proxy=E<lt>addrE<gt> | --no-proxy] [--help]
12      E<lt>playlist_idE<gt> | E<lt>usernameE<gt>
14 =head1 DESCRIPTION
16 umph is a command line tool for parsing YouTube feeds. It can parse
17 playlists, favorite lists, and user upload lists.
19 umph prints the found URLs to the standard output, each URL separated
20 with a newline. It can be used to select the feed items by using the
21 C<--interactive> prompt.
23 =head1 OPTIONS
25 =head2 -h, --help
27 Print help and exit.
29 =head2 -v, --version
31 Print version and exit.
33 =head2 -q, --quiet
35 Turn off output to stderr, e.g. status changes. Warnings and errors are
36 still printed.
38 =head2 -t, --type I<arg> (=p)
40 Specifies the feed type to get. I<arg> can be one of the following:
42  p, playlist  (arg0 will be treated as playlist ID)
43  f, favorites (arg0 will be treated as username)
44  u, uploads   (ditto)
46 See also L</EXAMPLES>.
48 =head2 -s, --start-index I<arg> (=1)
50 "The start-index parameter specifies the index of the first matching result
51 that should be included in the result set. This parameter uses a one-based
52 index, meaning the first result is 1, the second result is 2 and so forth.
54 This parameter works in conjunction with the C<--max-results> parameter to
55 determine which results to return. For example, to request the second set
56 of 10 results, i.e. results 11-20, set the start-index parameter to 11
57 and the max-results parameter to 10." -- E<lt>http://is.gd/l4wDNfE<gt>
59 C<--all> causes umph to ignore the value set with this option.
61 =head2 -m, --max-results I<arg> (=25)
63 "The max-results parameter specifies the maximum number of results that
64 should be included in the result set.
66 This parameter works in conjunction with the C<--start-index>  parameter
67 to determine which results to return. For example, to request the second
68 set of 10 results, i.e. results 11-20, set the max-results parameter
69 to 10 and the start-index parameter to 11.
71 The default value of this parameter is 25, and the maximum value is 50.
72 However, for displaying lists of videos, we recommend that you set the
73 max-results parameter to 10." -- E<lt>http://is.gd/OcSjwUE<gt>
75 C<--all> causes umph to ignore the value set with this option.
77 =head2 -a, --all
79 Get the entire feed.
81 =head2 -i, --interactive
83 Open the interactive prompt which can be used to select the items.
84 umph selects I<all> feed items by default. See also L</INTERACTIVE PROMPT>.
86 =head2 -E, --export-response I<arg>
88 Write server error response (XML) to file I<arg> and exit with status 1.
89 Normally, the program parses the response and prints it to the stderr.
91 =head2 -d, --export-format I<arg>
93 Set the interchange format in which the data is to be printed.
94 Possible values:
96  json .. Print in JSON
97  csv  .. Print in CSV
99 By default, umph prints out each media URL separated by a newline.
101 =head2 --json [depr.]
103 Print details in JSON. Negates --csv.
104 This option is deprecated since 0.2.2, use C<--export-format>, instead.
106 =head2 --csv [depr.]
108 Print details in CSV.
109 This option is deprecated since 0.2.2, use C<--export-format>, instead.
111 =head2 --proxy I<arg>
113 Use I<arg> for HTTP proxy, e.g. "http://foo:1234". Overrides the http_proxy
114 environment setting.
116 =head2 --no-proxy
118 Disable use of HTTP proxy. Overrides both C<--proxy> and B<http_proxy>
119 environment settings.
121 =head1 INTERACTIVE PROMPT
123 The interactive prompt may be used to select the feed items. The prompt may be
124 useful when the feed contains many items and you wish to limit the
125 selection to cover only some of them.
127 =head2 NOTE
129 This requires the Umph::Prompt module.
131 =head1 EXAMPLES
133 =head2 umph AAF3A1D0CA1E304F
135 Get the playlist "AAF3A1D0CA1E304F".
137 =head2 umph -s 11 -m 10 AAF3A1D0CA1E304F
139 Like above but get the items 11-20 from the playlist.
141 =head2 umph -a AAF3A1D0CA1E304F
143 Get the entire playlist. By default, umph gets only the items 1-25.
144 See also C<--start-index> and C<--max-results>.
146 =head2 umph -t f foo
148 Get the favorites for user "foo".
150 =head2 umph -t u foo
152 Get the uploads for user "foo".
154 =head2 umph AAF3A1D0CA1E304F | cclive
156 Download the playlist items using C<cclive(1)>.
158 =head2 umph -i AAF3A1D0CA1E304F | cclive
160 Same but choose which of the videos to download.
162 =head1 EXIT STATUS
164 Exits 0 on success, otherwise 1.
166 =head1 FILES
168 =head2 ~/.umphrc
170 Many of the options may be set in this file.
172 =head3 Example
174 echo "--interactive" E<gt> ~/.umphrc
176 =head1 ENVIRONMENT
178 =head2 http_proxy
180 LWP::UserAgent reads the B<http_proxy> setting. See also C<--proxy> and
181 C<--no-proxy>.
183 =head3 Example
185 env http_proxy=http://foo:1234 umph AAF3A1D0CA1E304F
187 =head1 NOTES
189 =head2 Unavailable feeds
191 umph cannot parse "private" lists.
193 =head2 "Play all" playlists
195 umph cannot currently handle these.
197 =head1 WWW
199  Home  : http://umph.googlecode.com/
200  gitweb: http://repo.or.cz/w/umph.git
202 =head1 LICENSE
204 umph is free software, licensed under the GPLv3+.
206 =head1 AUTHOR
208 Toni Gundogdu <legatvs at sign cpan org>