Permalink
Browse files

Merge pull request #1 from lukeholder/patch-1

railscasts feed now returns mp4 video files, not mov (thanks lukeholder)
  • Loading branch information...
2 parents ae963b6 + 5c2b675 commit e29159ff49a40ae3c71a35778c347ace707a7bfa @kulbirsaini committed Sep 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railscasts_sync.rb
View
@@ -26,7 +26,7 @@ def check_temp
videos_urls = rss.items.map { |it| it.enclosure.url }.reverse
videos_filenames = videos_urls.map {|url| url.split('/').last }
-existing_filenames = Dir.glob('*.mov').select{ |filename| valid_file(filename) }
+existing_filenames = Dir.glob('*.mp4').select{ |filename| valid_file(filename) }
missing_filenames = videos_filenames - existing_filenames
puts "Downloading #{missing_filenames.size} missing videos..."

0 comments on commit e29159f

Please sign in to comment.