1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-22 07:42:28 +00:00

Updated Custom Post Processing Scripts (markdown)

ta264 2019-04-09 12:51:19 +01:00
parent 49ba970a0f
commit e82ee22bcb

@ -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).
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.