noirotm / flvmeta

FLV Metadata Editor
https://flvmeta.com/
GNU General Public License v2.0
121 stars 35 forks source link

Batch mode #2

Open noirotm opened 12 years ago

noirotm commented 12 years ago

FLVmeta currently lacks the possibility to work on several files when it is invoked.

Here I propose the creation of a so-called "batch mode" in which flvmeta will work on a list of files instead of a single file.

Triggering batch mode on will be done by two different ways:

  1. sending a list of lines via stdin, each line containing one file path, file names specified on the command line will be ignored
  2. using the -b/--batch option, where all files specified on the command line will be interpreted as input files

Obviously, this operation mode will only work where it makes sense to use it, in the check and update commands.

check command

It will alter its behaviour so filenames will be displayed in the text mode reporting, and create XML reports with several file entries. The number of errors/warnings will be global to the list of files.

update command

Every file specified will be updated in place, and the operation will continue until the last file is updated, even in the case of errors. Errors will be displayed as usual.