# non-included libs
from paramiko import SSHClient # type: ignore
from scp import SCPClient # type: ignore
-from ytplom.db import DbConn, PATH_DB
+from ytplom.db import DbConn, Hash, PATH_DB
from ytplom.misc import (
PATH_TEMP, Config, QuotaLog, VideoFile, YoutubeQuery, YoutubeVideo)
from ytplom.http import PAGE_NAMES
direction, mover = direction_mover
for digest in (d for d in missings[i]
if d not in missings[int(not bool(i))]):
- vf = VideoFile.get_one(conn, digest)
+ vf = VideoFile.get_one(conn, Hash.from_b64(digest))
print(f'SYNC: sending {direction} file {vf.full_path}')
mover(vf.full_path, vf.full_path)