mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-20 06:10:59 +00:00
Adapt Opera bookmark parser to work with decoded data
This commit is contained in:
parent
9460064084
commit
ad33d359c1
1 changed files with 2 additions and 2 deletions
|
|
@ -63,9 +63,9 @@ def parse_bookmark_data (data):
|
|||
for line in data.splitlines():
|
||||
lineno += 1
|
||||
line = line.strip()
|
||||
if line.startswith(b"NAME="):
|
||||
if line.startswith("NAME="):
|
||||
name = line[5:]
|
||||
elif line.startswith(b"URL="):
|
||||
elif line.startswith("URL="):
|
||||
url = line[4:]
|
||||
if url and name is not None:
|
||||
yield (url, name, lineno)
|
||||
|
|
|
|||
Loading…
Reference in a new issue