فهرست منبع

fix flake8 errors

Nick Sweeting 6 سال پیش
والد
کامیت
ae0c20dc76
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 1 1
      archivebox/parse.py
  2. 2 0
      archivebox/peekable.py

+ 1 - 1
archivebox/parse.py

@@ -84,7 +84,7 @@ def parse_pocket_export(html_file):
                 'base_url': base_url(fixed_url),
                 'base_url': base_url(fixed_url),
                 'timestamp': str(datetime.now().timestamp()),
                 'timestamp': str(datetime.now().timestamp()),
                 'tags': match.group(3),
                 'tags': match.group(3),
-                'title': match.group(4).replace(' — Readability', '').replace('http://www.readability.com/read?url=', '') or fetch_page_title(url),
+                'title': match.group(4).replace(' — Readability', '').replace('http://www.readability.com/read?url=', '') or fetch_page_title(fixed_url),
                 'sources': [html_file.name],
                 'sources': [html_file.name],
             }
             }
             info['type'] = get_link_type(info)
             info['type'] = get_link_type(info)

+ 2 - 0
archivebox/peekable.py

@@ -1,3 +1,5 @@
+from sys import maxsize
+from itertools import islice
 from collections import deque
 from collections import deque
 
 
 _marker = object()
 _marker = object()