Skip to content

Commit

Permalink
Update tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
elmoiv authored Aug 14, 2020
1 parent 2a7855e commit 0905f8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions azapi/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ def ParseSongs(page):
curType, curName, curYear = '', '', ''

for elmnt in Raw_Data:

# v3.0.3: Removed break after script due to google ads inside listAlbum
# is using script tag, which results in not all songs retrieved
# <script> is the first thing after songs list so we break
#if elmnt.name == 'script':
# break

# album info are inside divs
if elmnt.name == 'div':
if elmnt.text == 'other songs:':
Expand Down Expand Up @@ -154,4 +155,4 @@ def ParseSongs(page):
'url': 'http://www.azlyrics.com' + a['href'][2:] \
if a['href'][:2] == '..' else a['href']
}
return songs
return songs

0 comments on commit 0905f8d

Please sign in to comment.