Skip to content

Commit

Permalink
add rating and used. more aur fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Dec 20, 2021
1 parent bc6cd9f commit 81ed8a1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions pkg/notifiarr/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ import (

// plexIncomingWebhook is the incoming webhook from a Plex Media Server.
type plexIncomingWebhook struct {
Event string `json:"event"`
User bool `json:"user"`
Owner bool `json:"owner"`
Event string `json:"event"`
User bool `json:"user"`
Owner bool `json:"owner"`
Rating float64 `json:"rating"`
Account struct {
ID int `json:"id"`
Thumb string `json:"thumb"`
Expand Down
1 change: 1 addition & 0 deletions pkg/snapshot/diskusage.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func (s *Snapshot) getDisksUsage(ctx context.Context, run bool, allDrives bool)
Device: partitions[i].Mountpoint,
Total: u.Total,
Free: u.Free,
Used: u.Used,
}
}

Expand Down
1 change: 1 addition & 0 deletions pkg/snapshot/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ type Partition struct {
Device string `json:"name"`
Total uint64 `json:"total"`
Free uint64 `json:"free"`
Used uint64 `json:"used"`
}

// Validate makes sure the snapshot configuration is valid.
Expand Down
4 changes: 2 additions & 2 deletions scripts/aur-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ git config --global user.email "${BINARY}@auto.releaser"
git config --global user.name "${BINARY}-auto-releaser"

rm -rf aur_release_repo
git clone [email protected]:${AUREPO}.git aur_release_repo
git clone [email protected]:golift/aur.git aur_release_repo

mkdir -p "aur_release_repo/${BINARY}"
cp aur/* "aur_release_repo/${BINARY}/"
cp aur/{*,.??*} "aur_release_repo/${BINARY}/"
pushd aur_release_repo
git add ${BINARY}
git commit -m "Update ${BINARY} on Release: v${VERSION}-${ITERATION}"
Expand Down

0 comments on commit 81ed8a1

Please sign in to comment.