Skip to content

Commit

Permalink
watch deemix arl changes
Browse files Browse the repository at this point in the history
  • Loading branch information
youegraillot committed Sep 10, 2023
1 parent e8d65e7 commit 3eb01d3
Show file tree
Hide file tree
Showing 10 changed files with 276 additions and 51 deletions.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM docker.io/library/node:16-alpine as deemix

ARG TARGETPLATFORM=linux/amd64

RUN apk add --no-cache git jq python3 make gcc musl-dev g++ && \
Expand Down Expand Up @@ -41,7 +42,13 @@ RUN chmod +x /deemix-server
VOLUME ["/config_deemix", "/downloads"]
EXPOSE 6595

# arl-watch
RUN apk add --no-cache inotify-tools && \
rm -rf /var/lib/apt/lists/*

COPY root /
RUN chmod +x /etc/services.d/*/run
RUN chmod +x /etc/services.d/*/run && \
chmod +x /usr/local/bin/*.sh

VOLUME ["/config", "/music"]
EXPOSE 6595 8686
Empty file modified root/etc/services.d/deemix/run
100644 → 100755
Empty file.
34 changes: 34 additions & 0 deletions root/etc/services.d/setup/POST_downloadclient.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"enable": true,
"protocol": "DeemixDownloadProtocol",
"priority": 1,
"removeCompletedDownloads": true,
"removeFailedDownloads": true,
"name": "Deemix",
"fields": [
{
"name": "host",
"value": "localhost"
},
{
"name": "port",
"value": 6595
},
{
"name": "urlBase"
},
{
"name": "useSsl",
"value": false
},
{
"name": "arl",
"value": ""
}
],
"implementationName": "Deemix",
"implementation": "Deemix",
"configContract": "DeemixSettings",
"infoLink": "https://wiki.servarr.com/lidarr/supported#deemix",
"tags": []
}
29 changes: 29 additions & 0 deletions root/etc/services.d/setup/POST_indexer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"enableRss": true,
"enableAutomaticSearch": true,
"enableInteractiveSearch": true,
"supportsRss": true,
"supportsSearch": true,
"protocol": "DeemixDownloadProtocol",
"priority": 25,
"downloadClientId": 0,
"name": "Deemix",
"fields": [
{
"name": "baseUrl",
"value": "http://localhost:6595"
},
{
"name": "arl",
"value": ""
},
{
"name": "earlyReleaseLimit"
}
],
"implementationName": "Deemix",
"implementation": "Deemix",
"configContract": "DeemixIndexerSettings",
"infoLink": "https://wiki.servarr.com/lidarr/supported#deemix",
"tags": []
}
40 changes: 40 additions & 0 deletions root/etc/services.d/setup/POST_notification_clean_downloads.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"onGrab": false,
"onReleaseImport": true,
"onUpgrade": true,
"onRename": false,
"onHealthIssue": false,
"onDownloadFailure": false,
"onImportFailure": false,
"onTrackRetag": false,
"onApplicationUpdate": false,
"supportsOnGrab": true,
"supportsOnReleaseImport": true,
"supportsOnUpgrade": true,
"supportsOnRename": true,
"supportsOnHealthIssue": true,
"includeHealthWarnings": false,
"supportsOnDownloadFailure": false,
"supportsOnImportFailure": false,
"supportsOnTrackRetag": true,
"supportsOnApplicationUpdate": true,
"name": "Clean Downloads",
"fields": [
{
"name": "path",
"value": "/usr/local/bin/clean-downloads.sh"
},
{
"name": "arguments"
}
],
"implementationName": "Custom Script",
"implementation": "CustomScript",
"configContract": "CustomScriptSettings",
"infoLink": "",
"message": {
"message": "",
"type": "warning"
},
"tags": []
}
40 changes: 40 additions & 0 deletions root/etc/services.d/setup/POST_notification_flac2custom.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"onGrab": false,
"onReleaseImport": true,
"onUpgrade": true,
"onRename": false,
"onHealthIssue": false,
"onDownloadFailure": false,
"onImportFailure": false,
"onTrackRetag": false,
"onApplicationUpdate": false,
"supportsOnGrab": true,
"supportsOnReleaseImport": true,
"supportsOnUpgrade": true,
"supportsOnRename": true,
"supportsOnHealthIssue": true,
"includeHealthWarnings": false,
"supportsOnDownloadFailure": false,
"supportsOnImportFailure": false,
"supportsOnTrackRetag": true,
"supportsOnApplicationUpdate": true,
"name": "Flac2Custom",
"fields": [
{
"name": "path",
"value": "/usr/local/bin/flac2custom.sh"
},
{
"name": "arguments"
}
],
"implementationName": "Custom Script",
"implementation": "CustomScript",
"configContract": "CustomScriptSettings",
"infoLink": "",
"message": {
"message": "",
"type": "warning"
},
"tags": []
}
7 changes: 7 additions & 0 deletions root/etc/services.d/setup/POST_rootFolder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"defaultTags": [],
"defaultQualityProfileId": 1,
"defaultMetadataProfileId": 1,
"path": "/music",
"name": "Music"
}
25 changes: 25 additions & 0 deletions root/etc/services.d/setup/PUT_delayprofile.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "Default",
"items": [
{
"name": "Usenet",
"protocol": "UsenetDownloadProtocol",
"allowed": true,
"delay": 0
},
{
"name": "Torrent",
"protocol": "TorrentDownloadProtocol",
"allowed": true,
"delay": 0
},
{
"name": "Deemix",
"protocol": "DeemixDownloadProtocol",
"allowed": true,
"delay": 0
}
],
"tags": [],
"id": 1
}
Loading

0 comments on commit 3eb01d3

Please sign in to comment.