Skip to content
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

Plugin error handling #17

Merged
merged 9 commits into from
Sep 10, 2024
Merged

Plugin error handling #17

merged 9 commits into from
Sep 10, 2024

Conversation

Brainicism
Copy link
Owner

No description provided.

@Brainicism Brainicism requested a review from grqz September 9, 2024 04:58
plugin/yt_dlp_plugins/extractor/getpot_bgutil.py Outdated Show resolved Hide resolved
plugin/yt_dlp_plugins/extractor/getpot_bgutil.py Outdated Show resolved Hide resolved
plugin/yt_dlp_plugins/extractor/getpot_bgutil.py Outdated Show resolved Hide resolved
plugin/yt_dlp_plugins/extractor/getpot_bgutil.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
* allow custom http server base url by passing argument `getpot_bgutil_baseurl` (defaults to `http://127.0.0.1:4416`)
* Code formatting(use single quotes): be consistent, remove trailing whitespaces
* Use `yt_dlp.utils.Popen` instead of `subprocess.Popen`
* Add cause to several `RequestError`'s
* Do not use bare `except`
[server] add options to main.ts, misc
* generate_once.ts: Remove repeated logging
* main.ts: allow custom http server port by passing `-p, --port <PORT>` (defaults to 4416)
* main.ts: allow verbose logging for `SessionManager` by passing argument `--verbose`
* main.ts: return a JSON object when it fails to generate a visitordata
@grqz
Copy link
Collaborator

grqz commented Sep 9, 2024

  • document: add extractor arg getpot_bgutil_baseurl and cmdline arg -p (or --port)

Brainicism and others added 4 commits September 9, 2024 10:52
Co-authored-by: N/Ame <[email protected]>
* code formatting
* be consistent(`encode()`, `decode()`): remove redundant arg `'utf-8'`
* be consistent: deal with invalid parameter (i.e. `base_url is None`) inside the function
* use `json.load` to read response
* no longer passes `cause` to the `RequestError` constructor as it is useless when a message is present, move the cause to the message
* logging: improve clarity
@grqz grqz self-requested a review September 10, 2024 06:45
@Brainicism Brainicism merged commit c67f61d into master Sep 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants