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

[FEATURE] - Lidarr - Script activity duration/time #238

Open
joelang1699 opened this issue Apr 14, 2024 · 4 comments
Open

[FEATURE] - Lidarr - Script activity duration/time #238

joelang1699 opened this issue Apr 14, 2024 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed lidarr

Comments

@joelang1699
Copy link

joelang1699 commented Apr 14, 2024

Describe the solution you'd like
Set script activity hours, eg run between hours of 0900-2300. This way my drives can spin down during night time for power saving.

Describe alternatives you've considered
Script shutting down Lidarr makes it unavailable for requests which I want to avoid.

@joelang1699 joelang1699 added the enhancement New feature or request label Apr 14, 2024
@RandomNinjaAtk
Copy link
Owner

You could accomplish this via cron, just disable autorun and create a cron job to run them at a scheduled timeframe.

@joelang1699
Copy link
Author

I'm unsure how I can set a cron job inside of the container?

@RandomNinjaAtk
Copy link
Owner

RandomNinjaAtk commented Apr 14, 2024

Actually you could not accomplish it via cron because the script will just sleep when not enabled. However, if you disable the video script, your drives should be able to sleep.... Because the video script is the only one messing with files in a final location...

I will gladly review a PR for implementation that can do what your looking for, but I don't think I have the cycles to work on this when it's not something I'd use.

@RandomNinjaAtk RandomNinjaAtk added help wanted Extra attention is needed lidarr labels Apr 14, 2024
@jaycedk
Copy link

jaycedk commented Apr 16, 2024

Just had a idea.
The script runs on start, right ?
You can set the timeout ?
Set script interval to 24h.
Restart your docker at 0900 , do updates at 0900.
And its should only run after 0900, unless it takes over 14h to complete.
Which it within 0900 - 2300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed lidarr
Projects
None yet
Development

No branches or pull requests

3 participants