Skip to content

Instantly share code, notes, and snippets.

@shadowmaru
Created December 24, 2009 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shadowmaru/262982 to your computer and use it in GitHub Desktop.
Save shadowmaru/262982 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/ruby
videos = Dir.glob("Glee*.avi")
videos.each do |file|
file_parts = file.split(".")
file_parts.pop
filename = file_parts.join(".")
nfo = File.new("#{filename}.nfo", "w+")
nfo.puts("<musicvideo>
<title></title>
<artist>Glee Cast</artist>
<album>Season 1</album>
<genre>Musical</genre>
<runtime />
<plot />
<year>2009</year>
<director />
<studio />
</musicvideo>")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment