trio,trio wrote:Version 1.3-2
When all attempts to download a video by using all other ways failed I tried your You2pup and it has done the job without any problem.
Many thanks!
trio,trio wrote:Version 1.3-2
Yes.zandarian wrote:Hello: I've tried several times the You2pup that comes with the last Puppy Linux (v. 4.3.1). Its version is 1.3-1. The terminal opens but after 2 or 3 lines closes (it doesn't do all shown in rxvt.jpg, image of first page of this post). It creates .mp4 files of 88 B that don't work. The videos I've tried don't start with dash, so I shouldn't need the last version, 1.3-2. Or do I? Does 1.3-2 have more improvements apart from the dash issue? Thanks
It's only one change in line 35 :#!/bin/bash
# YouTube download script by John Lawrence (http://blog.johnlawrence.net)
#Modified for puppy by trio - 2009
#Modified for puppy by soliver - 2010
use_err() {
echo "Usage: `basename $0` [-f savefile] video_id"
echo "Example: `basename $0` -f Rick oHg5SJYRHA0"
echo " Saves video with id oHg5SJYRHA0 to Rick.flv in your current directory"
echo
exit 65
}
if [ ! $1 ]; then use_err; fi
while getopts ":f:" Option
do
case $Option in
f ) fn=$OPTARG;;
* ) use_err;;
esac
done
shift $(($OPTIND - 1))
if [ -z $1 ]; then use_err; fi
if [ -z $fn ]; then fn=$1; fi
vidID=$1
filename=$fn".mp4"
geturl() { echo "GET $1 HTTP/1.1";echo "Host: $2";echo;echo;sleep 2;echo '^C'; }
echo "Finding hostname"
hostl=`geturl /href youtube.com | nc youtube.com 80 | grep Location | sed 's|Location: http://\([^/]*\)/.*|\1|' | tr -d '\r\n'`
echo "Connecting to "$hostl
watch="/watch?v="$vidID
tid=`geturl $watch $hostl | nc youtube.com 80 | grep '"t":' | sed 's/.*"t": "\([^"]*\)".*/\1/'`
echo "Locating video file"
get_video="/get_video?video_id="$vidID"&t="$tid"&el=detailpage&ps=&fmt=18"
url=`geturl $get_video $hostl | nc youtube.com 80 | grep Location | sed 's/Location: \(.*\)$/\1/' | tr -d '\r\n'`
wget -O - -t 7 -w 5 --waitretry=14 --random-wait '--user-agent=Mozilla/5.0' -e robots=off $url > $filename
What was that all about. Site page seems to not exist on that site anymore.rjbrewer wrote:I don't see the need for it.
It's simpler and faster to use this method.
http://googlesystem.blogspot.com/2008/0 ... files.html
chrissy,chrissy wrote:Im using 1.3-2 right now.
I called my save folder vids and my files are all one word names and I think that must be why they are downloading alright.
They play in gxine without error.
I tried some two word names with a space in and they wouldn't download at all.
I don't get it...now it works again?Leon wrote:chrissy,chrissy wrote:Im using 1.3-2 right now.
I called my save folder vids and my files are all one word names and I think that must be why they are downloading alright.
They play in gxine without error.
I tried some two word names with a space in and they wouldn't download at all.
You are right. I tried your way and it worked.
Many thanks for the solution.