Skip to content

Commit

Permalink
Merge pull request yql#140 from houyhnhnm/master
Browse files Browse the repository at this point in the history
The orderby non existence issue has been corrected, thanks twobit for sharing
  • Loading branch information
pjdonnelly committed Dec 1, 2011
2 parents cf81627 + c5af214 commit 4fa5ef4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion HIA/HIA.search.xml
Expand Up @@ -3,7 +3,7 @@
<meta>
<author>Houyhnhnm</author>
<description>Search differenct sources of The Internet Archive, and returns the entries for the first page or a page described. Developer's note: it does not check for the number of pages from a query and use that to make a true control on the page input, restricting it to the number of pages the Internet Archive responds to with a page. Also a connect failure issue arises from the search if the page is too far, and it comes up as an error</description>
<documentationURL></documentationURL>
<documentationURL>http://www.associatedcontent.com/article/9000477/github_hiasearch.html?cat=15</documentationURL>
<sampleQuery>select * from {table} where query="yahoo" and zone="4"</sampleQuery>
<sampleQuery>select * from {table} where query="yahoo" and zone="4" and page="2"</sampleQuery>
</meta>
Expand Down
15 changes: 11 additions & 4 deletions youtube/youtube.search.xml
Expand Up @@ -21,10 +21,17 @@
<key private="true" id="v" type="xs:integer" default="2" paramType="query" />
</inputs>
<execute><![CDATA[
if(order_by.length<=0)
{
order_by="relevance";
}
if(order_by)
{
if(order_by.length<=0)
{
order_by="relevance";
}
}
else
{
order_by="relevance";
}
var atom = Namespace("http://www.w3.org/2005/Atom");
var media = Namespace("http://search.yahoo.com/mrss/");
var gd = Namespace("http://schemas.google.com/g/2005");
Expand Down

0 comments on commit 4fa5ef4

Please sign in to comment.