Created
December 24, 2009 02:49
-
-
Save shadowmaru/262982 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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