Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support searching videos [subtitles, captions, transcripts?] #152
base: master
Are you sure you want to change the base?
Support searching videos [subtitles, captions, transcripts?] #152
Changes from 6 commits
3d123a9
7ffe29d
b4475f7
42aafe8
9499ace
a5486db
ac60616
3b907dc
9d9b72d
3ec51a9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm asking myself if (a) user's search term/query (e.g. "feelings") and (b) lists of video/book titles whose subtitles contain that term/query ...can be more crisply/cleanly disambiguated.
@deldesir can you please clarify:
result
on Line 971 of cps/db.py a list of Calibre-Web book/video IDs — e.g. Calibre-Web's actual counting numbers like [1, 2, 3, 27] that appear in its web UI? i.e. Is that what functionsearch_query
outputs, do you know...?calibre-web/cps/db.py
Lines 909 to 938 in a5486db
(Please paste in an actual
result
sample, as an example will be extremely useful!)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deldesir are all these variables that start with
cc
andcc_
about Calibre and/or Calibre-Web "custom columns" ?(In function
search_query
and similar functions, withincps/db.py
?)And if so, can we mostly ignore those for now?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deldesir inserted stub Line 961 below: (to log the value of variable
result
)...yielding
tail -f /var/log/calibre-web.log
output:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
(7)
in the above output definitely appears to be the book/video ID, and other aspects of theresult
variable (tags, series, authors, publishers, ETC!) might be more understandable thanks to:calibre-web/cps/db.py
Lines 363 to 390 in a5486db