move man1/ -> doc/, style changes to Makefile.PL
[umph.git] / doc / man1 / umph.1.pod
blobb14d6f6f44f75b1cf5dd306175670631c5a756ed
2 =head1 NAME
4 umph - Command line tool for parsing video links from Youtube feeds
6 =head1 SYNOPSIS
8 umph [-q] [-i] [--csv | --json] [-t E<lt>typeE<gt>]
9     [--proxy E<lt>addrE<gt> | --no-proxy]
10     [E<lt>playlist_idE<gt> | E<lt>usernameE<gt>]
12 =head1 DESCRIPTION
14 umph is a command line tool for parsing video links from Youtube feeds,
15 such as playlists, favorites and uploads. The parsed video links are
16 printed to the standard output each separated with a newline.
18 If you need to select the videos, use the C<--interactive> switch.
20 =head1 OPTIONS
22 =over 4
24 =item B<-h, --help>
26 Print help and exit.
28 =item B<-v, --version>
30 Print version and exit.
32 =item B<--license>
34 Print license and exit.
36 =item B<-q, --quiet>
38 Be quiet.
40 =item B<-t, --type>=I<arg>
42 Specifies the feed type to get. I<arg> can be one of the following:
44   p, playlist  (arg0 will be treated as playlist ID)
45   f, favorites (arg0 will be treated as username)
46   u, uploads   (same)
48 Default is "p" (playlist). See also L</EXAMPLES>.
50 =item B<-s, --start-index>=I<arg>
52 "The start-index parameter specifies the index of the first matching result
53 that should be included in the result set. This parameter uses a one-based
54 index, meaning the first result is 1, the second result is 2 and so forth.
56 This parameter works in conjunction with the C<--max-results> parameter to
57 determine which results to return. For example, to request the second set
58 of 10 results, i.e. results 11-20, set the start-index parameter to 11
59 and the max-results parameter to 10."
61   <http://code.google.com/apis/youtube/2.0/reference.html#start-indexsp>
63 umph defaults to 1.
65 =item B<-m, --max-results>=I<arg>
67 "The max-results parameter specifies the maximum number of results that
68 should be included in the result set.
70 This parameter works in conjunction with the C<--start-index>  parameter
71 to determine which results to return. For example, to request the second
72 set of 10 results, i.e. results 11-20, set the max-results parameter
73 to 10 and the start-index parameter to 11.
75 The default value of this parameter is 25, and the maximum value is 50.
76 However, for displaying lists of videos, we recommend that you set the
77 max-results parameter to 10."
79   <http://code.google.com/apis/youtube/2.0/reference.html#max-resultssp>
81 umph defaults to 25.
83 =item B<-i, --interactive>
85 Enable interactive prompt which can be used to select the videos from the
86 feed. By default umph selects all of the feed items.
88 =item B<--json>
90 Print details in JSON. Negates --csv.
92 =item B<--csv>
94 Print details in CSV ("$title","$url"\n).
96 =item B<--proxy> I<arg>
98 Use I<arg> for HTTP proxy, e.g. "http://foo:1234". Overrides the http_proxy
99 environment setting.
101 =item B<--no-proxy>
103 Disable use of HTTP proxy. Overrides both C<--proxy> and http_proxy environment
104 settings.
106 =back
108 =head1 EXAMPLES
110 =over 4
112 =item umph AAF3A1D0CA1E304F
114 Fetch and parse playlist "AAF3A1D0CA1E304F".
116 =item umph --json AAF3A1D0CA1E304F
118 Same as above, but print the details in JSON.
120 =item umph -s 11 -m 10 AAF3A1D0CA1E304F
122 Same as above but get the items 11-20 from the playlist.
124 =item umph -t f youtube
126 Fetch and parse favorites for user "youtube".
128 =item umph -t u youtube
130 Fetch and parse uploads for user "youtube".
132 =item umph AAF3A1D0CA1E304F | cclive -f mp4_360p
134 Print the parsed playlist items (links) to stdout, use C<cclive(1)>
135 to download them.
137 =back
139 =head1 EXIT STATUS
141 Exits 0 on success, otherwise 1.
143 =head1 FILES
145 =over 4
147 =item $HOME/.umphrc, for example:
149 echo "--interactive" >> ~/.umphrc
151 =back
153 =head1 NOTES
155 =over 4
157 =item B<http_proxy>
159 umph depends on XML::DOM which uses LWP::UserAgent to fetch the data
160 over the network. LWP::UserAgent reads the http_proxy environment
161 setting. e.g.:
163     env http_proxy=http://foo:1234 umph AAF3A1D0CA1E304F
165 =item B<Unavailable feeds>
167 Some feeds may have been set private by the Youtube users. umph
168 cannot currently fetch and parse those.
170 =back
172 =head1 WWW
174 E<lt>http://umph.googlecode.com/E<gt>
176 E<lt>http://repo.or.cz/w/umph.gitE<gt>
178 =head1 SEE ALSO
180 C<cclive(1)>
182 =head1 AUTHOR
184 Toni Gundogdu <legatvs at sign gmail com>