Skip to content

Commit

Permalink
fix certificate error
Browse files Browse the repository at this point in the history
  • Loading branch information
kokarare1212 committed Oct 28, 2023
1 parent 80d9331 commit c8f9026
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion librespot/audio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,10 @@ class CdnFeedHelper:

@staticmethod
def get_url(resp: StorageResolve.StorageResolveResponse) -> str:
return random.choice(resp.cdnurl)
selected_url = random.choice(resp.cdnurl)
while not "audio4-gm-fb" in selected_url:
selected_url = random.choice(resp.cdnurl)
return selected_url

@staticmethod
def load_track(
Expand Down

1 comment on commit c8f9026

@Cybernatus
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix. If I may point a mistake and if I'm myself not mistaken, line 324 should not have the "not" to function correctly, otherwise it will always pick the faulty CDN.

Please sign in to comment.