Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def modify_tags(source, overwrite: {}, remove: [])
- args = ["+te"]
- args.concat(overwrite.flat_map { |tag, value| ["-m", "#{tag}=#{value}"] })
- args.concat(remove.flat_map { |tag| ["-e", tag] })
- system("dcmodify", *args, source)
- end
Advertisement
Add Comment
Please, Sign In to add comment