请求类型:
新功能
MCEBuddy 版本与类型(32 位或 64 位):
操作系统与类型(32 位或 64 位): Windows 64 位
问题或建议摘要:
能否在 MCEBuddy 完成录制后处理时,增加一个选项,让它向 getchannels.com 的 DVR 服务器发送以下命令:
Invoke-WebRequest -Method Put http://xxx.xxx.xxx.xxx:8089/dvr/pruner/deleted
或
curl -XPUT http://x.x.x.x:8089/dvr/pruner/deleted
截图:
Invoke-WebRequest -Method Put http://xxx.xxx.xxx.xxx:8089/dvr/pruner/deleted
curl -XPUT http://x.x.x.x:8089/dvr/pruner/deleted
目前,MCEBuddy 通过提供的 JSON 文件对 getchannels 录制文件进行后处理。示例如下:
{"Description":"David Spade (\"Lights Out With David Spade\"); science guy Steve Spangler.","Episode":49,"Genres":["Talk"],"IsMovie":false,"IsSports":false,"MetadataGenerator":"Channels DVR","OriginalBroadcastDateTime":"2019-11-14T00:00:00Z","RecordedDateTime":"2019-11-14T20:00:00Z","Season":17,"SeriesPremiereDate":"2003-09-08T00:00:00Z","SubTitle":"David Spade","Title":"The Ellen DeGeneres Show"}
处理完成后,文件会被移到其他路径,但 Channels DVR 仍然能看到这些文件。希望能在 MCEBuddy 后处理时自动执行上述命令,从而无需手动更新 Channels DVR。
Goose
(Goose)
2019年11月19日23:05
2
你有没有试过创建一个 PostCustomCommand 来实现这个?
Advanced concepts to use MCEBuddy
Refer to the MCEBuddy Profiles Basics page to learn about basic Profiles creation
NOTE:
Advanced Conversion Parameters apply to profiles.conf
Do NOT edit mcebuddy.conf. As of v2.3.13 ALL Advanced Configuration Parameters (except FFmpegBackupRemux) in mcebuddy.conf can be accessed through the GUI, Settings → Expert Settings page
DO NOT REPLACE THE NEW CONFIGURATION FILES WITH THE OLD FILES AS PARAMETERS IN THE NEW FILES ARE ADDED/UPDATED WITH EACH RELEASE.
…
老實說我沒有,不過我剛剛把那整段讀完了,看起來遠遠超出我的理解範圍。
Goose
(Goose)
2019年11月20日18:05
4
它比看起来简单,只需阅读“运行自定义命令”部分,你需要做的就是在配置文件中添加:
PostCustomCommandPath=<可执行文件的完整/相对路径>
PostCustomCommandParameters=<可选参数 - 见下方列表>
PostCustomCommandHangPeriod=<0 或正数秒数>
PostCustomCommandCritical=<true 或 false>
PostCustomCommandUISession=<true 或 false>
PostCustomCommandShowWindow=<true 或 false>
PostCustomCommandExitCodeCheck=<true 或 false>
它会在成功转换文件后运行你指定的批处理脚本或文件,你可以在该脚本中执行任何所需操作。论坛上有许多示例 可供参考。