kylejginavan/youtube_it — Issue #63: Minus Signs 
Author: benhill
Created: 2012-03-09 19:40:14+00:00
State: open

I have noticed that YouTube vids with a video id preceded by a minus sign don't show up in search results. Only when removing the minus sign can it be found.

Example:

http://www.youtube.com/watch?v=-t2joAYI0JQ

[code with minus sign in video id]
video_id = "-t2joAYI0JQ"
client = YouTubeIt::Client.new
youtube_video = client.videos_by(:query => video_id).videos[0] # => nil

[code without minus sign in video id]
video_id = "t2joAYI0JQ"
client = YouTubeIt::Client.new
youtube_video = client.videos_by(:query => video_id).videos[0] # => results