View Single Post
Old 07-19-2024, 12:14 PM   #8
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 915
Karma: 3501166
Join Date: Jan 2017
Location: Poland
Device: Various
You are right. My proposal made no sense.
Other adjustments are needed.

Code:
        # write out modified file
        destdir = ""
        filename = ""
        if bk.launcher_version() >= 20190927:
            filename = bk.id_to_bookpath(mid)
            fpath = os.path.join(temp_dir, filename)
        else:
            if "/" in href:
                destdir, filename = unquote(filename).split("/")
            fpath = os.path.join(temp_dir, "OEBPS", destdir, filename)

Last edited by BeckyEbook; 07-19-2024 at 12:57 PM.
BeckyEbook is offline   Reply With Quote