Added if-else statements on search_result.html to handle errors from reading track information when there's no or less than 3 top tracks. Also, artist image will not appear if there's no artist image url found from api. When there's no genre, a message will be displayed instead of leaving the section empty. All data will be returned as None if they are not found from api.
Example search result of no artist image, no genre, only one track:
Added if-else statements on search_result.html to handle errors from reading track information when there's no or less than 3 top tracks. Also, artist image will not appear if there's no artist image url found from api. When there's no genre, a message will be displayed instead of leaving the section empty. All data will be returned as None if they are not found from api.
Example search result of no artist image, no genre, only one track: