Skip to content

Commit

Permalink
Increase timeout for chromecast
Browse files Browse the repository at this point in the history
  • Loading branch information
elibroftw committed Apr 18, 2024
1 parent dc3fba8 commit acc18cb
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 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.18.4
- [Fix] Increase wait timeout

5.18.3
- [Fix] Handle experimental feature error

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,6 @@ Only I have access to this data, I will NEVER give it to anyone else. Will stop

```sh
python3.12 -m venv .venv
.venv\Scripts\activate # Windows
source .venv/bin/activate # Non-Windows
```
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, 18, 3, 0),
filevers=(5, 18, 3, 0),
prodvers=(5, 18, 4, 0),
filevers=(5, 18, 4, 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.18.3.0'),
StringStruct('FileVersion', '5.18.4.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.18.3.0')])
StringStruct('ProductVersion', '5.18.4.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.18.3"
#define MyAppVersion "5.18.4"
#define MyAppPublisher "Elijah Lopez"
#define MyAppURL "https://elijahlopez.ca/software#music-caster"
#define MyAppExeName "Music Caster.exe"
Expand Down
4 changes: 2 additions & 2 deletions src/meta.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = latest_version = '5.18.3'
VERSION = latest_version = '5.18.4'
UPDATE_MESSAGE = """
[NEW] Better Error Capturing
[MSG] Language translators wanted
Expand Down Expand Up @@ -42,7 +42,7 @@
PID_FILENAME = 'music_caster.pid'
LOCK_FILENAME = 'music_caster.lock'
UNINSTALLER = 'unins000.exe'
WAIT_TIMEOUT = 5
WAIT_TIMEOUT = 10
STREAM_CHUNK = 1024
EMAIL = 'elijahllopezz@gmail.com'
CONTACT_INFO = f'Elijah Lopez <{EMAIL}>'
Expand Down
1 change: 1 addition & 0 deletions src/music_caster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1858,6 +1858,7 @@ def play(position=0, autoplay=True, switching_device=False, show_error=False):
try:
url_args = urllib.parse.urlencode({'path': uri, 'api_key': settings['api_key']})
url = f'http://{get_ipv4()}:{State.PORT}/file?{url_args}'
# raises RequestTimeout
cast.wait(timeout=WAIT_TIMEOUT)
cast.set_volume(volume)
mc = cast.media_controller
Expand Down

0 comments on commit acc18cb

Please sign in to comment.