From f17a1a8738c83aee0bc7e4bd3ce421c3e32f4570 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 27 Feb 2018 10:54:06 -0600 Subject: [PATCH] Fixed displaying of youtube results --- src/extractors/baseFile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/extractors/baseFile.py b/src/extractors/baseFile.py index 4e9cb37..a8f5b1b 100644 --- a/src/extractors/baseFile.py +++ b/src/extractors/baseFile.py @@ -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) \ No newline at end of file