mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-14 04:07:28 +08:00
[Bug fix] video download error with songlist
- Fix a bug that the video files cannot be downloaded when the `songlist` file exists. #177
This commit is contained in:
@@ -47,8 +47,8 @@ class SonglistParser:
|
||||
# songlist没有,则只限制文件名
|
||||
return file_name in SonglistParser.FILE_NAMES
|
||||
rule = SonglistParser.songs[song_id]
|
||||
for i in range(10):
|
||||
if file_name == SonglistParser.FILE_NAMES[i] and rule & (1 << i) != 0:
|
||||
for i, v in enumerate(SonglistParser.FILE_NAMES):
|
||||
if file_name == v and rule & (1 << i) != 0:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user