Credits to Steph http://www.codecompetence.com/
Here is a list of commands, description of the parameters and an example.
Command: MyVideo
This command creates a XML file which is compatable with MediaPortal My videos so the description of the recording will show up in mediaportal.
Arguments:
The ArgusTV file to process, this must be passed in UNC format.
Example: ArgusYV.Batch.ProcessCommand.exe MyVideo\\htpc\recordings\Tom and Jerry 20010-02-24 1200.ts
This will create a file called Tom and Jerry 20010-02-24 1200.xml in the same folder as the recording with the info of the recording in MP XML format.
Command: Log
This command writes all the parameters to the ArgusTV log. this can be used in the batch files to log that everything goes smooth in big batch files.
Arguments:
All arguments are writen to the ArgusTV log.
Example: ArgusTV.Batch.ProcessCommand.exe log "This is a test"
Will make one entry in the ArgusTV log with the text This is a test
Command: IsPartial
This command can check if a recording is a partial recording. This will set ERRORLEVEL to 0 if the recording is full and to -1 if the recording is a partial.
Arguments:
The ArgusTV file to process, this must be passed in UNC format.
Example: ArgusTV.Batch.ProcessCommand.exe IsPartial "\\htpc\recordings\Tom and Jerry 20010-02-24 1200.ts" ERRORLEVEL will be set to 0 as this recording is full (recorded from scheduled start to scheduled end).
Command: Rename
Renames the reference to a recording in the ArgusTV database. The actual file will not be renamed.
Arguments:
The ArgusTV file to process, this must be passed in UNC format.
The new file name which the file reference should be changed to.
Example: ArgusTV.Batch.ProcessCommand.exe rename "\\htpc\recordings\Tom and Jerry 20010-02-24 1200.ts" "\\htpc\recordings\Tom and Jerry.mpg"
This will change the file reference in ArgusTV.
Command: Delete
Deletes the reference to a recording in the ArgusTV database. It can also delete the file.
Arguments:
The ArgusTV file to process, this must be passed in UNC format.
Delete the actual file: If you pass 1 then the referece and the file is delete, if you pass 0 the only the reference is removed.
Example: ArgusTV.Batch.ProcessCommand.exe delete "\\htpc\recordings\Tom and Jerry 20010-02-24 1200.ts" 0
This will delete the reference to the recording, but not the actual recording.
Command: Description
Creates a file with infomation from the ArgusTV database. The extension of the file must be passed as an argument so must what you want in the file.
Arguments:
The ArgusTV file to process, this must be passed in UNC format.
Extension: The extension of the new file. The name of the file is the same as the recording. The file will also be created in the same folder as the recording.
What to write in the file: You write the whole string you want in the file here. Certain tags are replaced in the program. At the moment only 6 tags exist. {StartTime}{StopTime}{Description}{title}{EpisodeNumber}{SeriesNumber}
Example: ArgusTV.Batch.ProcessCommand.exe description "\\htpc\recordings\Tom and Jerry 20010-02-24 1200.ts" txt {starttime};{stoptime};{description}
This will create a file with the extension txt with the start time, stop time and the description of the show seperated with a semicolon(;)
Code: Select all
Releases:
2.0.0.0: First release for ArugsTV
2.0.1.0: Release with FTR references removed, Tags in XML changed to tags and compiled agains Argus TV 2.1