Merge pull request #247 from liamharper2453/patch-1

Add CDN exclusion for audio-gm-fb
This commit is contained in:
碧舞すみほ 2023-11-12 19:13:59 +09:00 committed by GitHub
commit 93ee0649fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ class CdnFeedHelper:
@staticmethod
def get_url(resp: StorageResolve.StorageResolveResponse) -> str:
selected_url = random.choice(resp.cdnurl)
while "audio4-gm-fb" in selected_url:
while "audio4-gm-fb" in selected_url or "audio-gm-fb" in selected_url:
selected_url = random.choice(resp.cdnurl)
return selected_url