FilesSubmittedBranchesLabelsClientsUsersJobsHelp
Tree viewShow/hide recent activityInformation
Change 118

Change 118 by ksimpson@ksimpson-tibook on 2005/01/15 17:21:48

podgrab 1.0. keep only the newest 3 episodes per feed so the 4GB mini doesn't fill up. gave podgrab its own section in the opml.
Affected files ...
//depot/projects/podgrab/podgrab.py#5 editxtext
//depot/projects/podgrab/README#2 edittext
//depot/projects/podgrab/feeds.opml#5 edittext
Differences ...

==== //depot/projects/podgrab/podgrab.py#5 (xtext) ====

@@ -6,6 +6,8 @@
66ksimpson, oct 2004. needs Python 2.3.
77"""
88
9__version__ = "1.0"
10
911import os
1012import shutil
1113import sys
@@ -15,7 +17,8 @@
1517IPOD = "/Volumes/IPOD"
1618CACHE = os.path.expanduser("~/.podgrab")
1719SEEN = os.path.join(CACHE, "seen")
18UA = "podgrab/0.2 (+http://ttul.org/)"
20UA = "podgrab/%s (+http://ttul.org/)" % __version__
21MAX_PER_FEED = 3
1922
2023
2124def fetch(url):
@@ -57,7 +60,7 @@
5760 for title, url in read_opml(opml):
5861 print "==>", title
5962 try:
60 encs = list(enclosures(url))
63 encs = list(enclosures(url))[:MAX_PER_FEED]
6164 except Exception, e:
6265 print " feed broken:", e
6366 continue

==== //depot/projects/podgrab/README#2 (text) ====

@@ -10,4 +10,6 @@
1010Downloads go to ~/.podgrab. Already-fetched URLs are remembered in
1111~/.podgrab/seen so you don't get the same episode twice.
1212
13Only the newest 3 episodes of each feed are fetched (MAX_PER_FEED).
14
1315Add feeds by editing feeds.opml. Yes, by hand. It's XML. You'll live.

==== //depot/projects/podgrab/feeds.opml#5 (text) ====

@@ -3,11 +3,13 @@
33 <head>
44 <title>ttul podgrab subscriptions</title>
55 <dateCreated>Fri, 01 Oct 2004 21:12:00 PDT</dateCreated>
6 <dateModified>Sat, 15 Jan 2005 17:20:00 PST</dateModified>
67 <ownerName>ksimpson</ownerName>
78 </head>
89 <body>
910 <outline text="The Geek Hour" type="rss" xmlUrl="http://geekhour.example.com/rss.xml"/>
1011 <outline text="Kernel Panic Radio" type="rss" xmlUrl="http://kpr.example.net/podcast.xml"/>
12 <outline text="Radio Free Burnaby" type="rss" xmlUrl="http://rfb.example.org/rss.xml"/>
1113 <outline text="Pacific Northwest Hacker Hour" type="rss" xmlUrl="http://pnwhh.example.org/feed/"/>
1214 <outline text="zz9 talks about stuff" type="rss" xmlUrl="http://ttul.org/~zz9/podcast/rss.xml"/>
1315 </body>

P4Web/LINUX26X86/2005.1/82295 · Copyright © 1995-2005 Perforce Software · ttul.org