mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 13:40:27 +02:00
refactor: Replace feed_to_dict with feed.to_dict in CalibreOPDSClient integration
This commit is contained in:
@@ -30,7 +30,6 @@ from abogen.integrations.audiobookshelf import AudiobookshelfClient, Audiobooksh
|
|||||||
from abogen.integrations.calibre_opds import (
|
from abogen.integrations.calibre_opds import (
|
||||||
CalibreOPDSClient,
|
CalibreOPDSClient,
|
||||||
CalibreOPDSError,
|
CalibreOPDSError,
|
||||||
feed_to_dict,
|
|
||||||
)
|
)
|
||||||
from abogen.web.routes.utils.service import get_service
|
from abogen.web.routes.utils.service import get_service
|
||||||
from abogen.web.routes.utils.form import build_pending_job_from_extraction
|
from abogen.web.routes.utils.form import build_pending_job_from_extraction
|
||||||
@@ -131,7 +130,7 @@ def api_calibre_opds_feed() -> ResponseReturnValue:
|
|||||||
return jsonify({"error": f"Unexpected error: {str(exc)}"}), 500
|
return jsonify({"error": f"Unexpected error: {str(exc)}"}), 500
|
||||||
|
|
||||||
return jsonify({
|
return jsonify({
|
||||||
"feed": feed_to_dict(feed),
|
"feed": feed.to_dict(),
|
||||||
"href": href or "",
|
"href": href or "",
|
||||||
"query": query or "",
|
"query": query or "",
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user