FilesSubmittedBranchesLabelsClientsUsersJobsHelp
Tree viewShow file textShow revision historyShow/hide recent activityInformation
//depot/projects/podgrab/podgrab.py

Diffs between #4 and #5

@@ -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

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