<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>generators/acts_as_videoclub_migration/USAGE</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,7 @@ ActsAsVideoclub
 
 Allows for videos to be added to any model, with a helper for showing them on views
 
-Right now it supports YouTube and Vimeo APIs, but adding additional sources is something trivial.
+Right now it supports Google Videos, YouTube and Vimeo APIs, but adding additional sources is something trivial.
 
 
 == Resources
@@ -13,6 +13,10 @@ Install
  
  script/plugin install git://github.com/linkingpaths/acts_as_videoclub.git
  
+ * Generate migration:
+ 
+ ruby script/generate acts_as_videclub_migration
+ 
 == Usage
  
  * Make your ActiveRecord model act as videoclub.
@@ -20,18 +24,32 @@ Install
 	class Flat &lt; ActiveRecord::Base    
 	  acts_as_videoclub
 	end
+	
+	Now you have the relationship: 
+	
+	  has_many :videos, :as =&gt; :resource
+	 
+	and method:
+	
+	  has_videos?
  
  * Add a video
 
-	XXXX
+	  video = @flat.videos.build(params[:video][:source_url]) unless params[:video][:source_url].blank?
  
- * Show a video
+  or something like this
+  
+    video = Video.new(:source_url =&gt; params[:video][:source_url],
+                      :title =&gt; params[:video][:title], 
+                      :resource =&gt; @flat)
+    video.save
+    
+ * Show a video embeded
  
-	XXXX
-
-== Credits
+	video_embed_code(@flat.videos.first, options)
+	
+	Options accepted: width, height
 
-XXXXX
 
 == More
 </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,6 @@ class ActsAsVideoclubMigration &lt; ActiveRecord::Migration
       t.string  :description
       t.integer :resource_id
       t.string  :resource_type
-
       t.timestamps
     end
   end</diff>
      <filename>generators/acts_as_videoclub_migration/templates/migration.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,8 +3,8 @@ module LinkingPaths
     module Helper #:nodoc:
 
       def video_embed_code(video, options={})
-        options[:width]  ||= &quot;452&quot;
-        options[:height] ||= &quot;354&quot;
+        options[:width]  ||= &quot;425&quot;
+        options[:height] ||= &quot;344&quot;
 
         case video.source_url
         when /youtube/
@@ -12,24 +12,35 @@ module LinkingPaths
           id = $1
           &lt;&lt;-EOS
           &lt;object width=&quot;#{options[:width]}&quot; height=&quot;#{options[:height]}&quot;&gt;
-            &lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/#{id}&amp;hl=es&quot;&gt;&lt;/param&gt;
-            &lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;
-            &lt;embed src=&quot;http://www.youtube.com/v/#{id}&amp;hl=es&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;#{options[:width]}&quot; height=&quot;#{options[:height]}&quot;&gt;&lt;/embed&gt;
+            &lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/#{id}&amp;hl=es&amp;fs=1&quot;&gt;&lt;/param&gt;
+            &lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;
+            &lt;param name=&quot;showsearch&quot; value=&quot;0&quot;&gt;&lt;/param&gt;
+            &lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;
+            &lt;embed src=&quot;http://www.youtube.com/v/#{id}&amp;hl=es&amp;fs=1&quot; type=&quot;application/x-shockwave-flash&quot; showsearch=&quot;0&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;#{options[:width]}&quot; height=&quot;#{options[:height]}&quot;&gt;&lt;/embed&gt;
           &lt;/object&gt;
           EOS
+        when /google/
+          puts &quot;---------------&quot;
+          puts &quot;got google&quot;
+          puts &quot;---------------&quot;
+          video.source_url =~ /docid=-([^&amp;]+)/
+          id = $1
+          &lt;&lt;-EOS
+          &lt;embed id=&quot;VideoPlayback&quot; src=&quot;http://video.google.com/googleplayer.swf?docid=-#{id}&amp;hl=es&amp;fs=true&quot; style=&quot;width:#{options[:width]}px;height:#{options[:height]}px&quot; allowFullScreen=&quot;true&quot; allowScriptAccess=&quot;always&quot; type=&quot;application/x-shockwave-flash&quot;&gt; &lt;/embed&gt;
+          EOS
         when /vimeo/
           video.source_url =~ /vimeo.com\/([^&amp;]+)/
           id = $1
           &lt;&lt;-EOS
-          &lt;object type=&quot;application/x-shockwave-flash&quot; width=&quot;#{options[:width]}&quot; height=&quot;#{options[:height]}&quot; data=&quot;http://www.vimeo.com/moogaloop.swf?clip_id=#{id}&amp;amp;server=www.vimeo.com&amp;amp;fullscreen=1&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&quot;&gt;
+          &lt;object type=&quot;application/x-shockwave-flash&quot; width=&quot;#{options[:width]}&quot; height=&quot;#{options[:height]}&quot; data=&quot;http://www.vimeo.com/moogaloop.swf?clip_id=-#{id}&amp;amp;server=www.vimeo.com&amp;amp;fullscreen=1&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&quot;&gt;
             &lt;param name=&quot;quality&quot; value=&quot;best&quot; /&gt;
             &lt;param name=&quot;allowfullscreen&quot; value=&quot;true&quot; /&gt;
             &lt;param name=&quot;scale&quot; value=&quot;showAll&quot; /&gt;
-            &lt;param name=&quot;movie&quot; value=&quot;http://www.vimeo.com/moogaloop.swf?clip_id=#{id}&amp;amp;server=www.vimeo.com&amp;amp;fullscreen=1&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&quot; /&gt;
+            &lt;param name=&quot;movie&quot; value=&quot;http://www.vimeo.com/moogaloop.swf?clip_id=-#{id}&amp;amp;server=www.vimeo.com&amp;amp;fullscreen=1&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&quot; /&gt;
           &lt;/object&gt;
           EOS
         else
-          &quot;El servicio de video usado no est&#225; soportado aun por el sistema o la url es incorrecta.&quot;
+          &quot;Video service is not supported or the URL is not valid. Only Google Videos, Vimeo and youtube are supported (#{video.source_url})&quot;
         end
       end
 </diff>
      <filename>lib/videoclub_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>136f98090fb1f5d6e77100d22fb5df31d80593f7</id>
    </parent>
  </parents>
  <author>
    <name>Alberto Molpeceres</name>
    <email>alberto.molpeceres@gmail.com</email>
  </author>
  <url>http://github.com/linkingpaths/acts_as_videoclub/commit/9f04201999bfd21f655784ff55c473239e5f3bd5</url>
  <id>9f04201999bfd21f655784ff55c473239e5f3bd5</id>
  <committed-date>2008-12-04T08:46:47-08:00</committed-date>
  <authored-date>2008-12-04T08:46:47-08:00</authored-date>
  <message>README updated, youtube support is back and added google videos support</message>
  <tree>80665d776785da528d4ece57bf3a62348d7dc39d</tree>
  <committer>
    <name>Alberto Molpeceres</name>
    <email>alberto.molpeceres@gmail.com</email>
  </committer>
</commit>
