mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-04 21:47:28 +08:00
Merge pull request #219 from c8763yee/feat/audioOverride-without-remote_dl
- Make server serve audio files for songs with both `audioOverride=True` and `remote_dl=False` flags, when specifying `songlist` file in server.
This commit is contained in:
@@ -85,9 +85,12 @@ class SonglistParser:
|
||||
if i['ratingClass'] == 3 and i.get('audioOverride', False):
|
||||
r |= 64
|
||||
r |= 1 << i['ratingClass']
|
||||
else:
|
||||
if any(i['ratingClass'] == 3 for i in song.get('difficulties', [])):
|
||||
r |= 8
|
||||
else: # 針對remote_dl為False時BYD難度強制下載的處理
|
||||
for i in song.get('difficulties', []):
|
||||
if i['ratingClass'] == 3:
|
||||
r |= 8
|
||||
if i.get('audioOverride', False):
|
||||
r |= 64
|
||||
|
||||
for extra_file in song.get('additional_files', []):
|
||||
x = extra_file['file_name']
|
||||
|
||||
Reference in New Issue
Block a user