kunt

golang IRC bot
git clone git://git.2f30.org/kunt
Log | Files | Refs | LICENSE

commit c224c825d7a52628d895e1954cd5a634b5bb7119
parent 66d4c3693375a1b1e14986772a9b683e20578697
Author: dsp <dsp@2f30.org>
Date:   Tue, 29 Apr 2014 17:09:31 +0100

removal of resolve script since now we implemented that using pure go

Diffstat:
Dsrc/kunt/resolve | 18------------------
1 file changed, 0 insertions(+), 18 deletions(-)

diff --git a/src/kunt/resolve b/src/kunt/resolve @@ -1,18 +0,0 @@ -#!/bin/sh - -export LINK=$@ - -if [ -z ${LINK} ]; then - echo "usage: $0 <link>" - exit 1 -fi - -echo ${LINK} | grep -qie "\(\(\(www.\)\?youtube.com/.*\(?v=\|&v=\).\+\)\|\(youtu.be/.\+\)\)" -if [ $? -eq 0 ]; then - TITLE=$(echo ${LINK} | awk -F'=' '{print $2}') - QUERY="-qO - https://gdata.youtube.com/feeds/api/videos/${TITLE}" - wget ${QUERY} | grep -oe "<title type='text'>.*</title>" | awk -F'>' '{print $2}' | awk -F'<' '{print $1}' | tr -d '\n' - exit 0 -else - exit 1 -fi