<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>akeil.net (Posts about code)</title><link>http://akeil.net/</link><description></description><atom:link href="http://akeil.net/categories/code.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Fri, 13 Jan 2017 22:08:30 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>podfetch 0.4.3</title><link>http://akeil.net/posts/podfetch-0-4-3.html</link><dc:creator>Alexander Keil</dc:creator><description>&lt;div&gt;&lt;p&gt;Changes in &lt;strong&gt;podfetch 0.4.3&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;The &lt;tt class="docutils literal"&gt;ls&lt;/tt&gt; and &lt;tt class="docutils literal"&gt;update&lt;/tt&gt; commands accept shell wildcards
for subscription names:&lt;/p&gt;
&lt;pre class="code shell-session"&gt;&lt;a name="rest_code_db1d18ed68ad4b2e9336c9ac6a536506-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;$&lt;/span&gt; podfetch ls f?o ba*
&lt;/pre&gt;&lt;p&gt;Lists subscriptions &lt;em&gt;foo&lt;/em&gt;, &lt;em&gt;bar&lt;/em&gt; and &lt;em&gt;baz&lt;/em&gt;
but not &lt;em&gt;something-else&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;If the subscriptions directory contains files that are not podfetch
subscriptions, a &lt;strong&gt;new config option&lt;/strong&gt; &lt;tt class="docutils literal"&gt;ignore&lt;/tt&gt; can be used to tell podfetch
to ignore these:&lt;/p&gt;
&lt;pre class="code ini"&gt;&lt;a name="rest_code_e58e01ce6d0a43d3a04d94e619b9cfa3-1"&gt;&lt;/a&gt;&lt;span class="k"&gt;[podfetch]&lt;/span&gt;
&lt;a name="rest_code_e58e01ce6d0a43d3a04d94e619b9cfa3-2"&gt;&lt;/a&gt;&lt;span class="na"&gt;ignore&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;.* *.bak&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;The option expects a whitespace separated list of patterns
that should be ignored.&lt;/p&gt;
&lt;p&gt;See the &lt;a class="reference external" href="http://akeil.net/code/podfetch.html"&gt;podfetch&lt;/a&gt; main page.&lt;/p&gt;&lt;/div&gt;</description><category>code</category><category>podfetch</category><category>python</category><guid>http://akeil.net/posts/podfetch-0-4-3.html</guid><pubDate>Sat, 28 Mar 2015 23:00:00 GMT</pubDate></item><item><title>podfetch 0.4.0</title><link>http://akeil.net/posts/podfetch-0-4-0.html</link><dc:creator>Alexander Keil</dc:creator><description>&lt;div&gt;&lt;p&gt;Changes in &lt;strong&gt;podfetch 0.4.0&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;ls&lt;/strong&gt; was now outputs episodes in reverse chronological order.
The most recently published episodes are listed first.
Episodes are sorted by date, even if episodes from multiple
subscriptions are shown.&lt;/p&gt;
&lt;p&gt;When no subscription name is specified, &lt;tt class="docutils literal"&gt;ls&lt;/tt&gt; will now list
episodes from &lt;em&gt;all&lt;/em&gt; subscriptions.
In previous versions, &lt;tt class="docutils literal"&gt;ls&lt;/tt&gt; would output the list of subscriptions
in this case. This is now done with &lt;tt class="docutils literal"&gt;show&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Additional parameters were added:&lt;/p&gt;
&lt;dl class="docutils"&gt;
&lt;dt&gt;--newest / -n&lt;/dt&gt;
&lt;dd&gt;To control the number of episodes shown&lt;/dd&gt;
&lt;dt&gt;--all / -a&lt;/dt&gt;
&lt;dd&gt;To &lt;em&gt;not&lt;/em&gt; limit the number of episodes shown&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;&lt;strong&gt;Examples&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;List the 10 (default) most recent episodes:&lt;/p&gt;
&lt;pre class="code shell-session"&gt;&lt;a name="rest_code_2fc511f4e9e243ababad08e2b0d6f1fa-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;$&lt;/span&gt; podfetch ls
&lt;/pre&gt;&lt;p&gt;List up to 20 episodes:&lt;/p&gt;
&lt;pre class="code shell-session"&gt;&lt;a name="rest_code_e248b67424e34e44bf6d363639bdbf32-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;$&lt;/span&gt; podfetch ls -n 20
&lt;/pre&gt;&lt;p&gt;List the 10 (default) most recent episodes
from subscriptions "foo" and "bar":&lt;/p&gt;
&lt;pre class="code shell-session"&gt;&lt;a name="rest_code_e98998dc8c3e4c2d819c803e92fecedc-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;$&lt;/span&gt; podfetch ls foo bar
&lt;/pre&gt;&lt;p&gt;Show all episodes from subscription "foo":&lt;/p&gt;
&lt;pre class="code shell-session"&gt;&lt;a name="rest_code_44b7ef95b8cc49babf5871b8d5153d21-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;$&lt;/span&gt; podfetch ls -a foo
&lt;/pre&gt;&lt;p&gt;A new subcommand &lt;strong&gt;show&lt;/strong&gt; displays subscription details.&lt;/p&gt;
&lt;p&gt;To view details for a specific subscription
(multiple names can be specified):&lt;/p&gt;
&lt;pre class="code shell-session"&gt;&lt;a name="rest_code_a36a5e02aef240ea84d510072bc3d679-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;$&lt;/span&gt; podfetch show foo
&lt;/pre&gt;&lt;p&gt;If the subscription name is not specified, shows details for all:&lt;/p&gt;
&lt;pre class="code shell-session"&gt;&lt;a name="rest_code_694da34710464d7db08c235207a6c8c0-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;$&lt;/span&gt; podfetch show
&lt;/pre&gt;&lt;p&gt;New command &lt;strong&gt;del&lt;/strong&gt; to remove subscriptions
and optionally downloaded episodes.&lt;/p&gt;
&lt;p&gt;To remove subscriptions "foo" and "bar":&lt;/p&gt;
&lt;pre class="code shell-session"&gt;&lt;a name="rest_code_267654df222a4cef930bf90a827882a6-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;$&lt;/span&gt; podfetch del foo bar
&lt;/pre&gt;&lt;p&gt;To remove subscription "foo" including downloaded episodes:&lt;/p&gt;
&lt;pre class="code shell-session"&gt;&lt;a name="rest_code_5d4c93411a5e46c2810c80dac250bfb1-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;$&lt;/span&gt; podfetch del foo --episodes
&lt;/pre&gt;&lt;p&gt;See the &lt;a class="reference external" href="http://akeil.net/code/podfetch.html"&gt;podfetch&lt;/a&gt; main page.&lt;/p&gt;&lt;/div&gt;</description><category>code</category><category>podfetch</category><category>python</category><guid>http://akeil.net/posts/podfetch-0-4-0.html</guid><pubDate>Sun, 23 Nov 2014 23:00:00 GMT</pubDate></item><item><title>podfetch 0.3.2</title><link>http://akeil.net/posts/podfetch-0-3-2.html</link><dc:creator>Alexander Keil</dc:creator><description>&lt;div&gt;&lt;p&gt;Changes in &lt;strong&gt;podfetch 0.3.2&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;Index files are now kept under &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;~/.local/share/podfetch/&lt;/span&gt;&lt;/tt&gt;
instead of &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;~/.cache/podfetch/&lt;/span&gt;&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Subscriptions may define an individual &lt;tt class="docutils literal"&gt;content_dir&lt;/tt&gt; where episodes
are stored.&lt;/p&gt;
&lt;pre class="code ini"&gt;&lt;a name="rest_code_f8b743bc15db421e85f27389698d7c31-1"&gt;&lt;/a&gt;&lt;span class="k"&gt;[subscription]&lt;/span&gt;
&lt;a name="rest_code_f8b743bc15db421e85f27389698d7c31-2"&gt;&lt;/a&gt;&lt;span class="na"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;http://example.com/podcast&lt;/span&gt;
&lt;a name="rest_code_f8b743bc15db421e85f27389698d7c31-3"&gt;&lt;/a&gt;&lt;span class="na"&gt;title&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;Some Name&lt;/span&gt;
&lt;a name="rest_code_f8b743bc15db421e85f27389698d7c31-4"&gt;&lt;/a&gt;&lt;span class="na"&gt;content_dir&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;/path/to/episodes&lt;/span&gt;
&lt;/pre&gt;&lt;pre class="code shell-session"&gt;&lt;a name="rest_code_0f959afd420c4f8f90b08743653bd8d7-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;$&lt;/span&gt; podfetch add http://example.com/podcast -d /path/to/episodes
&lt;/pre&gt;&lt;p&gt;The &lt;strong&gt;add&lt;/strong&gt; command supports a (filename-) &lt;tt class="docutils literal"&gt;template&lt;/tt&gt; parameter.
It has the same effect as the &lt;tt class="docutils literal"&gt;filename_template&lt;/tt&gt; setting in the
configuration files.&lt;/p&gt;
&lt;pre class="code shell-session"&gt;&lt;a name="rest_code_c9e61d168359488ab93f1018d316bf1b-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;$&lt;/span&gt; podfetch add http://example.com/podcast --template &lt;span class="s1"&gt;'{title}-{id}.{ext}'&lt;/span&gt;
&lt;/pre&gt;&lt;dl class="docutils"&gt;
&lt;dt&gt;The &lt;strong&gt;purge&lt;/strong&gt; command is improved:&lt;/dt&gt;
&lt;dd&gt;&lt;ul class="first last simple"&gt;
&lt;li&gt;select episodes by date published (was: filename)&lt;/li&gt;
&lt;li&gt;simulation mode&lt;/li&gt;
&lt;li&gt;correctly handle episodes with multiple files&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;See the &lt;a class="reference external" href="http://akeil.net/code/podfetch.html"&gt;podfetch&lt;/a&gt; main page.&lt;/p&gt;&lt;/div&gt;</description><category>code</category><category>podfetch</category><category>python</category><guid>http://akeil.net/posts/podfetch-0-3-2.html</guid><pubDate>Sat, 22 Nov 2014 23:00:00 GMT</pubDate></item><item><title>podfetch 0.3.1</title><link>http://akeil.net/posts/podfetch-0-3-1.html</link><dc:creator>Alexander Keil</dc:creator><description>&lt;div&gt;&lt;p&gt;Changes in &lt;strong&gt;podfetch 0.3.1&lt;/strong&gt;:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Index files are now in JSON format.&lt;/li&gt;
&lt;li&gt;Filenames for downloaded episodes are coerced to ascii.&lt;/li&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;ls&lt;/tt&gt; command can list episodes for a subscription&lt;/li&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;update&lt;/tt&gt; command has an option to &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;--force&lt;/span&gt;&lt;/tt&gt; downloading
new episodes.&lt;/li&gt;
&lt;li&gt;Fixed error where temporary files for downloads were not deleted
properly which caused the &lt;tt class="docutils literal"&gt;/tmp&lt;/tt&gt; directory to run out of space
if many episodes were downloaded in a single update run.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;See the &lt;a class="reference external" href="http://akeil.net/code/podfetch.html"&gt;podfetch&lt;/a&gt; main page.&lt;/p&gt;&lt;/div&gt;</description><category>code</category><category>podfetch</category><category>python</category><guid>http://akeil.net/posts/podfetch-0-3-1.html</guid><pubDate>Sat, 23 Nov 2013 23:00:00 GMT</pubDate></item></channel></rss>