Package: dosage
Version: 1.5.8-1
Severity: normal
Tags: patch

Something Positive has changed its pages slightly recently and dosage
no longer works for it.
The patch attached seems to help for recent strips and should hopefully
not break catching up with the archive.

-- 
MichaƂ Politowski
Talking has been known to lead to communication if practiced carelessly.
--- /tmp/SomethingPositive.py	2007-01-14 12:46:53.000000000 +0100
+++ /usr/lib/python2.4/site-packages/dosage/modules/SomethingPositive.py	2007-01-14 12:56:48.000000000 +0100
@@ -6,7 +6,7 @@
     imageUrl = 'http://www.somethingpositive.net/sp%s.shtml'
     imageSearch = re.compile(r'<img src="(/?arch/.+\..+?)"')
     prevSearch = re.compile(r'<a href="(sp\d{8}\.shtml)"><font size=1\nface=".+?"\nSTYLE=".+?">Previous', re.MULTILINE)
-    nextSearch = re.compile(r'<a href="(sp\d{8}\.shtml)"><font size=1\nface=".+?"\nSTYLE=".+?">Next', re.MULTILINE)
+    nextSearch = re.compile(r'<a \n?href="(sp\d{8}\.shtml)">(?:<font size=1\nface=".+?"\nSTYLE=".+?">)?Next', re.MULTILINE)
     help = 'Index format: mmddyyyy'
 
     def getFilename(self, imageUrl, pageUrl):

Attachment: signature.asc
Description: Digital signature

Reply via email to