3 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
4 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../app/models')
14 site = Site.find('mmdbowl')
16 Bowl.each_code_in_rss do |code|
17 number = /dl(\d+)\z/.match(code)[1].to_i
20 next if bowl.removed? || bowl.denied?
23 summary = bowl.summary
25 date = '01/01/01(Mon),00:00:00'
26 origname = bowl.origname
29 arc = site.create_arc(name, summary, size, date, origname, locked)
30 arc.create_entries("/Volumes/uploader/arc/#{site.code}/#{name}") unless locked