Active Topics

 



Notices


Reply
Thread Tools
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#61
Maybe youtube has very recently changed something, but I had to insert the following at line 821 of /opt/zoutube/zoutube in order for zoutube to work

Code:
        fmt = 18
__________________
N9: Go white or go home
 
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#62
Woops, I just downloaded the latest, and I had to comment out line 621 before adding my above hack. I'm guessing something similar would also work for downloads.
__________________
N9: Go white or go home
 
Posts: 53 | Thanked: 17 times | Joined on Apr 2010
#63
Originally Posted by daperl View Post
Woops, I just downloaded the latest, and I had to comment out line 621 before adding my above hack. I'm guessing something similar would also work for downloads.
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.
 
Posts: 13 | Thanked: 5 times | Joined on Apr 2010
#64
Originally Posted by daperl View Post
Maybe youtube has very recently changed something, but I had to insert the following at line 821 of /opt/zoutube/zoutube in order for zoutube to work
Nice, but my zoutube file has only 681 lines so that advice does not help me very much
 
Posts: 13 | Thanked: 5 times | Joined on Apr 2010
#65
Originally Posted by nathaneous View Post
hi guys,
it might be just me havin this problem but i can't download videos anymore. since i upgraded the zoutube app, everytime i click on download video nothing happens? its just idle?
can anyone help? really enjoyed this app, especially in gym when they play stupid music vids on t.v
Same here, searching videos works fine but playing and downloading does not.
 
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:
Posts: 13 | Thanked: 5 times | Joined on Apr 2010
#67
Yes, that works very well. Thanks!
 

The Following User Says Thank You to fleetwood For This Useful Post:
Posts: 15 | Thanked: 36 times | Joined on Dec 2009
#68
Originally Posted by daperl View Post
.
Download and Play works.

Correct me if I'm wrong, but fmt is a quality setting so this is not really a robust fix.
 

The Following User Says Thank You to Hoxzer For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#69
Originally Posted by Hoxzer View Post
Download and Play works.
Good to hear. Thanks.

Correct me if I'm wrong, but fmt is a quality setting so this is not really a robust fix.
True, from a quick glance at the code, I think zoutube tries to determine all available formats for a particular video by parsing the actual html page of that video. It seems that youtube changed something, and that list of formats was coming up empty. Format 18 (480x270 ?) was the only one that worked for me at the time.

Here's some format information I found inside the zoutube program.

Code:
        formats = {
            22: "HD Quality",
            35: "High Quality",
            34: "Reasonable Quality",
            18: "Good Quality",
            5: "Bad Quality" }
Code:
        format_priorities = [
                '22/2000000/9/0/115', # 1280x720
                '35/640000/9/0/115',  # 640x360
                '18/512000/9/0/115',  # 480x270
                '34/0/9/0/115',       # 320x180
                '5/0/7/0/0',          # 320x180
        ]
__________________
N9: Go white or go home
 
Posts: 53 | Thanked: 17 times | Joined on Apr 2010
#70
Thank You.
Made the changes and it works great now, but using vi was a chore .
 
Reply

Tags
youtube


 
Forum Jump


All times are GMT. The time now is 22:17.