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

Starts to adjust codepaths to simplify how mkchromecast operates, and to more clearly distinguish between distinct operating modes. #448

Merged
merged 6 commits into from
Jan 6, 2024

Conversation

xsdg
Copy link
Collaborator

@xsdg xsdg commented Jan 6, 2024

This fixes the single-time arg-parsing behavior as specified in #425, and is an important step towards continuing to simplify cascading logic as covered by #434

xsdg added 6 commits January 5, 2024 23:22
…anup

In particular, we should be able to drop mkchromecast.pid and simplify or drop mkchromecast.tmp.
…e related issues

- Doesn't run `atexit` from multiple places
- Avoids redundant usage of `atexit` and `signal`
- Renames `show_control` to `block_until_exit`, which clarifies that it's actually essentially the main loop of the parent process
- Avoids useless recursive call from the 'a' handler
- Shares the `KeyboardInterrupt` exception handler between the controls-enabled and controls-disabled codepaths
This will avoid the need for stacks of conditions, such as
`if self.mkcc.youtube_url is None and self.mkcc.source_url is None:`
@xsdg xsdg merged commit 90c125f into muammar:master Jan 6, 2024
@xsdg xsdg deleted the codepath branch January 6, 2024 03:00
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.

1 participant