log.close()
for bookmark in bookmarks:
+ moved_to = getattr(bookmark, 'moved', None)
if hasattr(bookmark, 'error'):
print(bookmark.error)
+ elif moved_to:
+ print("Moved to: %s" % moved_to)
+
else:
print("""\
Title: %s
URL: %s
LastModified: %s
- Moved: %s
Size: %s
Md5: %s
IconURI: %s
or getattr(bookmark, 'title', None),
bookmark.href,
strftime(bookmark.last_modified),
- getattr(bookmark, 'moved', None),
getattr(bookmark, 'size', None),
getattr(bookmark, 'md5', None),
bookmark.icon_href, bookmark.icon, bookmark.charset,