Fixed displaying of youtube results

This commit is contained in:
Manuel Cortez 2018-02-27 10:54:06 -06:00
parent 5b2ea093b3
commit f17a1a8738

View File

@ -15,7 +15,10 @@ class song(object):
self.download_url = ""
def format_track(self):
return "{0}. {1}. {2}".format(self.title, self.duration, self.size)
if self.size != 0:
return "{0}. {1}. {2}".format(self.title, self.duration, self.size)
else:
return "{0} {1}".format(self.title, self.duration)
def get_download_url(self):
self.download_url = self.extractor.get_download_url(self.url)