From 18eb303fa8dfff17ddeed6794c1dcc00c6dcd2e7 Mon Sep 17 00:00:00 2001
From: Blondel MONDESIR <16546989+deldesir@users.noreply.github.com>
Date: Tue, 21 Nov 2023 23:18:38 -0500
Subject: [PATCH 1/5] Create watchvideo.html
---
cps/templates/watchvideo.html | 59 +++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
create mode 100644 cps/templates/watchvideo.html
diff --git a/cps/templates/watchvideo.html b/cps/templates/watchvideo.html
new file mode 100644
index 0000000000..b4af54136a
--- /dev/null
+++ b/cps/templates/watchvideo.html
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
+
+
From fa30ba0e06f4876f55013dea6dd6d985dab68ec0 Mon Sep 17 00:00:00 2001
From: Blondel MONDESIR <16546989+deldesir@users.noreply.github.com>
Date: Tue, 21 Nov 2023 23:23:24 -0500
Subject: [PATCH 2/5] Use video template
---
cps/web.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cps/web.py b/cps/web.py
index 485e42d43c..24fefda515 100755
--- a/cps/web.py
+++ b/cps/web.py
@@ -1568,7 +1568,8 @@ def read_book(book_id, book_format):
if book_format.lower() == fileExt:
entries = calibre_db.get_filtered_book(book_id)
log.debug("Start video watching for %d", book_id)
- return serve_book.__closure__[0].cell_contents(book_id, book_format.lower(), anyname="")
+ return render_title_template('watchvideo.html', videofile=book_id, videoformat=book_format.lower(),
+ entry=entries, bookmark=bookmark)
for fileExt in ["cbr", "cbt", "cbz"]:
if book_format.lower() == fileExt:
all_name = str(book_id)
From 4f0ca78adb7d8fa2bdc24a194fed1521bec64755 Mon Sep 17 00:00:00 2001
From: Blondel MONDESIR <16546989+deldesir@users.noreply.github.com>
Date: Tue, 21 Nov 2023 23:27:28 -0500
Subject: [PATCH 3/5] Update jquery.min.js
Bump jquery's version from 3.6.3 to 3.7.1
---
cps/static/js/libs/jquery.min.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cps/static/js/libs/jquery.min.js b/cps/static/js/libs/jquery.min.js
index b5329e9aee..7f37b5d991 100644
--- a/cps/static/js/libs/jquery.min.js
+++ b/cps/static/js/libs/jquery.min.js
@@ -1,2 +1,2 @@
-/*! jQuery v3.6.3 | (c) OpenJS Foundation and other contributors | jquery.org/license */
-!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=a.call(Object),v={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},S=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||S).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.3",E=function(e,t){return new E.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0