bytes/str
This commit is contained in:
parent
324cbdcdb2
commit
1a182bc9bd
1 changed files with 2 additions and 2 deletions
|
@ -545,8 +545,8 @@ class SQLiteStorage(SQLiteMixin):
|
|||
"select stream_hash, download_directory, file_name from file where saved_file=1"
|
||||
).fetchall():
|
||||
if download_directory and file_name and os.path.isfile(
|
||||
os.path.join(binascii.unhexlify(download_directory.encode()).decode(),
|
||||
binascii.unhexlify(file_name.encode()).decode())):
|
||||
os.path.join(binascii.unhexlify(download_directory).decode(),
|
||||
binascii.unhexlify(file_name).decode())):
|
||||
continue
|
||||
else:
|
||||
removed.append((stream_hash,))
|
||||
|
|
Loading…
Add table
Reference in a new issue