- Create a working directory for your updates, ex:
/root/scripts/plex-update/
- Download a copy of
plex-update.sh
and make it executable - Find your Plex Token
nano plex-update.sh
and set thePLEX_TOKEN
variable- Test the script
./plex-update.sh
- Schedule the updates regularly:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const url = require('url'); | |
const https = require('https'); | |
exports.handler = (event, context, callback) => { | |
let webhook_url = event.Records[0].customData; | |
if (!webhook_url) { | |
let error = new Error("Web-hook URL not provided as custom data."); | |
callback(error) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"issue": [ | |
{ | |
"id": "TEST-1", | |
"entityId": "85-15", | |
"jiraId": null, | |
"field": [ | |
{ | |
"name": "projectShortName", | |
"value": "TEST" |
I hereby claim:
- I am babelop on github.
- I am binarybabel (https://keybase.io/binarybabel) on keybase.
- I have a public key whose fingerprint is D942 5C80 5070 A3E4 CCC4 86AF A90F C51C D52D D5DB
To claim this, I am signing this object: