Skip to content

Commit

Permalink
tautulli
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187 committed Oct 1, 2024
1 parent 9fcbf73 commit 15c8e1f
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 37 deletions.
10 changes: 2 additions & 8 deletions automatic/tautulli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

[Screenshots](http://tautulli.com/images/screenshots/activity.png)

##WHAT IS TAUTULLI?
## WHAT IS TAUTULLI?

verb | tau • tul • li | \ ˈtau̇-tü-lē \ | To watch or monitor

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.

###FEATURES:
### FEATURES:
* Monitoring - Monitor the current activity on your Plex Media Server.

* Statistics - View statistics about your Plex library.
Expand All @@ -37,12 +37,6 @@ Tautulli is a 3rd party application that you can run alongside your Plex Media S

Related Programs: [Plex Media Server](https://chocolatey.org/packages/plexmediaserver) | [Tautulli Android App](https://play.google.com/store/apps/details?id=com.williamcomartin.plexpyremote)

**[PACKAGE NOTES](https://github.com/bcurran3/ChocolateyPackages/blob/master/tautulli/readme.md)**

***
**Click here to [Patreon-ize](https://www.patreon.com/bcurran3) the package maintainer.**
***

#### [choco://tautulli](choco://tautulli)
To use choco:// protocol URLs, install [(unofficial) choco:// Protocol support ](https://chocolatey.org/packages/choco-protocol-support)

Expand Down
File renamed without changes.
16 changes: 16 additions & 0 deletions automatic/tautulli/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

The installer have been downloaded from the GitHub mirror and can be verified like this:

1. Download the following installer(s):

x86: https://www.snort.org/downloads/snort/Snort_2_9_20_Installer.x64.exe

2. You can use one of the following methods to obtain the checksum(s):
- Use powershell function 'Get-Filehash'
- Use chocolatey utility 'checksum.exe'

checksum: 2C0268CD3ACE4C1974DEDC2BBD2D26302F6847F13416A4F55930C639EB87619DCD2801A6679DFF6C5614F0492B2ECC992B0CEB6B0C8642FF3FA99F9B274A716E
checksumtype: SHA512
4 changes: 0 additions & 4 deletions automatic/tautulli/tautulli.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ Related Programs: [Plex Media Server](https://chocolatey.org/packages/plexmedias
<packageSourceUrl>https://github.com/bcurran3/ChocolateyPackages/tree/master/tautulli</packageSourceUrl>
<docsUrl>https://github.com/Tautulli/Tautulli-Wiki/wiki</docsUrl>
<mailingListUrl>https://forums.plex.tv/discussion/307821/tautulli-monitor-your-plex-media-server</mailingListUrl>
<dependencies>
<dependency id="python2" version="2.7" />
<dependency id="chocolatey-misc-helpers.extension" version="0.0.2" />
</dependencies>
</metadata>
<files>
<file src="tools\**" target="tools" />
Expand Down
8 changes: 0 additions & 8 deletions automatic/tautulli/tools/VERIFICATION.txt

This file was deleted.

23 changes: 12 additions & 11 deletions automatic/tautulli/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
$ErrorActionPreference = 'Stop'
$packageName = 'tautulli'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$file = "$toolsDir\Tautulli-"+$ENV:ChocolateyPackageVersion+".zip"
$extractDir = "Tautulli-"+$ENV:ChocolateyPackageVersion
$shortcutName = 'Tautulli.lnk'
$packageName = 'tautulli'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$file = "$toolsDir\Tautulli-windows-v"+$ENV:ChocolateyPackageVersion+"-x64.exe"

Get-ChocolateyUnzip -FileFullPath $file -Destination $toolsDir
$packageArgs = @{
packageName = $packageName
fileType = 'EXE'
file = $file
silentArgs = '/S'
softwareName = "tautulli"
}

Install-ChocolateyShortcut -shortcutFilePath "$env:Public\Desktop\$shortcutName" -targetPath "$toolsDir\$extractDir\Tautulli.py" -WorkingDirectory "$toolsDir\$extractDir" -IconLocation "$toolsDir\$extractDir\data\interfaces\default\images\favicon\favicon.ico"
Install-ChocolateyShortcut -shortcutFilePath "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\$shortcutName" -targetPath "$toolsDir\$extractDir\Tautulli.py" -WorkingDirectory "$toolsDir\$extractDir" -IconLocation "$toolsDir\$extractDir\data\interfaces\default\images\favicon\favicon.ico"

$WhoAmI=whoami
icacls.exe $toolsDir /grant $WhoAmI":"'(OI)(CI)'F /T | Out-Null
Install-ChocolateyInstallPackage @packageArgs
Remove-Item $file -Force -ErrorAction SilentlyContinue | Out-Null
6 changes: 0 additions & 6 deletions automatic/tautulli/tools/chocolateyuninstall.ps1

This file was deleted.

43 changes: 43 additions & 0 deletions automatic/tautulli/update.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
$ErrorActionPreference = 'Stop'
import-module au

$releases = 'https://api.github.com/repos/Tautulli/Tautulli/releases/latest'
$Owner = $releases.Split('/') | Select-Object -Last 1 -Skip 3
$repo = $releases.Split('/') | Select-Object -Last 1 -Skip 2

function global:au_SearchReplace {
@{
"legal\VERIFICATION.txt" = @{
"(?i)(x86:).*" = "`${1} $($Latest.URL32)"
"(?i)(checksum:).*" = "`${1} $($Latest.Checksum32)"
"(?i)(checksumtype:).*" = "`${1} $($Latest.ChecksumType32)"
}
}
}

function global:au_BeforeUpdate {
. ..\..\scripts\Get-FileVersion.ps1
$FileVersion = Get-FileVersion $Latest.URL32 -keep
Move-Item -Path $FileVersion.TempFile -Destination "tool\$($FileVersion.FileName)"
$Latest.Checksum32 = $FileVersion.Checksum
$Latest.ChecksumType32 = $FileVersion.checksumType
}

function global:au_AfterUpdate($Package) {
Invoke-VirusTotalScan $Package
}

function global:au_GetLatest {
$tags = Get-GitHubRelease -OwnerName $Owner -RepositoryName $repo -Latest
$url = $tags.assets.browser_download_url | Where-Object {$_ -match ".exe$"}
Update-Metadata -key "releaseNotes" -value $tags.html_url
$version = $tags.tag_name.Replace('v','')
if($tags.prerelease -match "true") {
$date = $tags.published_at.ToString("yyyyMMdd")
$version = "$version-pre$($date)"
}

return @{ URL32 = $url; Version = $version }
}

update-package -ChecksumFor none
Binary file added icons/tautulli.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 15c8e1f

Please sign in to comment.