Ignore collections
I really don't want to iterate over collections so we'll just ignore them outright
This commit is contained in:
parent
cdf78f0208
commit
539580de2a
@ -134,6 +134,10 @@ def Get_Tracks_Info(url, limit = 100):
|
||||
# Initialise a track object to hold our data
|
||||
track = Track()
|
||||
|
||||
# Ignore collections
|
||||
if track_elem.find(class_='sound__trackList'):
|
||||
continue
|
||||
|
||||
# Grab the title
|
||||
title_elem = track_elem.find(class_='soundTitle__title')
|
||||
if title_elem:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user