|
2012-02-11
, 22:55
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#452
|
The Following User Says Thank You to auouymous For This Useful Post: | ||
|
2012-02-12
, 09:09
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#453
|
|
2012-02-12
, 11:22
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#454
|
It downloads the correct video, then in about 40 seconds, it opens up mplayer but it plays a different video then what was chosen.Code:cd /media/mmc1/Videos youtube-dl-x --no-part -f 5 -o "%(stitle)s.%(ext)s" `xclip -out` & sleep 30 mplayer `/bin/ls -1t |head -1`
The Following User Says Thank You to auouymous For This Useful Post: | ||
|
2012-02-12
, 15:45
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#455
|
|
2012-02-13
, 02:32
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#456
|
|
2012-02-13
, 04:51
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#457
|
I think -1c is correct.
The reason it wasn't playing the most recent video was because 30 seconds wasn't long enough of a delay for the video to begin downloading.
cd /media/mmc1/Videos FILE=`/bin/ls -1t |head -1` youtube-dl-x --no-part -f 5 -o "%(stitle)s.%(ext)s" `xclip -out` & sleep 5 while [ "$FILE" = "`/bin/ls -1t |head -1`" ]; do sleep 5 ; done sleep 30 mplayer `/bin/ls -1t |head -1`
The Following User Says Thank You to auouymous For This Useful Post: | ||
|
2012-02-13
, 04:59
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#458
|
|
2012-02-14
, 03:51
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#459
|
|
2012-02-14
, 17:46
|
Posts: 215 |
Thanked: 348 times |
Joined on May 2011
|
#460
|
xclip is what you want. Version 0.8 is in the debfarm repo but is twice the size it should be so might be compromised. I compiled version 0.12 and put it up on the ASUI download page http://asui.garage.maemo.org/_download/xclip . It isn't the full xclip package, only the xclip binary. Copy it to /usr/bin/xclip and chmod 755 it. You must then install the libxmu6 dependancy by running the following command as root:
Now change your script to call xclip, those are grave marks around the command, it is the character on the tilde key of a full size keyboard.Code:apt-get install libxmu6
Now you can just run that script without any parameters and it will download the selected youtube URL. Enjoy!Code:#!/bin/sh cd /media/mmc1/Videos youtube-dl-x --no-part -f 5 -o "%(stitle)s.%(ext)s" `xclip -out`
Nokia-N900:~# xclip -version xclip version 0.12 Copyright (C) 2001-2008 Kim Saunders et al. Distributed under the terms of the GNU GPL
Going to http://m.youtube.com/ using Tear, setting the zoom_step to 0.8 and zooming in once works great and is super fast.
Is there anything that could be done in addition to make this even better?
Maybe have it so that it will highlight and copy the url for you, or perhaps have a 30 wait as it begins to download, then it would automatically start playing it in mplayer?