This plugin for Universal Media Server (UMS) will automatically delete a file after having been played.
##Using the plugin
- Download it from SourceForge
- Place it in the plugins folder of your Univeral Media Server
- Start Univeral Media Server
- In the Plugin Management tab click on Auto-delete after play
- Configure the properties
All done 😎
Following properties can be set in the plugin configuration:
If you use UMS in headless mode, you can configure the settings in the properties file located in
<profile_directory>\plugins\AutoDeleteFileAfterPlay\configuration.properties
(create it if it doesn't exist).
The default configuration contains following:
percentPlayedRequired=80
autoDeleteFolderPaths=
moveToRecycleBin=true
isDeleteVideo=true
isDeleteAudio=false
isDeleteImage=false
Note: File paths have to be escaped when setting autoDeleteFolderPaths
. E.g. C:\video_tmp
becomes C\:\\video_tmp
The plugin has a maven dependency onto UMS; as it isn't hosted in a maven repository, it has to be installed in the local repository by doing following:
git clone https://github.com/UniversalMediaServer/UniversalMediaServer.git
cd UniversalMediaServer
mvn com.savage7.maven.plugins:maven-external-dependency-plugin:resolve-external
mvn com.savage7.maven.plugins:maven-external-dependency-plugin:install-external
mvn install
Then you can build the plugin:
git clone https://github.com/taconaut/UMS-Plugin-AutoDeleteFileAfterPlay.git
cd UMS-Plugin-AutoDeleteFileAfterPlay
mvn package
Make sure the version of UMS you've just installed is correctly referenced in the pom.xml of the plugin:
<dependency>
<groupId>net.pms</groupId>
<artifactId>ums</artifactId>
<version>5.2.4-SNAPSHOT</version>
</dependency>