diff --git a/README.md b/README.md index a7fec5f..4931f1c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # epub2go-web -A simple Website to provide a `NNI (Non-Nerd Interface)` to [epub2go.py](https://github.com/eneller/epub2go.py). \ No newline at end of file +A simple Website to provide a `NNI (Non-Nerd Interface)` to [epub2go.py](https://github.com/eneller/epub2go.py), a web to epub converter. \ No newline at end of file diff --git a/src/core/views.py b/src/core/views.py index 114a58c..06661a2 100644 --- a/src/core/views.py +++ b/src/core/views.py @@ -6,6 +6,8 @@ from epub2go.convert import get_all_books, Book, GBConvert import os +converter = GBConvert(downloaddir=settings.MEDIA_ROOT) + def index(request: HttpRequest): title = 'epub2go' targetParam = request.GET.get('t', None) diff --git a/src/epub2go_web/static/styles.css b/src/epub2go_web/static/styles.css index d618033..b5bc829 100644 --- a/src/epub2go_web/static/styles.css +++ b/src/epub2go_web/static/styles.css @@ -1,6 +1,10 @@ tr:nth-child(even){ background-color: #EEEEEE; } +tr:hover{ + background-color: #DDDDDD; + transition: all 2ms; +} .table-icon{ vertical-align: middle; height: 1em; diff --git a/uv.lock b/uv.lock index 805c63c..46a02b2 100644 --- a/uv.lock +++ b/uv.lock @@ -104,8 +104,8 @@ wheels = [ [[package]] name = "epub2go" -version = "1.3" -source = { git = "https://github.com/eneller/epub2go.py#5ed44bdb0a812d3526802284b8c4524bf8cfaf17" } +version = "2.0" +source = { git = "https://github.com/eneller/epub2go.py#5d063d8597266fdfbfd924838be70b33fc4cbc34" } dependencies = [ { name = "beautifulsoup4" }, { name = "click" },