Fix typo
Fix missing maim.py file in update pypi package Bugfix after last testrun
This commit is contained in:
+2
-2
@@ -804,8 +804,8 @@ def save_cover_from_url(url, book_path):
|
||||
elif use_advocate:
|
||||
img = advocate.get(url, timeout=(10, 200), allow_redirects=False) # ToDo: Error Handling
|
||||
else:
|
||||
log.error("python modul advocate is not installed but is needed")
|
||||
return False, _("Python modul 'advocate' is not installed but is needed for cover downloads")
|
||||
log.error("python module advocate is not installed but is needed")
|
||||
return False, _("Python module 'advocate' is not installed but is needed for cover downloads")
|
||||
img.raise_for_status()
|
||||
return save_cover(img, book_path)
|
||||
except (socket.gaierror,
|
||||
|
||||
+2
-1
@@ -266,8 +266,9 @@ class Updater(threading.Thread):
|
||||
if additional_path:
|
||||
exclude.append(additional_path)
|
||||
exclude = tuple(exclude)
|
||||
# check if we are in a package, rename cps.py to __init__.py
|
||||
# check if we are in a package, rename cps.py to __init__.py and __main__.py
|
||||
if constants.HOME_CONFIG:
|
||||
shutil.copy(os.path.join(source, 'cps.py'), os.path.join(source, '__main__.py'))
|
||||
shutil.move(os.path.join(source, 'cps.py'), os.path.join(source, '__init__.py'))
|
||||
|
||||
for root, dirs, files in os.walk(destination, topdown=True):
|
||||
|
||||
Reference in New Issue
Block a user