The Following 2 Users Say Thank You to johnpad For This Useful Post: | ||
|
2011-01-07
, 13:06
|
Posts: 78 |
Thanked: 57 times |
Joined on Jul 2007
|
#372
|
#CHANGED BY ENGMEX/johnpad percent_str = percent_str.rstrip('%') percent_str = float(percent_str) if data_len_str.rfind('M') > -1: data_len_str = data_len_str.rstrip('M') data_len_str = 1024*float(data_len_str) else: data_len_str = data_len_str.rstrip('k') data_len_str = float(data_len_str) counter = float(((data_len_str)/100)*percent_str) data_len_str = data_len_str/1024 if counter < 1024: self.to_screen(u'\nRetrieving video data: %5s%% (%8.2fk of %8.2fM) at %8s/s ETA %s ' % (percent_str, counter, data_len_str, speed_str, eta_str), skip_eol=True) else: counter = counter/1024 self.to_screen(u'\nRetrieving video data: %5s%% (%8.2fM of %sM) at %8s/s ETA %s ' % (percent_str, counter, data_len_str, speed_str, eta_str), skip_eol=True) #END ENGMEX/johnpad #self.to_screen(u'\r[download] %s of %s at %s ETA %s' % (percent_str, data_len_str, speed_str, eta_str), skip_eol=True)
The Following User Says Thank You to johnpad For This Useful Post: | ||
|
2011-01-07
, 13:17
|
Posts: 161 |
Thanked: 45 times |
Joined on Apr 2010
|
#373
|
The Following User Says Thank You to n900faniam For This Useful Post: | ||
|
2011-01-07
, 13:26
|
Posts: 78 |
Thanked: 57 times |
Joined on Jul 2007
|
#374
|
return filename #+ u'.part'
#self.try_rename(tmpfilename, filename)
|
2011-01-07
, 14:11
|
|
Posts: 4,783 |
Thanked: 1,253 times |
Joined on Aug 2007
@ norway
|
#375
|
|
2011-01-07
, 14:36
|
Posts: 53 |
Thanked: 6 times |
Joined on Sep 2008
|
#376
|
But this is on my old N810. Anyone want to send me an N900 ?
I was right, it is the .part file name.
Very quickly hacking out the .part filename:
and commenting out the renameCode:return filename #+ u'.part'
Fixes it completely (based on the last 10 seconds of testing). Now sleep.Code:#self.try_rename(tmpfilename, filename)
-John
|
2011-01-07
, 17:55
|
Posts: 53 |
Thanked: 6 times |
Joined on Sep 2008
|
#377
|
|
2011-01-07
, 19:59
|
Posts: 78 |
Thanked: 57 times |
Joined on Jul 2007
|
#378
|
/home/user/MyDocs/youtube-dl-x -f 5 -o %d -- %s
The Following 6 Users Say Thank You to johnpad For This Useful Post: | ||
|
2011-01-07
, 20:50
|
|
Posts: 4,783 |
Thanked: 1,253 times |
Joined on Aug 2007
@ norway
|
#379
|
The Following User Says Thank You to tso For This Useful Post: | ||
|
2011-01-09
, 08:43
|
Posts: 53 |
Thanked: 6 times |
Joined on Sep 2008
|
#380
|
Hi,
Here is the tar of my modified script which seems to be working for me. Good suggestion to drop it in a user area (though I think it will need to be a unix, not FAT, partition for the file permissions).
Maybe save it to /home/user/MyDocs
Then add the settings in mYTube:
Hope this helps.Code:/home/user/MyDocs/youtube-dl-x -f 5 -o %d -- %s
Cheers,
John
I just had a play with this and I can get it working (partly).
Step 1: Head over to http://rg3.github.com/youtube-dl/ and download the most recent youtube-dl script
(currently https://github.com/rg3/youtube-dl/ra....09/youtube-dl)
Step 2: Copy it over your current script on the tablet (in /usr/bin)
(note it will be named either youtube-dl or youtube-dl-x (you may want to back up the current script))
Step 3: Go into Mytube Preferences more ... and on the youtube-dl tab add -f 5 into the parameters and press apply (this selects a lower quality format file which plays better)
Step 4: Download anything you want to watch
NOTE: You must download video now as the play directly will not work. The progress meter is also broken by this change. Just hit download and wait until the [/] stops spinning. Then go to the saved/all screen and you can play videos from there.
Not great, but better than nothing
Can anybody else help to get the progress meter and play buttons ?working?
-John