maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Youtube browser - mYTube - released (https://talk.maemo.org/showthread.php?t=17739)

fixfox 2008-09-07 03:31

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by brontide (Post 221569)
Actually, it does!

that's strange ... cos it only downloads/plays videos when there's a high quality version

below is the line I modified....(appending &fmt=6)

const_video_url_real_str = 'http://www.youtube.com/get_video?video_id=%s&t=%s&fmt=6'

brontide 2008-09-07 04:15

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by fixfox (Post 221576)
that's strange ... cos it only downloads/plays videos when there's a high quality version

below is the line I modified....(appending &fmt=6)

const_video_url_real_str = 'http://www.youtube.com/get_video?video_id=%s&t=%s&fmt=6'

No, remove that fmt=6 and add it to the watch url. If you scroll back you will see I struck that line and added the right one. I had that problem too at first.

fixfox 2008-09-07 08:56

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by brontide (Post 221589)
No, remove that fmt=6 and add it to the watch url. If you scroll back you will see I struck that line and added the right one. I had that problem too at first.

I now have it like this.....

const_video_url_str = 'http://www.youtube.com/watch?v=%s&fmt=6'
const_video_url_real_str = 'http://www.youtube.com/get_video?video_id=%s&t=%s'


and I don't get the HQ version to play... only standard.

brontide 2008-09-07 15:06

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by fixfox (Post 221629)
I now have it like this.....

const_video_url_str = 'http://www.youtube.com/watch?v=%s&fmt=6'
const_video_url_real_str = 'http://www.youtube.com/get_video?video_id=%s&t=%s'


and I don't get the HQ version to play... only standard.

If you have already watched the video once at standard, you will have to delete the existing copy in "saved" and replay/download the video again. That should solve it ( in theory ).

fixfox 2008-09-07 21:42

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by brontide (Post 221671)
If you have already watched the video once at standard, you will have to delete the existing copy in "saved" and replay/download the video again. That should solve it ( in theory ).

I always delete the videos after making changes to "youtube-dl-x" to ensure a fresh copy is downloaded when checking the effect of changes made.

I don't get the HQ version with the below line...
const_video_url_str = 'http://www.youtube.com/watch?v=%s&fmt=6'

I only get it with this mod ....
const_video_url_real_str = 'http://www.youtube.com/get_video?video_id=%s&t=%s&fmt=6'

and in that case, no video at all if HQ version does not exist.

brontide 2008-09-07 21:43

Re: Youtube browser - mYTube - released
 
Do you have a specific video ( name / video id ) in mind?

fixfox 2008-09-07 21:52

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by brontide (Post 221741)
Do you have a specific video ( name / video id ) in mind?

yes...

http://www.youtube.com/watch?v=Hr0Wv5DJhuk

brontide 2008-09-08 03:36

Re: Youtube browser - mYTube - released
 
Somehow my good crack must have been switched yesterday. I've got a new youtube-dl-x that tries for HQ and falls back to standard. The stock youtube-dl.py does not handle this either, but once I made the video download into a function it was easy to sense the exception and retry without the high quality. I'll post a link to download just the youtube-dl-x momentary.

brontide 2008-09-08 13:26

Re: Youtube browser - mYTube - released
 
http://www.rit.albany.edu/~ew2193/youtube-dl-x

In the preferences dialog you will need to add the option "-x" for HQ preference to the youtube-dl tab.

fixfox 2008-09-08 20:05

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by brontide (Post 221973)
http://www.rit.albany.edu/~ew2193/youtube-dl-x

In the preferences dialog you will need to add the option "-x" for HQ preference to the youtube-dl tab.

Thanks Brontide ....... Works wonderfully !


All times are GMT. The time now is 11:35.

vBulletin® Version 3.8.8