Skip to content

Commit ca0bac4

Browse files
committed
Add timeout
1 parent 1b780ab commit ca0bac4

6 files changed

Lines changed: 12 additions & 7 deletions

File tree

CHANGELOG.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Music Caster by Elijah Lopez Changelog
22

3+
5.19.9
4+
- [Fix] Playing offline if URL in queue
5+
36
5.19.8
47
- [Fix] Unexpected crash when chromecast stops working
58

build_files/mc_version_info.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# For more details about fixed file info 'ffi' see: http://msdn.microsoft.com/en-us/library/ms646997.aspx
33
VSVersionInfo(
44
ffi=FixedFileInfo(
5-
prodvers=(5, 19, 8, 0),
6-
filevers=(5, 19, 8, 0),
5+
prodvers=(5, 19, 9, 0),
6+
filevers=(5, 19, 9, 0),
77
# Contains a bitmask that specifies the valid bits 'flags'r
88
mask=0x17,
99
# Contains a bitmask that specifies the Boolean attributes of the file.
@@ -27,12 +27,12 @@ VSVersionInfo(
2727
'000004b0',
2828
[StringStruct('CompanyName', 'Elijah Lopez'),
2929
StringStruct('FileDescription', 'Music Caster'),
30-
StringStruct('FileVersion', '5.19.8.0'),
30+
StringStruct('FileVersion', '5.19.9.0'),
3131
StringStruct('InternalName', 'Music Caster'),
3232
StringStruct('LegalCopyright', 'Copyright (c) 2019 - 2024, Elijah Lopez'),
3333
StringStruct('OriginalFilename', 'Music Caster.exe'),
3434
StringStruct('ProductName', 'Music Caster'),
35-
StringStruct('ProductVersion', '5.19.8.0')])
35+
StringStruct('ProductVersion', '5.19.9.0')])
3636
]),
3737
VarFileInfo([VarStruct('Translation', [0, 1200])])
3838
]

build_files/setup_script.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define MyAppName "Music Caster"
2-
#define MyAppVersion "5.19.8"
2+
#define MyAppVersion "5.19.9"
33
#define MyAppPublisher "Elijah Lopez"
44
#define MyAppURL "https://elijahlopez.ca/software#music-caster"
55
#define MyAppExeName "Music Caster.exe"

src/meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = latest_version = '5.19.8'
1+
VERSION = latest_version = '5.19.9'
22
UPDATE_MESSAGE = """
33
[NEW] Better Error Capturing
44
[MSG] Language translators wanted

src/music_caster.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,6 +1619,7 @@ def ydl_get_metadata(item, duration_helper=True):
16191619
return metadata
16201620

16211621
def get_url_metadata(url, fetch_art=True) -> list:
1622+
# TODO: cache in the database for persistence
16221623
# TODO: move to utils.py and add parameter url_metadata_cache
16231624
"""
16241625
Tries to parse url and set url_metadata[url] to parsed metadata

src/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,8 @@ def ydl(proxy=None, quiet=False):
745745
from yt_dlp import YoutubeDL
746746
opts = {
747747
'quiet': quiet,
748-
'verbose': not quiet
748+
'verbose': not quiet,
749+
'socket_timeout': 10
749750
}
750751
if proxy is not None:
751752
opts['proxy'] = proxy

0 commit comments

Comments
 (0)