Fix title pairing with wrong URL

This commit is contained in:
Fierelier 2023-03-01 14:27:55 +01:00
parent f160b06207
commit 58f052a3d2
1 changed files with 1 additions and 3 deletions

View File

@ -7,16 +7,14 @@ if not os.path.isdir(config.paths[0]):
os.makedirs(config.paths[0])
fh = open(os.path.join(config.paths[0],"history.txt"),"a")
url = ""
def onUrlChanged(obj,_):
global url
url = obj.get_uri()
fh.write("\n" + url)
fh.flush()
def onTitleChanged(obj,_):
global url
url = obj.get_uri()
fh.write("\n" + url + " " + obj.get_title())
fh.flush()