diff options
author | Donald Webster | 2019-06-21 21:29:25 -0700 |
---|---|---|
committer | Donald Webster | 2019-06-21 21:33:56 -0700 |
commit | dad09c833bdfcdad1c93984e399ffc4a8fd4cb4f (patch) | |
tree | eb998b84135c55d7d8f7aadd7e130ebaa07bb5f3 | |
download | aur-dad09c833bdfcdad1c93984e399ffc4a8fd4cb4f.tar.gz |
Initial version of traktarr.
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 42 | ||||
-rw-r--r-- | config.json | 64 | ||||
-rw-r--r-- | traktarr.service | 17 | ||||
-rw-r--r-- | traktarr.sysusers | 1 | ||||
-rw-r--r-- | traktarr.tmpfiles | 3 |
7 files changed, 161 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..afef572dae8a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,30 @@ +pkgbase = traktarr + pkgdesc = Use Trakt to add shows to Sonarr and movies to Radarr. + pkgver = 1.2.4 + pkgrel = 1 + url = https://github.com/l3uddz/traktarr + arch = any + license = GPL3 + depends = python + depends = python-backoff + depends = python-schedule + depends = python-click + depends = python-requests + depends = python-pyfiglet + depends = python-cashier + depends = python-attrdict + optdepends = sonarr: TV download automation for usenet and torrents. + optdepends = radarr: Movie download automation for usenet and torrents. + source = traktarr-1.2.4.tar.gz::https://github.com/l3uddz/traktarr/archive/1.2.4.tar.gz + source = traktarr.tmpfiles + source = traktarr.service + source = config.json + source = traktarr.sysusers + sha512sums = 66f5f056ebd4b536642d3461843a6af8725a5ace3b815618065d1daa528ffa5a61d31d69c81340e6e6f418b05a0a41bfdd9e9f885d70bab45dbcf111c96a2cfb + sha512sums = eca779036f63676e8e8d621d9ec24d991ea7f240bde43d1b18f523d6d08ca9a1fc1ffdfff6796acbfaacfc484b3e6d64140973cabae67ed4638b48cb19a743f2 + sha512sums = 39cc9feb5620578d4bc56e873fbbf524cdd579dc904a947b734517eafec1969fa9589ee42ee158a908066f1d284f5623161597a3404e1d6be2605a6da6c9bb18 + sha512sums = cc5f858a8e903894b6ee992dc8946d6ffeffe0cb25293d0721c82f24d36905f36c33625c8d81afbd8825b928d2938674b14b14122055d861c948e1a3bd9a60e6 + sha512sums = e5a11499ae6057531498a1b5b87f6812b74d3ba775292de46eaffbe2883493689b211b12b37c2b56fa1c9fa1893c303d6b0ae517ca83adbcd3513844df0607ee + +pkgname = traktarr + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..70e946d67b5c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.xz +*.gz +src/ +pkg/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ad425398c8d9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Donald Webster <fryfrog@gmail.com> +pkgname='traktarr' +pkgver=1.2.4 +pkgrel=1 +pkgdesc="Use Trakt to add shows to Sonarr and movies to Radarr." +arch=(any) +url="https://github.com/l3uddz/traktarr" +license=('GPL3') +depends=('python' + 'python-backoff' + 'python-schedule' + 'python-click' + 'python-requests' + 'python-pyfiglet' + 'python-cashier' + 'python-attrdict') + +optdepends=('sonarr: TV download automation for usenet and torrents.' + 'radarr: Movie download automation for usenet and torrents.') + +source=("traktarr-${pkgver}.tar.gz::https://github.com/l3uddz/traktarr/archive/${pkgver}.tar.gz" + 'traktarr.tmpfiles' + 'traktarr.service' + 'config.json' + 'traktarr.sysusers') + +sha512sums=('66f5f056ebd4b536642d3461843a6af8725a5ace3b815618065d1daa528ffa5a61d31d69c81340e6e6f418b05a0a41bfdd9e9f885d70bab45dbcf111c96a2cfb' + 'eca779036f63676e8e8d621d9ec24d991ea7f240bde43d1b18f523d6d08ca9a1fc1ffdfff6796acbfaacfc484b3e6d64140973cabae67ed4638b48cb19a743f2' + '39cc9feb5620578d4bc56e873fbbf524cdd579dc904a947b734517eafec1969fa9589ee42ee158a908066f1d284f5623161597a3404e1d6be2605a6da6c9bb18' + 'cc5f858a8e903894b6ee992dc8946d6ffeffe0cb25293d0721c82f24d36905f36c33625c8d81afbd8825b928d2938674b14b14122055d861c948e1a3bd9a60e6' + 'e5a11499ae6057531498a1b5b87f6812b74d3ba775292de46eaffbe2883493689b211b12b37c2b56fa1c9fa1893c303d6b0ae517ca83adbcd3513844df0607ee') + +package() { + install -d -m 755 "${pkgdir}/usr/lib/traktarr" + install -D -m 666 "${srcdir}/config.json" "${pkgdir}/usr/lib/traktarr/" + cd "${srcdir}/traktarr-${pkgver}/" + cp -dpr --no-preserve=ownership assets helpers media misc notifications traktarr.py "${pkgdir}/usr/lib/traktarr/" + + install -D -m 644 "${srcdir}/traktarr.service" "${pkgdir}/usr/lib/systemd/system/traktarr.service" + install -D -m 644 "${srcdir}/traktarr.sysusers" "${pkgdir}/usr/lib/sysusers.d/traktarr.conf" + install -D -m 644 "${srcdir}/traktarr.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/traktarr.conf" +} diff --git a/config.json b/config.json new file mode 100644 index 000000000000..ca42becbcb62 --- /dev/null +++ b/config.json @@ -0,0 +1,64 @@ +{ + "automatic": { + "movies": { + "anticipated": 3, + "boxoffice": 10, + "interval": 20, + "popular": 3, + "trending": 3 + }, + "shows": { + "anticipated": 10, + "interval": 48, + "popular": 1, + "trending": 1 + } + }, + "core": { + "debug": false + }, + "filters": { + "movies": { + "allowed_countries": [], + "allowed_languages": [], + "blacklist_title_keywords": [], + "blacklisted_genres": [], + "blacklisted_max_year": 2019, + "blacklisted_min_runtime": 60, + "blacklisted_min_year": 2000, + "blacklisted_tmdb_ids": [], + "disabled_for": [] + }, + "shows": { + "allowed_countries": [], + "allowed_languages": [], + "blacklisted_genres": [], + "blacklisted_max_year": 2019, + "blacklisted_min_runtime": 15, + "blacklisted_min_year": 2000, + "blacklisted_networks": [], + "blacklisted_tvdb_ids": [], + "disabled_for": [] + } + }, + "notifications": { + "verbose": true + }, + "radarr": { + "api_key": "", + "profile": "HD-1080p", + "root_folder": "/movies/", + "url": "http://localhost:7878/" + }, + "sonarr": { + "api_key": "", + "profile": "HD-1080p", + "root_folder": "/tv/", + "tags": {}, + "url": "http://localhost:8989/" + }, + "trakt": { + "client_id": "", + "client_secret": "" + } +}
\ No newline at end of file diff --git a/traktarr.service b/traktarr.service new file mode 100644 index 000000000000..78098a7c50ac --- /dev/null +++ b/traktarr.service @@ -0,0 +1,17 @@ +# /etc/systemd/system/traktarr.service + +[Unit] +Description=traktarr +After=network-online.target + +[Service] +User=traktarr +Group=traktarr +Type=simple +WorkingDirectory=/usr/lib/traktarr +ExecStart=/usr/bin/python /usr/lib/traktarr/traktarr.py run +Restart=on-failure +RestartSec=10 + +[Install] +WantedBy=default.target diff --git a/traktarr.sysusers b/traktarr.sysusers new file mode 100644 index 000000000000..2be7d0f2f3b8 --- /dev/null +++ b/traktarr.sysusers @@ -0,0 +1 @@ +u traktarr - "traktarr" /usr/lib/traktarr diff --git a/traktarr.tmpfiles b/traktarr.tmpfiles new file mode 100644 index 000000000000..0e946739dd8f --- /dev/null +++ b/traktarr.tmpfiles @@ -0,0 +1,3 @@ +# Override this file with a modified version in /etc/tmpfiles.d/ +Z /usr/lib/traktarr - traktarr traktarr +L /usr/bin/traktarr - - - - /usr/lib/traktarr/traktarr.py |