summaryrefslogtreecommitdiff
path: root/src/rhimportd
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-06-30 11:46:05 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-06-30 11:46:05 (GMT)
commit5f4ed55b2c42dbb63130defc94ba499bcaa215fe (patch)
tree8237910b3a1a7f978a4baf4659743099aeaecb02 /src/rhimportd
parent2c4abeebcdf685f676cfb395a9bf227d4201e8ca (diff)
make fetch converter configurable via telnet
Diffstat (limited to 'src/rhimportd')
-rw-r--r--src/rhimportd/ctrlTelnet.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rhimportd/ctrlTelnet.go b/src/rhimportd/ctrlTelnet.go
index 65357e7..fa0ce65 100644
--- a/src/rhimportd/ctrlTelnet.go
+++ b/src/rhimportd/ctrlTelnet.go
@@ -59,6 +59,7 @@ func telnetHelp(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.
c.Sayln(" Password string password to use for rdxport interface")
c.Sayln(" SourceUri string uri to the file to import")
c.Sayln(" SourceFilePolicy enum one of: auto, keep, delete, delete-with-dir")
+ c.Sayln(" FetchConverter string fetch converter to use (one of null, ffmpeg)")
c.Sayln(" ShowId uint the RHRD show id to import to")
c.Sayln(" ClearShowCarts bool clear all show-carts before importing?")
c.Sayln(" GroupName string name of music-pool group to import to")
@@ -195,6 +196,8 @@ func telnetSet(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.D
ctx.SourceUri = args[2]
case "sourcefilepolicy":
telnetSetFilePolicy(c, &ctx.SourceFilePolicy, args[2])
+ case "fetchconverter":
+ ctx.FetchConverter = args[2]
case "showid":
telnetSetUint(c, &ctx.ShowId, args[2])
case "clearshowcarts":
@@ -243,6 +246,7 @@ func telnetShow(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.
c.Sayln(" Password: %q", ctx.Password)
c.Sayln(" SourceUri: %q", ctx.SourceUri)
c.Sayln(" SourceFilePolicy: %s", ctx.SourceFilePolicy.String())
+ c.Sayln(" FetchConverter: %q", ctx.FetchConverter)
c.Sayln(" ShowId: %v", ctx.ShowId)
c.Sayln(" ClearShowCarts: %v", ctx.ClearShowCarts)
c.Sayln(" GroupName: %q", ctx.GroupName)