-
Notifications
You must be signed in to change notification settings - Fork 5
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
Improve polling and logging #86
Changes from 3 commits
6ba7544
8c00a12
0a1ca8c
3509efc
322046c
e52ae66
423c846
ca46406
3b9d16d
558536a
6844322
a12d0b5
8ab0d58
ce5983d
6ec77ef
7290961
b6585ad
6714687
e10acec
98a0339
955716e
2242353
251af1d
a33f04b
b7eef86
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -6,7 +6,7 @@ TMP_DOWNLOADS_DIR="/library/downloads/calibre-web" | |||||||||||||||
SURVEY_DB_FILE="${TMP_DOWNLOADS_DIR}/survey.db" | ||||||||||||||||
URL="$1" | ||||||||||||||||
FORMAT_OPTIONS="--format best --format-sort 'tbr~1000'" | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please delete
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
@deldesir see above request. (This thread appears to have been closed prematurely.) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, I'll delete lb-wrapper.greedy There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I get it. I will delete lb-wrapper.greedy |
||||||||||||||||
XKLB_FULL_CMD="${XKLB_EXECUTABLE} tubeadd ${SURVEY_DB_FILE} ${URL} --verbose && ${XKLB_EXECUTABLE} dl ${SURVEY_DB_FILE} --prefix ${TMP_DOWNLOADS_DIR} --write-thumbnail ${FORMAT_OPTIONS} --video ${URL} --verbose" | ||||||||||||||||
XKLB_FULL_CMD="${XKLB_EXECUTABLE} tubeadd ${SURVEY_DB_FILE} ${URL} -vv && ${XKLB_EXECUTABLE} dl ${SURVEY_DB_FILE} --prefix ${TMP_DOWNLOADS_DIR} --write-thumbnail ${FORMAT_OPTIONS} --video ${URL} -vvv" | ||||||||||||||||
|
||||||||||||||||
mkdir -p ${TMP_DOWNLOADS_DIR} | ||||||||||||||||
|
||||||||||||||||
|
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.
These lines need more explaining:
break
statement now needed with "adding", unlike in the past?self.progress = 1
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 refactored it and got rid of pattern matching. The logging will be more aligned with #68. However it builds on a customization made to xklb's underlying yt_dlp code, in which I use progress hooks.
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.
What xklb or yt-dlp code are you talking about, to help others understand?
What line number in your code? (Thanks!)
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 am talking about this changes:
deldesir/library@f923477
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.
@chapmanjacobd just FYI! 🏗️
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 please clarify:
Are you asking everyone to change how they install IIAB with Calibre-Web ?
Are you asking them to customize xklb code, after pipx install xklb ?
Please spell out precisely (AI²) whatever you are suggesting (Thanks!)
AI² = Articulate Assumptions, Intentions & Intuition
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.
No need to customize xklb. IIAB install instructions remain the same.