"address": "ws://10.10.1.28/services/nexio"\r
},\r
"remote": {\r
- "address": "ftp://10.10.1.56:2098/MXF",\r
+ "address": "ftp://10.10.1.56:2098",\r
"userName": "administrator",\r
"password": "system"\r
}\r
"outputFormat": "%ID%",\r
"tag": "Adáskész",\r
"remote": {\r
- "address": "ftp://10.10.1.100:21/PLAYOUT_CHECK",\r
+ "address": "ftp://10.10.1.100:21/PLAYOUT_CHECK1",\r
"userName": "mediacube",\r
"password": "Broadca5T"\r
}\r
"tag": "Betöltés",\r
"killDateDays": 7,\r
"remote": {\r
- "address": "file://10.10.1.100/BRAAVOS/PLAYOUT_CHECK",\r
+ "address": "file://10.10.1.100/BRAAVOS/PLAYOUT_CHECK1",\r
"timeout": 1000\r
}\r
},\r
--- /dev/null
+{\r
+ "title": "Betöltés",\r
+ "active": true,\r
+ "startInTray": false,\r
+ "enableCustomMetadataId": true,\r
+ "player": {\r
+ "enabled": true,\r
+ "autoStart": false,\r
+ "segmentEditor": true\r
+ },\r
+ "source": {\r
+ "$type": "UNCSource",\r
+ "filter": "avi,wav,mxf",\r
+ "local": {\r
+ "address": "file://c:/x"\r
+ }\r
+ },\r
+ "metadatas": [\r
+ {\r
+ "$type": "OctopusMetadata",\r
+ "server": {\r
+ "address": "http://10.10.1.28/services/rest/octopus/",\r
+ "timeout": 1000\r
+ }\r
+ },\r
+ {\r
+ "$type": "TrafficMetadata",\r
+ "server": {\r
+ "address": "Data Source=10.10.1.45\\sql16;Initial Catalog=PA_Echo;Persist Security Info=True;",\r
+ "userName": "MAM",\r
+ "password": "Echotv.hu",\r
+ "timeout": 1000\r
+ }\r
+ },\r
+ {\r
+ "$type": "MediaCubeMetadata",\r
+ "server": {\r
+ "address": "http://10.10.1.28/services/rest/jobengine/",\r
+ "timeout": 1000\r
+ }\r
+ }\r
+ ],\r
+ "targets": [\r
+ {\r
+ "label": "Híranyag betöltés",\r
+ "processor": "UNCTargetProcessor",\r
+ "outputFormat": "%ID%-%SOURCENAME%",\r
+ "tag": "Betöltés",\r
+ "createSubFolder": true,\r
+ "killDateDays": 7,\r
+ "useMetadata": false,\r
+ "remote": {\r
+ "address": "file://10.10.1.100/BRAAVOS/OCTOPUS",\r
+ "timeout": 1000\r
+ }\r
+ },\r
+ {\r
+ "label": "Adásanyag betöltés",\r
+ "processor": "UNCTargetProcessor",\r
+ "outputFormat": "%ID%",\r
+ "tag": "Betöltés",\r
+ "killDateDays": 7,\r
+ "remote": {\r
+ "address": "file://10.10.1.100/BRAAVOS/PLAYOUT_CHECK",\r
+ "timeout": 1000\r
+ }\r
+ },\r
+ {\r
+ "label": "Archiválás",\r
+ "processor": "UNCTargetProcessor",\r
+ "outputFormat": "%ID%",\r
+ "tag": "Archiválás",\r
+ "useMetadata": true,\r
+ "remote": {\r
+ "address": "file://10.10.1.100/BRAAVOS/ARCHIVE",\r
+ "timeout": 1000\r
+ }\r
+ }\r
+ ]\r
+}\r
"player": {\r
"enabled": true,\r
"autoStart": false,\r
- "segmentEditor": false\r
+ "segmentEditor": true\r
},\r
"source": {\r
"$type": "UNCSource",\r
"saveSegments": true,\r
"tag": "Adáskész",\r
"remote": {\r
- "address": "file://10.10.1.100/BRAAVOS/PLAYOUT"\r
+ "address": "file://10.10.1.100/BRAAVOS/PLAYOUT/IceGateway"\r
}\r
},\r
{\r
"outputFormat": "%ID%",\r
"tag": "Újravágás",\r
"remote": {\r
- "address": "file://10.10.1.100/BRAAVOS/PLAYOUT_NLE"\r
+ "address": "file://10.10.1.100/BRAAVOS/PLAYOUT_NLE1"\r
},\r
"sendSEmailOnSuccess" : true, \r
"successEmailRecipient": "vasary@elgekko.net",\r
<Compile Include="MaestroForm.Source.cs">\r
<SubType>Form</SubType>\r
</Compile>\r
+ <None Include="Configuration\configuration-ingest2.json">\r
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\r
+ </None>\r
<None Include="Maestro_TemporaryKey.pfx" />\r
<None Include="nlog.config">\r
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\r
<None Include="Resources\configuration-fxp.json">\r
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\r
</None>\r
- <None Include="Resources\configuration-playout.json">\r
+ <None Include="Configuration\configuration-playout.json">\r
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\r
</None>\r
<None Include="Resources\configuration-unc.json">\r
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\r
</None>\r
- <None Include="Resources\configuration-ingest.json">\r
+ <None Include="Configuration\configuration-ingest.json">\r
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\r
</None>\r
- <None Include="Resources\configuration-control.json">\r
+ <None Include="Configuration\configuration-control.json">\r
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>\r
</None>\r
</ItemGroup>\r
}\r
\r
private void CreateForms() {\r
- string[] files = Directory.GetFiles("./Resources", "*.json");\r
+ string[] files = Directory.GetFiles("./Configuration", "*.json");\r
if (files.Length == 0) {\r
MessageBox.Show("Hiányos konfiguráció!");\r
Application.Exit();\r
\r
try {\r
sourceFTP = CreateClient(sourceConfig.Remote);\r
- long ilength = sourceFTP.GetFileSize(inputUri.AbsolutePath);\r
+ long ilength = sourceFTP.GetFileSize(inputUri.AbsolutePath) / 2;\r
\r
FtpReply replyPASV = targetFTP.Execute("PASV");\r
if (!replyPASV.Success)\r
if (!sourceReplyTYPE.Success)\r
throw new Exception(sourceReplyTYPE.ErrorMessage);\r
\r
- FtpReply replyRETR = sourceFTP.Execute("RETR " + inputUri.AbsolutePath);\r
+ FtpReply replyRETR = sourceFTP.Execute("RETR " + inputUri.AbsolutePath.Replace("/", ""));\r
if (!replyRETR.Success) {\r
\r
replyRETR = sourceFTP.Execute("RETR " + inputUri.Segments[inputUri.Segments.Length - 1]);\r
if (!monitorFTP.FileExists(OutputName))\r
throw new Exception("A cél állomány nem jött létre.");\r
long overall = 0;\r
+ long lastSize = 0;\r
while (overall != ilength) {\r
overall = monitorFTP.GetFileSize(OutputName);\r
- Progress = (int)((double)overall / ilength * 100);\r
- Thread.Sleep(100);\r
+ if (overall == lastSize) {\r
+ Progress = 100;\r
+ break;\r
+ } else {\r
+ Progress = (int)((double)overall / ilength * 100);\r
+ }\r
+ Thread.Sleep(300);\r
}\r
\r
}\r