commit 5438243b4874879196294a4072f245ebf22afd5d Author: eneller <erikneller@gmx.de> Date: Sat Apr 5 00:12:55 2025 +0200 minor celery commit 3a03c498a7e6acff1afe350ce1ae196375d19029 Author: eneller <erikneller@gmx.de> Date: Fri Apr 4 23:40:23 2025 +0200 begin celery
12 lines
279 B
Python
12 lines
279 B
Python
from celery import shared_task
|
|
from django.conf import settings
|
|
|
|
from epub2go.convert import GBConvert
|
|
|
|
converter = GBConvert(downloaddir=settings.MEDIA_ROOT)
|
|
|
|
@shared_task
|
|
def getEpub(book_url):
|
|
# TODO check for existing file and age
|
|
return converter.download(book_url)
|