Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ 1 [2] 3 4 5 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Script for downloading Youtube videos< Next Oldest | Next Newest >
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: July 04 2007,19:29 QUOTE

I copied the script to a file called "rip" , and ran "rip [the youtube URL]"; produced a "wget --n invalid option" error.  No doubt, I'm missing something obvious.

Usage: wget [-c|--continue] [-q|--quiet] [-O|--output-document file]
               [--header 'header: value'] [-Y|--proxy on/off] [-P DIR] url
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: July 04 2007,20:40 QUOTE

That's probably due to the wget from busybox...
Quote
-nv
Non-verbose - turn off verbose without being completely quiet (use -q for that), which means that error messages and basic information still get printed.
Should be safe just to remove it.
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: July 05 2007,08:52 QUOTE

I did have full wget.. That seems the right solution for busybox version

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: July 05 2007,19:50 QUOTE

Quote (curaga @ July 05 2007,04:52)
I did have full wget.. That seems the right solution for busybox version

Doesn't matter;  the script doesn't work even with the full wget installed.  I don't know much about mktemp, but I tried it with that and directing to a file  'mktp'

EDIT:  Problem was those little single quotes around mktemp didn't copy correctly; things almost working, although:

--00:56:25--  http://youtube.com/get_video.php?hl=en&video_id=prjQ7MwuCWI&l=82&t=OEgsToPDskI2GsLOn4un5ApwsZjXyl07&soff=1&sk=Tja__uRBddjozZ4rjZMhogC
          => `mktemp.flv'
Resolving youtube.com... 208.65.153.253, 208.65.153.251
Connecting to youtube.com[208.65.153.253]:80... connected.
HTTP request sent, awaiting response... 303 See Other
00:56:25 ERROR 303: See Other.
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: July 06 2007,08:24 QUOTE

I had this fully working.. But I personally haven't tested on DSL.
Those aren't single quotes, those are "backquotes" meaning the output of that command will be there:
VAR=`mktemp` VAR will have the output of mktemp
VAR='mktemp' VAR will have "mktemp"

I'll edit it for DSL needs. The link will stay the same.


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
21 replies since June 26 2007,16:13 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ 1 [2] 3 4 5 >/
reply to topic new topic new poll
Quick Reply: Script for downloading Youtube videos

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code