Add quality check for video downloads

Github

Github
API
Sometimes videos stored in our backend is not in HD quality, which results in broken download links. This bug fix enables us to return a download URL for medium quality in those cases.
Sometimes videos stored in our backend is not in HD quality, which results in broken download links. This bug fix enables us to return a download URL for medium quality in those cases.