Normalise all tags to lowercase

This commit is contained in:
Thomas Wade 2018-09-30 11:04:19 +09:30
parent f00be5782f
commit 99d77a574b

View File

@ -207,7 +207,7 @@ def Get_Tracks_Info(url, limit = 100):
# Grab the first tag featured on the list item
tag_elem = track_elem.find(class_='soundTitle__tagContent')
if tag_elem:
track.tag = str(tag_elem.string)
track.tag = str(tag_elem.string).lower()
# Grab the play and comment counts (either of these may or may not be present)
play_comment_elems = track_elem.find_all(class_='sc-ministats-item')