X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Robots%2Fbkmk_rsimple.py;h=0d6c04409756be02fa161257b71729b68c2bd740;hb=62977582003da9f434cd4fd377837935b6f0520c;hp=7a96d256cd15bb571a3dc17bc34cab0ed16e47be;hpb=fb5c3b2b91aeeb615d6d6d890491af3fdff69556;p=bookmarks_db.git diff --git a/Robots/bkmk_rsimple.py b/Robots/bkmk_rsimple.py index 7a96d25..0d6c044 100644 --- a/Robots/bkmk_rsimple.py +++ b/Robots/bkmk_rsimple.py @@ -17,7 +17,7 @@ class RedirectException(Exception): import string, os import time, urllib -from m_lib.www.util import parse_time +from m_lib.net.www.util import parse_time from m_lib.md5wrapper import md5wrapper @@ -180,7 +180,7 @@ class robot_simple(Robot): def finish_check_url(self, bookmark): # Calculate these attributes even in case of an error if os.path.exists(self.tempfname): - size = str(os.stat(self.tempfname).st_size) + size = str(os.path.getsize(self.tempfname)) if size[-1] == 'L': size = size[:-1] bookmark.size = size