diff --git a/Custom-Post-Processing-Scripts.md b/Custom-Post-Processing-Scripts.md index 2e220dc..0183e19 100644 --- a/Custom-Post-Processing-Scripts.md +++ b/Custom-Post-Processing-Scripts.md @@ -101,4 +101,14 @@ Additional command line line arguments that are passed to your script, such as r #### PHP #### The information from Lidarr will not be added to $_ENV as one might expect but should be included in the [$_SERVER variable](https://secure.php.net/manual/en/reserved.variables.server.php). A sample script to use this information to convert a file can be found [here](https://gist.github.com/karbowiak/7fb38d346e368edc9d1a). #### PowerShell #### -Sample script using the Lidarr environment variables to create EDL files for all albumss is [here](https://gist.github.com/RedsGT/e1b5f28e7b5b81e1e45378151e73ba5c). \ No newline at end of file +Sample script using the Lidarr environment variables to create EDL files for all albumss is [here](https://gist.github.com/RedsGT/e1b5f28e7b5b81e1e45378151e73ba5c). +#### Beets #### +An example script to trigger beets is [here](https://gist.github.com/ta264/77443a3de790babbd4f5ce6b9af64f4d). You need to have your beets config file setup correctly. An example is [here](https://gist.github.com/ta264/2cb2de25755976bf3f5e7901835209d5). + +Key points: + - This will not work on Lidarr `0.5.0.583`. It requires nightly or a (yet to be released) `0.6.0` build. + - `directory` must be your (only) root directory in Lidarr + - `import\copy` must be `no` to prevent beets moving files + - You should configure beets file naming to match your lidarr file naming to avoid nasty surprises + - You must set `BEET_CONFIG` to point to your beets config file in `beet_import.sh` + - You should trigger the custom script on Album Import. \ No newline at end of file