Description of bug
Video download fails initially with error, "A transaction is already begun on this Session". Subsequent downloads of same video are successful.
To Reproduce
Steps to reproduce the behavior:
- Go to '/books/tasks
- Click on 'Download"
- Enter in a URL
- In the Tasks Table, it shows the video download fails. Error is: A transaction is already begun on this Session.
- Subsequent downloads of the same video succeed.
Logs
Expected behavior
I expect the video download to succeed on the initial attempt.
Screenshots

Environment (please complete the following information):
- OS: MacOS 14.0
- Calibre-Web version: 0.6.24 Beta
- Browser: Safari 17.0
Description of bug
Video download fails initially with error, "A transaction is already begun on this Session". Subsequent downloads of same video are successful.
To Reproduce
Steps to reproduce the behavior:
Logs
Expected behavior
I expect the video download to succeed on the initial attempt.
Screenshots

Environment (please complete the following information):