一种应用程序,用于为给定的树删除给定目录中的文件和文件夹
Removezmedia的Python项目详细描述
用例
此脚本将作为cli在服务器上使用,以删除比给定差异旧的文件。更具体地说,要删除小容量服务器(FreeNAS/FreeBSD)上的媒体
因此,scrpt可以刷新plex实例并通过pushbullet向您发送通知
安装
pipinstallRemoveMediagitclone
基本用法
使用此应用程序有两种选择:
- Generated a config file
- By generating a default one and edit the config file by yourself
- Follow cli instruction to generate the config file
- Pass your paremters directly
生成的配置文件
1。生成默认值
打开shell并运行以下命令
python RemoveMedia generate MyFirstConfig.ini -default=True
此命令将在包中生成一个空配置文件:
~/RemoveMedia/configuration/config
生成的默认配置文件如下所示
注意
[文件夹]
阈值=
路径=
阈值类型=
[丛]
知识产权=
代币=
link=http://${plex:ip}:32400/library/sections/all/refresh?x-plex-token=${plex:token}
[按钮]
api密钥=
[日志]
日志路径=
日志文件名=
警告
删除已使用的参数以防止出错
注意
[文件夹] 阈值= 路径= 阈值类型=
[丛] 知识产权= 代币= link=http://${plex:ip}:32400/library/sections/all/refresh?x-plex-token=${plex:token}
[按钮] api密钥=
[日志] 日志路径= 日志文件名=
警告
删除已使用的参数以防止出错