]> Sergey Matveev's repositories - feeder.git/blob - doc/usage/encs.texi
42bba52313d0a72a4c6997eff2ed25a670802fc4
[feeder.git] / doc / usage / encs.texi
1 @node Enclosures
2 @section Enclosures
3
4 Many feeds include links to so-called enclosures, like audio files for
5 podcasts. While your mail is not processed by MUA, its @file{new/}
6 messages are still there, so you can run enclosure downloading process,
7 that uses @url{https://www.gnu.org/software/wget/, GNU Wget}. Each
8 enclosure's filename is more or less filesystem-friendly with the
9 current timestamp.
10
11 @example
12 $ ./feeds-encs.zsh
13 [...]
14 monsterfeet.com_grue.rss/encs/20220218-152822-traffic.libsyn.com_monsterfeet_grue_018.mp3
15 www.astronews.ru_astronews.xml/encs/20220219-115710-www.astronews.ru_news_2022_20220216125238.jpg
16 [...]
17 $ file feeds/**/encs/*/
18 monsterfeet.com_grue.rss/encs/20220218-152822-traffic.libsyn.com_monsterfeet_grue_018.mp3:
19   Audio file with ID3 version 2.2.0, contains:MPEG ADTS, layer III, v1,  96 kbps, 44.1 kHz, Monaural
20 www.astronews.ru_astronews.xml/encs/20220219-115710-www.astronews.ru_news_2022_20220216125238.jpg:
21   JPEG image data, JFIF standard 1.01, ...
22 @end example
23
24 @command{feeds-encs.zsh} does not parallelize jobs, because enclosure are
25 often heavy enough to satiate your Internet link. @command{wget}'s
26 progress is also printed both to stderr and @file{feeds/FEED/encs.log}.
27
28 Of course you can download only single feed's enclosures:
29
30 @example
31 $ cmd/encs.zsh path/to/FEED [optional overriden destination directory]
32 @end example