Permalink
Browse files

fb & youtube worker back

  • Loading branch information...
1 parent 57f15bb commit a94a5ea02c170136fcf122429651c5e43c010acb @Evangenieur committed Dec 16, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 workers/facebook_search_worker.coffee
  2. +1 −0 workers/youtube_search_worker.coffee
@@ -56,7 +56,7 @@ video_search = (search, opts = {}) ->
id: "facebook/#{post.id}"
post_date: post.created_time
text: post.message
- score: post.likes.count if post.likes || 1
+ score: post.likes?.count or 1
vdo = {}
vdo.title = post.name if post.name?
@@ -71,5 +71,6 @@ video_search = (search, opts = {}) ->
post_date: post.published["$t"]
text: post["media$group"]["media$description"]["$t"]
score: post["yt$statistics"]?["favoriteCount"] || 1
+ video_platforms.getVideoFromMsg msg, post.content.src, vdo
video_search argv.search, argv

0 comments on commit a94a5ea

Please sign in to comment.