Skip to content

Commit c0b437a

Browse files
committed
Fix players being unable to play a track via the music list if it is a track of their hub music list but not of their personal music list
1 parent 51b865e commit c0b437a

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,3 +879,6 @@
879879
- The area lists file `config/area_lists.yaml`
880880
- The music lists file `config/music_lists.yaml`
881881
- The area templates file `config/area_templates.yaml`
882+
883+
## 221204a (5.0.0-post1)
884+
* Fixed players being unable to play a track via the music list if it is a track of their hub music list but not of their personal music list

server/area_manager.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -778,9 +778,12 @@ def play_track(self, name: str, client: ClientManager.Client,
778778
try:
779779
name, length, source = client.music_manager.get_music_data(name)
780780
except MusicError.MusicNotFoundError:
781-
if raise_if_not_found:
782-
raise
783-
length, source = -1, ''
781+
try:
782+
name, length, source = client.hub.music_manager.get_music_data(name)
783+
except MusicError.MusicNotFoundError:
784+
if raise_if_not_found:
785+
raise
786+
length, source = -1, ''
784787

785788
if 'name' not in pargs:
786789
pargs['name'] = name

server/tsuserver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ def __init__(self, client_manager_type: Type[ClientManager] = None):
6767
self.release = 5
6868
self.major_version = 0
6969
self.minor_version = 0
70-
self.segment_version = ''
71-
self.internal_version = '221123a'
70+
self.segment_version = 'post1'
71+
self.internal_version = '221204a'
7272
version_string = self.get_version_string()
7373
self.software = 'TsuserverDR {}'.format(version_string)
7474
self.version = 'TsuserverDR {} ({})'.format(version_string, self.internal_version)

0 commit comments

Comments
 (0)