Hello community,

here is the log from the commit of package python-fanficfare for 
openSUSE:Factory checked in at 2019-08-06 17:27:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-fanficfare (Old)
 and      /work/SRC/openSUSE:Factory/.python-fanficfare.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-fanficfare"

Tue Aug  6 17:27:27 2019 rev:11 rq:721277 version:3.10.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-fanficfare/python-fanficfare.changes      
2019-07-31 14:28:08.454164376 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-fanficfare.new.4126/python-fanficfare.changes
    2019-08-06 17:27:27.636686174 +0200
@@ -1,0 +2,9 @@
+Tue Aug  6 14:32:05 CEST 2019 - Matej Cepl <[email protected]>
+
+- Update to 3.10.5:
+  - Fixes for IMAP folder parsing.
+  - ensure_str on IMAP4 folder name for Python3. Fixes #419
+  - Fix adapter_inkbunnynet incorrect example URL, caused
+    problems with get URLs from page.
+
+-------------------------------------------------------------------

Old:
----
  FanFicFare-3.10.1.tar.gz

New:
----
  FanFicFare-3.10.5.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-fanficfare.spec ++++++
--- /var/tmp/diff_new_pack.6AUIFi/_old  2019-08-06 17:27:28.136686064 +0200
+++ /var/tmp/diff_new_pack.6AUIFi/_new  2019-08-06 17:27:28.136686064 +0200
@@ -20,7 +20,7 @@
 %define modnamedown fanficfare
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-fanficfare
-Version:        3.10.1
+Version:        3.10.5
 Release:        0
 Summary:        Tool for making eBooks from stories on fanfiction and other 
web sites
 License:        GPL-3.0-only

++++++ FanFicFare-3.10.1.tar.gz -> FanFicFare-3.10.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/FanFicFare-3.10.1/calibre-plugin/__init__.py 
new/FanFicFare-3.10.5/calibre-plugin/__init__.py
--- old/FanFicFare-3.10.1/calibre-plugin/__init__.py    2019-07-28 
00:39:59.000000000 +0200
+++ new/FanFicFare-3.10.5/calibre-plugin/__init__.py    2019-07-30 
16:06:56.000000000 +0200
@@ -33,7 +33,7 @@
 from calibre.customize import InterfaceActionBase
 
 # pulled out from FanFicFareBase for saving in prefs.py
-__version__ = (3, 10, 1)
+__version__ = (3, 10, 5)
 
 ## Apparently the name for this class doesn't matter--it was still
 ## 'demo' for the first few versions.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/FanFicFare-3.10.1/fanficfare/adapters/adapter_inkbunnynet.py 
new/FanFicFare-3.10.5/fanficfare/adapters/adapter_inkbunnynet.py
--- old/FanFicFare-3.10.1/fanficfare/adapters/adapter_inkbunnynet.py    
2019-07-28 00:39:59.000000000 +0200
+++ new/FanFicFare-3.10.5/fanficfare/adapters/adapter_inkbunnynet.py    
2019-07-30 16:06:56.000000000 +0200
@@ -78,7 +78,7 @@
 
     @classmethod
     def getSiteExampleURLs(cls):
-        return 'https://' + cls.getSiteDomain() + '/s/=1234567'
+        return 'https://' + cls.getSiteDomain() + '/s/1234567'
 
     def getSiteURLPattern(self):
         # https://inkbunny.net/s/1234567
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/FanFicFare-3.10.1/fanficfare/cli.py 
new/FanFicFare-3.10.5/fanficfare/cli.py
--- old/FanFicFare-3.10.1/fanficfare/cli.py     2019-07-28 00:39:59.000000000 
+0200
+++ new/FanFicFare-3.10.5/fanficfare/cli.py     2019-07-30 16:06:56.000000000 
+0200
@@ -39,7 +39,7 @@
     def pickle_load(f):
         return pickle.load(f,encoding="bytes")
 
-version="3.10.1"
+version="3.10.5"
 os.environ['CURRENT_VERSION_ID']=version
 
 global_cache = 'global_cache'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/FanFicFare-3.10.1/fanficfare/geturls.py 
new/FanFicFare-3.10.5/fanficfare/geturls.py
--- old/FanFicFare-3.10.1/fanficfare/geturls.py 2019-07-28 00:39:59.000000000 
+0200
+++ new/FanFicFare-3.10.5/fanficfare/geturls.py 2019-07-30 16:06:56.000000000 
+0200
@@ -220,12 +220,20 @@
         raise FetchEmailFailed("Failed to login to mail server")
     # Out: list of "folders" aka labels in gmail.
     status = mail.list()
-
+    # logger.debug(status)
 
     folders = []
-    for f in status[1]:
-        m = re.match(r'^\(.*\) "." "(.+)"$',ensure_str(f))
-        folders.append(m.group(1).replace("\\",""))
+    try:
+        for f in status[1]:
+            m = re.match(r'^\(.*\) "?."? "?(?P<folder>.+?)"?$',ensure_str(f))
+            if m:
+                folders.append(m.group("folder").replace("\\",""))
+                # logger.debug(folders[-1])
+            else:
+                logger.warn("Failed to parse IMAP folder 
line(%s)"%ensure_str(f))
+    except:
+        folders = []
+        logger.warning("Failed to parse IMAP folder list, continuing without 
list.")
 
     if status[0] != 'OK':
         raise FetchEmailFailed("Failed to list folders on mail server")
@@ -237,7 +245,10 @@
     status = mail.select('"%s"'%folder.replace('"','\\"'))
     if status[0] != 'OK':
         logger.debug(status)
-        raise FetchEmailFailed("Failed to select folder(%s) on mail server 
(folder list:%s)"%(folder,folders))
+        if folders:
+            raise FetchEmailFailed("Failed to select folder(%s) on mail server 
(folder list:%s)"%(folder,folders))
+        else:
+            raise FetchEmailFailed("Failed to select folder(%s) on mail 
server"%folder)
 
     result, data = mail.uid('search', None, "UNSEEN")
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/FanFicFare-3.10.1/setup.py 
new/FanFicFare-3.10.5/setup.py
--- old/FanFicFare-3.10.1/setup.py      2019-07-28 00:39:59.000000000 +0200
+++ new/FanFicFare-3.10.5/setup.py      2019-07-30 16:06:56.000000000 +0200
@@ -27,7 +27,7 @@
     name=package_name,
 
     # Versions should comply with PEP440.
-    version="3.10.1",
+    version="3.10.5",
 
     description='A tool for downloading fanfiction to eBook formats',
     long_description=long_description,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/FanFicFare-3.10.1/webservice/app.yaml 
new/FanFicFare-3.10.5/webservice/app.yaml
--- old/FanFicFare-3.10.1/webservice/app.yaml   2019-07-28 00:39:59.000000000 
+0200
+++ new/FanFicFare-3.10.5/webservice/app.yaml   2019-07-30 16:06:56.000000000 
+0200
@@ -1,6 +1,6 @@
 # ffd-retief-hrd fanficfare
 application: fanficfare
-version: 3-10-1
+version: 3-10-5
 runtime: python27
 api_version: 1
 threadsafe: true


Reply via email to