[Surfraw-commits] [SCM] surfraw - a fast unix command line interface to WWW branch, master, updated. surfraw_2-2-5_1-43-gc28ae9b

Ian Beckwith ianb at erislabs.net
Tue Nov 10 19:51:48 UTC 2009


The following commit has been merged in the master branch:
commit 8e9fd9225996cbb86a84b23a2fc286f4d2e6ec96
Author: Ian Beckwith <ianb at erislabs.net>
Date:   Sun Nov 8 06:16:15 2009 +0000

    new elvi: youtube

diff --git a/ChangeLog b/ChangeLog
index 6393fbb..8575832 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-08  Ian Beckwith  <ianb at erislabs.net>
+
+	* New elvi: youtube. Thanks to Sumant Oemrawsingh.
+
 2009-11-07  Ian Beckwith  <ianb at erislabs.net>
 
 	* New elvi, thanks to Sumant Oemrawsingh:
diff --git a/elvi/Makefile.am b/elvi/Makefile.am
index e0a0fbf..ef1f3ce 100644
--- a/elvi/Makefile.am
+++ b/elvi/Makefile.am
@@ -92,6 +92,7 @@ dist_elvi_SCRIPTS	= \
 		  wikipedia \
 		  woffle \
 		  yahoo \
+		  youtube \
 		  yubnub
 
 if OPENSEARCH
diff --git a/elvi/Makefile.in b/elvi/Makefile.in
index 4d07f32..4afed4f 100644
--- a/elvi/Makefile.in
+++ b/elvi/Makefile.in
@@ -54,7 +54,8 @@ am__dist_elvi_SCRIPTS_DIST = W alioth altavista amazon archpkg arxiv \
 	piratebay pgpkeys port pubmed rae rfc rhyme scholar scicom \
 	slashdot sourceforge springer stockquote sunonesearch \
 	thesaurus translate urban w3css w3html w3link w3rdf wayback \
-	webster wetandwild wikipedia woffle yahoo yubnub opensearch
+	webster wetandwild wikipedia woffle yahoo youtube yubnub \
+	opensearch
 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
 am__vpath_adj = case $$p in \
     $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
@@ -171,7 +172,7 @@ dist_elvi_SCRIPTS = W alioth altavista amazon archpkg arxiv ask aur \
 	piratebay pgpkeys port pubmed rae rfc rhyme scholar scicom \
 	slashdot sourceforge springer stockquote sunonesearch \
 	thesaurus translate urban w3css w3html w3link w3rdf wayback \
-	webster wetandwild wikipedia woffle yahoo yubnub \
+	webster wetandwild wikipedia woffle yahoo youtube yubnub \
 	$(am__append_1)
 all: all-am
 
diff --git a/elvi/mathworld b/elvi/youtube
similarity index 51%
copy from elvi/mathworld
copy to elvi/youtube
index 9b53c83..49a6e94 100755
--- a/elvi/mathworld
+++ b/elvi/youtube
@@ -2,17 +2,17 @@
 #
 # AUTHOR: S.S.R. Oemrawsingh
 #
-# DATE: Mon Nov  4 2009
+# DATE: Sat Nov 07 2009
 #
-# DESC: Elvi to search Wolfram MathWorld
-# elvis: mathworld	-- Search Wolfram MathWorld
+# DESC: Elvi to search YouTube
+# elvis: youtube		-- Search YouTube (www.youtube.com)
 . surfraw || exit 1
 
 w3_usage_hook () {
     cat <<EOF
 Usage: $w3_argv0 [options] [search words]...
 Description:
-  Search Wolfram MathWorld
+  Search YouTube (www.youtube.com) for videos
 EOF
     w3_global_usage
 }
@@ -20,8 +20,8 @@ EOF
 w3_config
 w3_parse_args "$@"
 if test -z "$w3_args"; then
-    w3_browse_url "http://mathworld.wolfram.com/"
+    w3_browse_url "http://www.youtube.com/"
 else
     escaped_args=`w3_url_of_arg $w3_args`
-    w3_browse_url "http://mathworld.wolfram.com/search/?query=${escaped_args}&x=0&y=0"
+    w3_browse_url "http://www.youtube.com/results?search_query=${escaped_args}"
 fi
diff --git a/links.IN b/links.IN
index df3debe..a1d4e43 100644
--- a/links.IN
+++ b/links.IN
@@ -88,4 +88,5 @@ elvi.1sr.gz @mandir@/man1/wetandwild.1sr.gz
 elvi.1sr.gz @mandir@/man1/wikipedia.1sr.gz
 elvi.1sr.gz @mandir@/man1/woffle.1sr.gz
 elvi.1sr.gz @mandir@/man1/yahoo.1sr.gz
+elvi.1sr.gz @mandir@/man1/youtube.1sr.gz
 elvi.1sr.gz @mandir@/man1/yubnub.1sr.gz
diff --git a/test/Makefile.am b/test/Makefile.am
index 95768e9..1bd4041 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -19,7 +19,7 @@ EXTRA_DIST = runtests elviwithouttests README COOKIES W.test		\
 	sunonesearch.test thesaurus.test translate.test urban.test	\
 	w3css.test w3html.test w3link.test w3rdf.test wayback.test	\
 	webster.test wetandwild.test wikipedia.test woffle.test		\
-	yahoo.test yubnub.test
+	yahoo.test youtube.test yubnub.test
 
 test:
 	./runtests
diff --git a/test/Makefile.in b/test/Makefile.in
index 98dfccc..84862d6 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -140,7 +140,7 @@ EXTRA_DIST = runtests elviwithouttests README COOKIES W.test		\
 	sunonesearch.test thesaurus.test translate.test urban.test	\
 	w3css.test w3html.test w3link.test w3rdf.test wayback.test	\
 	webster.test wetandwild.test wikipedia.test woffle.test		\
-	yahoo.test yubnub.test
+	yahoo.test youtube.test yubnub.test
 
 all: all-am
 
diff --git a/test/youtube.test b/test/youtube.test
new file mode 100644
index 0000000..57ce8a5
--- /dev/null
+++ b/test/youtube.test
@@ -0,0 +1,2 @@
+sr youtube simpsons
+Simpsons

-- 
surfraw -  a fast unix command line interface to WWW



More information about the Surfraw-commits mailing list