Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Episode automations #536

Merged
merged 5 commits into from
Jun 8, 2024
Merged

Episode automations #536

merged 5 commits into from
Jun 8, 2024

Conversation

IRHM
Copy link
Member

@IRHM IRHM commented Jun 8, 2024

Changes made

1st part of #380

  • Manually cache SeasonDetails service (so our automation could use the cached data easily).
  • Created watched_hooks.go file, currently holds just the function hookEpisodeStatusChanged, which goes through and looks at what we could automate for the user (called when an episode status is changed).
  • Created various service functions to assist the hook with getting data (getWatchedItemById, getNumberOfWatchedEpisodesInSeason and getWatchedSeason).

IRHM added 5 commits June 7, 2024 15:03
Handle caching manually in the function, so it can be used in other places.
New hookEpisodeStatusChanged method (and others to assist) that performs various checks to see if we should also update the season/shows status.
We weren't ensuring that the whole watched season object was set to hookResponse.WatchedSeason first, so they client wouldn't get the WatchedSeason `id` (so couldn't update the season).
… pointer

Also removed TODO comments and added check to ensure hook response has any keys SeasonsListEpisode
@IRHM IRHM added the enhancement New feature or request label Jun 8, 2024
@IRHM IRHM self-assigned this Jun 8, 2024
@IRHM IRHM merged commit 697a1ec into dev Jun 8, 2024
1 check passed
@IRHM IRHM deleted the update-related-stuff branch June 8, 2024 19:59
truecharts-admin referenced this pull request in truecharts/charts Jun 9, 2024
….0@de6b16f by renovate (#23145)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/sbondco/watcharr](https://togithub.com/sbondCo/Watcharr) |
minor | `v1.39.0` -> `v1.40.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>sbondCo/Watcharr (ghcr.io/sbondco/watcharr)</summary>

###
[`v1.40.0`](https://togithub.com/sbondCo/Watcharr/releases/tag/v1.40.0)

[Compare
Source](https://togithub.com/sbondCo/Watcharr/compare/v1.39.0...v1.40.0)

#### 🧠 New

- Better tasks (tasks rewritten and now reschedulable) by
[@&#8203;IRHM](https://togithub.com/IRHM) in
[https://github.com/sbondCo/Watcharr/pull/526](https://togithub.com/sbondCo/Watcharr/pull/526)

![example](https://togithub.com/sbondCo/Watcharr/assets/37304121/d2f2193f-728f-496b-9896-19e4f1b12a99)
- Episode automations by [@&#8203;IRHM](https://togithub.com/IRHM) in
[https://github.com/sbondCo/Watcharr/pull/536](https://togithub.com/sbondCo/Watcharr/pull/536)

![example](https://togithub.com/sbondCo/Watcharr/assets/37304121/7497e29c-39bf-4c54-bbef-81aa8ed34ea2)
- `AutomateShowStatuses` setting by
[@&#8203;IRHM](https://togithub.com/IRHM) in
[https://github.com/sbondCo/Watcharr/pull/537](https://togithub.com/sbondCo/Watcharr/pull/537)

#### 🏗️ Fixed

- plex: Comment out ViewMode property from structs by
[@&#8203;IRHM](https://togithub.com/IRHM) in
[https://github.com/sbondCo/Watcharr/pull/538](https://togithub.com/sbondCo/Watcharr/pull/538)
- Activity: Fix header font-family
sbondCo/Watcharr@22bdadc
- watched: WatchedStatus: Fix HOLD value
sbondCo/Watcharr@1a3c9e0

#### 🔨 Maintenance

- server: bump golang.org/x/crypto from 0.22.0 to 0.23.0 in /server by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/514](https://togithub.com/sbondCo/Watcharr/pull/514)
- server: bump github.com/gin-contrib/cors from 1.7.1 to 1.7.2 in
/server by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/513](https://togithub.com/sbondCo/Watcharr/pull/513)
- server: bump gorm.io/gorm from 1.25.9 to 1.25.10 in /server by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/505](https://togithub.com/sbondCo/Watcharr/pull/505)
- ui: bump svelte from 4.2.12 to 4.2.15 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/501](https://togithub.com/sbondCo/Watcharr/pull/501)
- ui: bump
[@&#8203;typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin)
from 7.4.0 to 7.8.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/507](https://togithub.com/sbondCo/Watcharr/pull/507)
- ui: bump prettier-plugin-svelte from 3.2.2 to 3.2.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/483](https://togithub.com/sbondCo/Watcharr/pull/483)
- ui: bump
[@&#8203;typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
from 7.6.0 to 7.8.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/506](https://togithub.com/sbondCo/Watcharr/pull/506)
- ui: bump vite from 5.2.8 to 5.2.11 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/518](https://togithub.com/sbondCo/Watcharr/pull/518)
- ui: bump svelte-check from 3.6.9 to 3.7.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/525](https://togithub.com/sbondCo/Watcharr/pull/525)
- ui: bump svelte-preprocess from 5.1.3 to 5.1.4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/519](https://togithub.com/sbondCo/Watcharr/pull/519)
- ui: bump
[@&#8203;vite-pwa/sveltekit](https://togithub.com/vite-pwa/sveltekit)
from 0.3.0 to 0.5.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/512](https://togithub.com/sbondCo/Watcharr/pull/512)
- ui: bump svelte-eslint-parser from 0.33.1 to 0.36.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/520](https://togithub.com/sbondCo/Watcharr/pull/520)
- server: bump github.com/gin-contrib/cache from 1.2.0 to 1.3.0 in
/server by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/522](https://togithub.com/sbondCo/Watcharr/pull/522)
- server: bump github.com/gin-gonic/gin from 1.9.1 to 1.10.0 in /server
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/521](https://togithub.com/sbondCo/Watcharr/pull/521)
- ui: bump svelte from 4.2.15 to 4.2.17 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/527](https://togithub.com/sbondCo/Watcharr/pull/527)
- ui: bump axios from 1.6.8 to 1.7.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/533](https://togithub.com/sbondCo/Watcharr/pull/533)
- ui: bump
[@&#8203;typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin)
from 7.8.0 to 7.12.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/534](https://togithub.com/sbondCo/Watcharr/pull/534)
- ui: bump [@&#8203;sveltejs/kit](https://togithub.com/sveltejs/kit)
from 2.5.3 to 2.5.10 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/530](https://togithub.com/sbondCo/Watcharr/pull/530)
- ui: bump eslint-plugin-svelte from 2.35.1 to 2.39.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/sbondCo/Watcharr/pull/529](https://togithub.com/sbondCo/Watcharr/pull/529)

#### 🆘 Getting Help

If you need help, encounter an issue or find a bug please [create an
issue](https://togithub.com/sbondCo/Watcharr/issues/new/choose) or [join
our space on Matrix](https://matrix.to/#/#watcharr:matrix.org) for
support. Always happy to help!

**Package**:
https://github.com/orgs/sbondCo/packages/container/watcharr/227554693?tag=v1.40.0
or [on docker
hub](https://hub.docker.com/layers/sbondco/watcharr/v1.40.0/images/sha256-de6b16f6cf7a5aa5a0e953c4fc1cc506e5b2a74a5c51292edf4c067b690152d1?context=explore)
**Full Changelog**:
sbondCo/Watcharr@v1.39.0...v1.40.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTkuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM5OS44IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImF1dG9tZXJnZSIsInVwZGF0ZS9kb2NrZXIvZ2VuZXJhbC9ub24tbWFqb3IiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant