use a more meaningful var name
This commit is contained in:
parent
c16ccb7e6a
commit
08ee5ae9c6
10
buku.py
10
buku.py
@ -564,18 +564,18 @@ class BukuDb:
|
|||||||
return -1
|
return -1
|
||||||
|
|
||||||
# Fetch data
|
# Fetch data
|
||||||
meta, pdesc, ptags, mime, bad = network_handler(url)
|
ptitle, pdesc, ptags, mime, bad = network_handler(url)
|
||||||
if bad:
|
if bad:
|
||||||
print('Malformed URL\n')
|
print('Malformed URL\n')
|
||||||
elif mime:
|
elif mime:
|
||||||
logdbg('HTTP HEAD requested')
|
logdbg('HTTP HEAD requested')
|
||||||
elif meta == '' and title_in is None:
|
elif ptitle == '' and title_in is None:
|
||||||
print('No title\n')
|
print('No title\n')
|
||||||
else:
|
else:
|
||||||
logdbg('Title: [%s]', meta)
|
logdbg('Title: [%s]', ptitle)
|
||||||
|
|
||||||
if title_in is not None:
|
if title_in is not None:
|
||||||
meta = title_in
|
ptitle = title_in
|
||||||
|
|
||||||
# Fix up tags, if broken
|
# Fix up tags, if broken
|
||||||
if tags_in and tags_in != DELIM:
|
if tags_in and tags_in != DELIM:
|
||||||
@ -593,7 +593,7 @@ class BukuDb:
|
|||||||
flagset |= immutable
|
flagset |= immutable
|
||||||
|
|
||||||
qry = 'INSERT INTO bookmarks(URL, metadata, tags, desc, flags) VALUES (?, ?, ?, ?, ?)'
|
qry = 'INSERT INTO bookmarks(URL, metadata, tags, desc, flags) VALUES (?, ?, ?, ?, ?)'
|
||||||
self.cur.execute(qry, (url, meta, tags_in, desc, flagset))
|
self.cur.execute(qry, (url, ptitle, tags_in, desc, flagset))
|
||||||
if not delay_commit:
|
if not delay_commit:
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
if self.chatty:
|
if self.chatty:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user