tGoogle changed their page generator - scripts - various script and utils
 (HTM) git clone git://z3bra.org/scripts
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit ec64cf9635041a804ee7958fff478201dc057d0c
 (DIR) parent 83914aaa81e4e1484fec7aeff13fb3b581c444f9
 (HTM) Author: z3bra <willy@mailoo.org>
       Date:   Sun,  6 Jul 2014 16:12:53 +0200
       
       Google changed their page generator
       
       Diffstat:
         M ys                                  |       8 ++++----
       
       1 file changed, 4 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/ys b/ys
       t@@ -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