Skip to content

Commit

Permalink
changing the way to get dailymotion video id
Browse files Browse the repository at this point in the history
  • Loading branch information
mamuso committed Mar 1, 2009
1 parent 4fa1bd7 commit 2ecc7f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_unvlogable/vg_dailymotion.rb
Expand Up @@ -41,7 +41,7 @@ def parse_url(url)
path = uri.path
videoargs = ''
if path
videoargs = path.match(/x.*/)[0]
videoargs = path.split('/video/')[1].split("/")[0]
raise unless videoargs.size > 0
else
raise
Expand Down

0 comments on commit 2ecc7f0

Please sign in to comment.