Closed DMaxence closed 1 year ago
When a song has "No views" on youtube, a string is returned from yt, so the int() cast is impossible and raises an error. Added a test to verify it's a string or an integer before parsing it within int()
int()
When a song has "No views" on youtube, a string is returned from yt, so the
int()
cast is impossible and raises an error. Added a test to verify it's a string or an integer before parsing it withinint()