FilesSubmittedBranchesLabelsClientsUsersJobsHelp
Tree viewShow/hide recent activityInformation
Recent activity in //depot/...
2412005/11/08ksimpsonprocmail: pharma spam that sneaks past greylistd. v1agra, c1alis, 'replica watches'.
2342005/11/02zz9fast: print solve time. 0.004s. ken's main branch: 0.31s. just saying.
2272005/10/30nullbytestrip <script> out of page bodies. someone (zz9) had an XSS in FrontPage within
2192005/10/20ksimpsoniTunes 4.9 does podcasts natively now, so podgrab is officially obsolete.
2082005/09/17nullbytegreylistd 0.4: point people at a page explaining the 450 instead of just being rude
Change 91

Change 91 by ksimpson@ksimpson-tibook on 2004/10/14 07:58:22

copy to the ipod if it's mounted. one dead feed shouldn't kill the whole run.
Affected files ...
//depot/projects/podgrab/podgrab.py#2 editxtext
Differences ...

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

@@ -7,6 +7,7 @@
77"""
88
99import os
10import shutil
1011import sys
1112import urllib
1213from xml.dom import minidom
@@ -50,13 +51,22 @@
5051 out = open(SEEN, "a")
5152 for title, url in read_opml(opml):
5253 print "==>", title
53 for enc in enclosures(url):
54 try:
55 encs = list(enclosures(url))
56 except Exception, e:
57 print " feed broken:", e
58 continue
59 for enc in encs:
5460 if enc in seen:
5561 continue
5662 fname = os.path.join(CACHE, os.path.basename(enc))
5763 print " ", enc
5864 urllib.urlretrieve(enc, fname)
5965 out.write(enc + "\n")
66 if os.path.isdir(IPOD):
67 # NB: this does not update the iTunesDB. use gtkpod, or
68 # just play it from the notes folder like a caveman.
69 shutil.copy(fname, os.path.join(IPOD, "Podcasts"))
6070 out.close()
6171
6272

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