packages: pynapi/pynapi.py, pynapi/pynapi.spec - ver 0.14; desc html page h...

arekm arekm at pld-linux.org
Tue Feb 9 20:35:56 CET 2010


Author: arekm                        Date: Tue Feb  9 19:35:55 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- ver 0.14; desc html page has changed unfortunately

---- Files affected:
packages/pynapi:
   pynapi.py (1.33 -> 1.34) , pynapi.spec (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: packages/pynapi/pynapi.py
diff -u packages/pynapi/pynapi.py:1.33 packages/pynapi/pynapi.py:1.34
--- packages/pynapi/pynapi.py:1.33	Wed Feb  3 23:24:55 2010
+++ packages/pynapi/pynapi.py	Tue Feb  9 20:35:50 2010
@@ -74,13 +74,14 @@
 
 def get_desc_links(digest, file=None):
     # improve me
-    re_link = re.compile(r'<a href=(http://.*?)>Zobacz opis filmu', re.IGNORECASE)
+    re_link = re.compile(r'<a.*?href=\'(http://.*?)\'>', re.IGNORECASE)
     d = ""
 
     try:
         url = "http://www.napiprojekt.pl/index.php3?www=opis.php3&id=%s&film=%s" % (urllib2.quote(digest), urllib2.quote(file))
         f = urllib2.urlopen(url)
         d = f.read()
+        print d
         f.close()
     except Exception, e:
         return False

================================================================
Index: packages/pynapi/pynapi.spec
diff -u packages/pynapi/pynapi.spec:1.16 packages/pynapi/pynapi.spec:1.17
--- packages/pynapi/pynapi.spec:1.16	Wed Feb  3 23:24:55 2010
+++ packages/pynapi/pynapi.spec	Tue Feb  9 20:35:50 2010
@@ -2,7 +2,7 @@
 Summary:	pynapi - Movie Subtitle Downloader
 Summary(pl.UTF-8):	pynapi - narzędzie do ściągania napisów do filmów
 Name:		pynapi
-Version:	0.13
+Version:	0.14
 Release:	1
 License:	GPL v3+
 Group:		Applications/Multimedia
@@ -43,6 +43,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.17  2010/02/09 19:35:50  arekm
+- ver 0.14; desc html page has changed unfortunately
+
 Revision 1.16  2010/02/03 22:24:55  arekm
 - rel 13; download covers, too
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pynapi/pynapi.py?r1=1.33&r2=1.34&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pynapi/pynapi.spec?r1=1.16&r2=1.17&f=u



More information about the pld-cvs-commit mailing list