Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
Fixed find_by_id bug (need to pass '/?q=' to find a specific video )
Browse files Browse the repository at this point in the history
  • Loading branch information
mcculloughsean committed Jun 28, 2010
1 parent 178340b commit f44e88d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/you_tube_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def find(query, options = {})
# Here the id is: *JMDcOViViNY* NOTE: this method returns the video itself,
# no need to call @yt.video
def find_by_id(id)
request("videos/#{id}")
request("videos/?q=#{id}")
end

# Fetchs few YouTube categories
Expand Down

0 comments on commit f44e88d

Please sign in to comment.