Initial commit

This commit is contained in:
Marcello Franco 2020-07-14 17:05:50 +02:00 committed by JonnyWong16
commit d9eed14b7a
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
3 changed files with 58 additions and 0 deletions

28
snap/snapcraft.yaml Normal file
View file

@ -0,0 +1,28 @@
name: tautulli
version: 'git'
summary: A Python based monitoring and tracking tool for Plex Media Server. # 79 char long summary
description: |
Tautulli is a 3rd party application that you can run alongside your Plex Media Server to monitor activity and track various statistics.
Most importantly, these statistics include what has been watched, who watched it, when and where they watched it, and how it was watched.
The only thing missing is "why they watched it", but who am I to question your 42 plays of Frozen.
All statistics are presented in a nice and clean interface with many tables and graphs, which makes it easy to brag about your server to everyone else.
confinement: strict
grade: stable
base: core18
parts:
tautulli:
plugin: dump
source: .
stage-packages: [python3, python3-setuptools]
override-build: |
snapcraftctl build
sed -i "s|'CHECK_GITHUB': (int, 'General', 1),|'CHECK_GITHUB': (int, 'General', 0),|g" $SNAPCRAFT_PART_INSTALL/plexpy/config.py
sed -i "s|'CHECK_GITHUB_ON_STARTUP': (int, 'General', 1),|'CHECK_GITHUB_ON_STARTUP': (int, 'General', 0),|g" $SNAPCRAFT_PART_INSTALL/plexpy/config.py
sed -i 's|<input type="checkbox" name="check_github" id="check_github" value="1" checked>||g' $SNAPCRAFT_PART_INSTALL/data/interfaces/default/welcome.html
sed -i 's|name="plexpy_auto_update" value="1"|name="plexpy_auto_update" value="0"|g' $SNAPCRAFT_PART_INSTALL/data/interfaces/default/settings.html
apps:
tautulli:
command: python3 $SNAP/Tautulli.py --datadir $SNAP_COMMON/Tautulli --config $SNAP_COMMON/Tautulli/config.ini --quiet --nolaunch
daemon: simple
plugs: [network, network-bind]