Skip to content

Commit

Permalink
Fix quit_app crash
Browse files Browse the repository at this point in the history
  • Loading branch information
elibroftw committed May 9, 2024
1 parent ca0bac4 commit 443ac66
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Music Caster by Elijah Lopez Changelog

5.19.10
- [Fix] Unexpected crash - chromecast related

5.19.9
- [Fix] Playing offline if URL in queue

Expand Down
8 changes: 4 additions & 4 deletions build_files/mc_version_info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# For more details about fixed file info 'ffi' see: http://msdn.microsoft.com/en-us/library/ms646997.aspx
VSVersionInfo(
ffi=FixedFileInfo(
prodvers=(5, 19, 9, 0),
filevers=(5, 19, 9, 0),
prodvers=(5, 19, 10, 0),
filevers=(5, 19, 10, 0),
# Contains a bitmask that specifies the valid bits 'flags'r
mask=0x17,
# Contains a bitmask that specifies the Boolean attributes of the file.
Expand All @@ -27,12 +27,12 @@ VSVersionInfo(
'000004b0',
[StringStruct('CompanyName', 'Elijah Lopez'),
StringStruct('FileDescription', 'Music Caster'),
StringStruct('FileVersion', '5.19.9.0'),
StringStruct('FileVersion', '5.19.10.0'),
StringStruct('InternalName', 'Music Caster'),
StringStruct('LegalCopyright', 'Copyright (c) 2019 - 2024, Elijah Lopez'),
StringStruct('OriginalFilename', 'Music Caster.exe'),
StringStruct('ProductName', 'Music Caster'),
StringStruct('ProductVersion', '5.19.9.0')])
StringStruct('ProductVersion', '5.19.10.0')])
]),
VarFileInfo([VarStruct('Translation', [0, 1200])])
]
Expand Down
2 changes: 1 addition & 1 deletion build_files/setup_script.iss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define MyAppName "Music Caster"
#define MyAppVersion "5.19.9"
#define MyAppVersion "5.19.10"
#define MyAppPublisher "Elijah Lopez"
#define MyAppURL "https://elijahlopez.ca/software#music-caster"
#define MyAppExeName "Music Caster.exe"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ujson~=5.5
mutagen~=1.45
Pillow~=10.3.0
PyChromecast~=14.0
zeroconf~=0.130.0
zeroconf~=0.132.2
pynput~=1.4.5
pypng~=0.0.20
# pypresence
Expand Down
2 changes: 1 addition & 1 deletion src/meta.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = latest_version = '5.19.9'
VERSION = latest_version = '5.19.10'
UPDATE_MESSAGE = """
[NEW] Better Error Capturing
[MSG] Language translators wanted
Expand Down
2 changes: 1 addition & 1 deletion src/music_caster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ def change_device(new_uuid='local'):
current_pos = mc.status.adjusted_current_time
if mc.status.player_is_playing or mc.status.player_is_paused:
mc.stop()
with suppress(NotConnected):
with suppress(UnsupportedNamespace, NotConnected, RequestTimeout, RequestFailed, AssertionError):
cast.quit_app()
elif cast is None and 'audio_player' in globals() and audio_player.is_busy():
current_pos = audio_player.stop()
Expand Down

0 comments on commit 443ac66

Please sign in to comment.