Ignore collections

I really don't want to iterate over collections so we'll just ignore them outright
This commit is contained in:
Thomas Wade 2018-09-20 00:59:39 +09:30
parent cdf78f0208
commit 539580de2a

View File

@ -134,6 +134,10 @@ def Get_Tracks_Info(url, limit = 100):
# Initialise a track object to hold our data # Initialise a track object to hold our data
track = Track() track = Track()
# Ignore collections
if track_elem.find(class_='sound__trackList'):
continue
# Grab the title # Grab the title
title_elem = track_elem.find(class_='soundTitle__title') title_elem = track_elem.find(class_='soundTitle__title')
if title_elem: if title_elem: