Skip to content

Commit

Permalink
Update azapi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
elmoiv authored Feb 21, 2022
1 parent f7fd583 commit d8d8910
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions azapi/azapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ def getSongs(self, sleep=3):

albums_page = self.get(link, self.proxies)
if albums_page.status_code != 200:
print('Error',albums_page.status_code)
if not self.search_engine:
print('Failed to find songs. Trying to get link from Google')
self.search_engine = 'google'
Expand All @@ -171,4 +170,4 @@ def getSongs(self, sleep=3):

# Store songs for later usage
self.songs = parseSongs(albums_page)
return self.songs
return self.songs

0 comments on commit d8d8910

Please sign in to comment.