scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit ec64cf9635041a804ee7958fff478201dc057d0c
parent 83914aaa81e4e1484fec7aeff13fb3b581c444f9
Author: z3bra <willy@mailoo.org>
Date:   Sun Jul  6 16:12:53 +0200

Google changed their page generator

Diffstat:
ys | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ys b/ys @@ -17,14 +17,14 @@ EOF } num=3 -regex='^.*title="\([^"]*\)".*href="\(/watch[^"]*\)".*$' -output='\1 - http://youtube.com\2' +regex='^.*<a href="\(/watch[^"]*\)"[^>]*>\([^<]*\)</a>.*$' +output='\2 - http://youtube.com\1' while getopts "hn:tu" OPT; do case $OPT in n) num=$OPTARG;; - t) output='\1';; - u) output='http://youtube.com\2';; + t) output='\2';; + u) output='http://youtube.com\1';; h) usage long; exit 0;; *) usage; exit 1;; esac