Normalise all tags to lowercase
This commit is contained in:
parent
f00be5782f
commit
99d77a574b
@ -207,7 +207,7 @@ def Get_Tracks_Info(url, limit = 100):
|
|||||||
# Grab the first tag featured on the list item
|
# Grab the first tag featured on the list item
|
||||||
tag_elem = track_elem.find(class_='soundTitle__tagContent')
|
tag_elem = track_elem.find(class_='soundTitle__tagContent')
|
||||||
if tag_elem:
|
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)
|
# 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')
|
play_comment_elems = track_elem.find_all(class_='sc-ministats-item')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user