Could you please paste a before and after of the section in question, I was unsure as to if I was at the correct place. Thanks.
def on_play_clicked(self, button): fmt = YouTube.string_to_format(self.format_picker.get_value()) url = "%s&fmt=%d" % (self.url, fmt) self.play_url(url) def on_download_clicked(self, button): fmt = YouTube.string_to_format(self.format_picker.get_value()) url = "%s&fmt=%d" % (self.url, fmt)
def on_play_clicked(self, button): #fmt = YouTube.string_to_format(self.format_picker.get_value()) fmt = 18 url = "%s&fmt=%d" % (self.url, fmt) self.play_url(url) def on_download_clicked(self, button): #fmt = YouTube.string_to_format(self.format_picker.get_value()) fmt = 18 url = "%s&fmt=%d" % (self.url, fmt)