Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@holta
Copy link
Member

@holta holta commented Jun 19, 2024

@deldesir does this work? Safe enough for now?

(Per @codewiz recommendation.)

@holta holta added the enhancement New feature or request label Jun 19, 2024
@holta holta requested a review from deldesir June 19, 2024 18:45
@deldesir
Copy link
Collaborator

deldesir commented Jun 19, 2024

I got this error message:

root@box:~# lb-wrapper dl https://www.youtube.com/watch?v=PRg5RNU_JLk
/usr/local/bin/lb
/usr/local/bin/yt-dlp
2024-06-19 14:56:06 - [Info] Using yt-dlp 2024.05.27
2024-06-19 14:56:06 - [Info] Running xklb command: lb dl '/library/calibre-web/xklb-metadata.db' --video --search 'https://www.youtube.com/watch?v=PRg5RNU_JLk' '--format best --format-sort 'tbr~1000'' --write-thumbnail --subs -o ''/library/downloads/calibre-web/%(extractor_key,extractor)s/%(uploader,uploader_id)s/%(title).170B_%(view_count)3.2D_[%(id).64B].%(ext)s'' '-vv'
2024-06-19 14:56:06 - [Error] Error 2 occurred while running lb-wrapper's xklb commands.
2024-06-19 14:56:06 - [Debug] /usr/local/bin/lb-wrapper: eval: line 96: syntax error near unexpected token `('
root@box:~# 2024-06-19 14:56:06 - [Debug] /usr/local/bin/lb-wrapper: eval: line 96: `lb dl '/library/calibre-web/xklb-metadata.db' --video --search 'https://www.youtube.com/watch?v=PRg5RNU_JLk' '--format best --format-sort 'tbr~1000'' --write-thumbnail --subs -o ''/library/downloads/calibre-web/%(extractor_key,extractor)s/%(uploader,uploader_id)s/%(title).170B_%(view_count)3.2D_[%(id).64B].%(ext)s'' '-vv''

@codewiz
Copy link

codewiz commented Jun 19, 2024

Looks good to me now.

Copy link
Collaborator

@deldesir deldesir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected for me now. I tested it on Ubuntu 24.04.

@holta
Copy link
Member Author

holta commented Jun 19, 2024

I got this error message:

Apologies. Is this fixed PR now good enough?

@holta holta merged commit 2d76adc into iiab:master Jun 19, 2024
@holta holta changed the title Safer lb-wrapper: Wrap lb parameters (bash vars) in single quotes Safer lb-wrapper: Wrap [most] lb parameters (bash vars) in single quotes Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants