Permalink
Browse files

trying to debug jsonp and search issues

  • Loading branch information...
1 parent 9544d0e commit ba535121ab5248d38c51ed1a3ff37cd0d5e5b279 @octatone committed Jun 16, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/tv.js
View
@@ -6,7 +6,7 @@ var Globals = {
date = new Date(),
unixtime_ms = date.getTime(),
unixtime = parseInt(unixtime_ms / 1000);
- return "search/.json?q=%28and+%28or+site%3A%27youtube.com%27+site%3A%27vimeo.com%27+site%3A%27youtu.be%27%29+timestamp%3A"+(unixtime - 5*one_day)+"..%29&restrict_sr=on&sort=top";
+ return "search/.json?q=%28and+%28or+site%3A%27youtube.com%27+site%3A%27vimeo.com%27+site%3A%27youtu.be%27%29+timestamp%3A"+(unixtime - 5*one_day)+"..%29&restrict_sr=on&sort=top&syntax=cloudsearch";
})(),
/* Channels Object */
@@ -282,6 +282,7 @@ function loadChannel(channel, video_id) {
dataType: "jsonp",
jsonp: "jsonp",
success: function(data) {
+ console.log(data);
Globals.videos[this_chan] = {};
Globals.videos[this_chan].video = []; //clear out stored videos
for(var x in data.data.children){
@@ -721,6 +722,7 @@ function getFeedURI(channel){
function formatFeedURI(channel_obj){
switch(channel_obj.type){
case 'search':
+ console.log(channel_obj.feed + Globals.search_str);
return channel_obj.feed + Globals.search_str;
default:
return channel_obj.feed + '.json';

0 comments on commit ba53512

Please sign in to comment.