View Single Post
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#66
Originally Posted by tho View Post
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.
Sure, and my line number was wrong for the newer version.

Starting at line 660 of the newer version of /opt/zoutube/zoutube, the differences with overlap are:

before:

Code:
    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)
after:

Code:
    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)
This is a hack just to get things working. I haven't tested downloading, sorry.
__________________
N9: Go white or go home
 

The Following 2 Users Say Thank You to daperl For This Useful Post: