Skip to content

Detect Bluetooth speaker and truncate_title #85

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mariokhz
Copy link
Contributor

@mariokhz mariokhz commented Mar 25, 2025

image

Truncate title

image
Without this addition, it would show ax-shell - Dolphin

@mariokhz mariokhz changed the title Detect Bluetooth speaker Detect Bluetooth speaker and truncate_title Mar 25, 2025
@Axenide
Copy link
Owner

Axenide commented Mar 25, 2025

Thanks! Will merge when I get home.

@tr1xem
Copy link
Contributor

tr1xem commented Mar 29, 2025

Suggestion

return parts[1] if len(parts) == 2 and parts[0] == "" else parts[0] if len(parts) > 1 else title

As when app like discord startup its title is - Discord which makes title blank

@tr1xem
Copy link
Contributor

tr1xem commented Mar 29, 2025

Issue m referring to
With patch:

image

Without patch:

image

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