GithubHelp home page GithubHelp logo

just-a-bunch-of-starr-scripts's Introduction

Hi there 👋

  • 🔭 I’m currently working on ... Creating random Powershell scripts
  • 🌱 I’m currently learning ... Powershell, SCCM, Intune
  • 📫 How to reach me: ... [email protected]
  • ⚡ Fun fact: ... I've delivered babies

GitHub followers

AngryCuban's GitHub Stats

just-a-bunch-of-starr-scripts's People

Contributors

angrycuban13 avatar bakerboy448 avatar bobokun avatar owine avatar pearsonflyer avatar supermariobruh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

just-a-bunch-of-starr-scripts's Issues

[Feat][upgradinatorr] Option to reset tags

As discussed on discord.

After all movies have been searched for the script doesn't currently reset the tags to start another search.

Feature Request:
add -reset $true option that once upgradinatorr as tagged all tags to reset all tags

Tag required?

I don't want to apply tags. Why would you want that? How can I use this without tags?

image

radarr4K block not recognized and tagName not tagged in radarr

So I started using your script and I'm running into issues:

  1. When I put my 4K radarr instance in the [Radarr4K] block of the conf file, it is not being recognized and the script errors out with the URL not being in the correct format. When I transfer the same details to the [Radarr] block, your script recognizes the information and successfully triggers the search in radarr.
  2. After the search for 10 items is done, I'm expecting it to tag those movies with the word upgraded but I cannot see any tags on them in radarr. FWIW, I don't really use tags in radarr. Can that maybe the cause of the issue, because my tags list is empty?

[bug][upgradinatorr] Cannot bind argument to parameter 'Media' because it is null.

Seems like there's a bug when running the script with the unattended setting.

Here's my config:

[General]
DiscordWebhook=

[Radarr]
ApiKey=obfuscated
Count=5
IgnoreTag=autosearched
Monitored=true
MovieStatus=released
QualityProfileName=Sels High Quality
TagName=autosearched
Unattended=true
Url=http://127.0.0.1:7878

;[Radarr4K]
;ApiKey=
;Count=10
;IgnoreTag=
;Monitored=true
;MovieStatus=released
;QualityProfileName=
;TagName=
;Unattended=false
;Url=

[Sonarr]
ApiKey=obfuscated
Count=1
IgnoreTag=autosearched
Monitored=true
QualityProfileName=Sels High Quality
SeriesStatus=continuing
TagName=autosearched
Unattended=true
Url=http://127.0.0.1:8989

;[Sonarr4K]
;ApiKey=
;Count=5
;IgnoreTag=
;Monitored=true
;QualityProfileName=
;SeriesStatus=continuing
;TagName=
;Unattended=false
;Url=

;[Lidarr]
;ApiKey=
;ArtistStatus=continuing
;Count=5
;IgnoreTag=
;Monitored=true
;QualityProfileName=
;TagName=
;Unattended=false
;Url=

Here's the output of the docker container:

Configuration for Radarr is valid
Starting Radarr search
Config - Radarr - URL: http://127.0.0.1:7878
Config - Radarr - Monitored: True
Config - Radarr - Status: released
Config - Radarr - Unattended: True
Config - Radarr - Limit: 5
Config - Radarr - Tag Name: autosearched
Config - Radarr - Tag ID: 30
Config - Radarr - Ignore Tag: autosearched
Config - Radarr - Ignore Tag ID: 30
Config - Radarr - Quality Profile Name: Sels High Quality
Config - Radarr - Quality Profile ID: 7
Searching for 5 movies from Radarr
Searched started for 5 items in Radarr
Adding tag name "autosearched" to 5 movies in Radarr
Tag added to 5 items in Radarr
Upgradinatorr kicked off search for: 
Configuration for Sonarr is valid
Starting Sonarr search
Config - Sonarr - URL: http://127.0.0.1:8989
Config - Sonarr - Monitored: True
Config - Sonarr - Status: continuing
Config - Sonarr - Unattended: True
Config - Sonarr - Limit: 1
Config - Sonarr - Tag Name: autosearched
Config - Sonarr - Tag ID: 3
Config - Sonarr - Ignore Tag: autosearched
Config - Sonarr - Ignore Tag ID: 3
Config - Sonarr - Quality Profile Name: Sels High Quality
Config - Sonarr - Quality Profile ID: 7
Running unattended and no series left to search. Removing "Tag ID: 3" from all series and starting search again
Remove-TagFromMedia: /scripts/upgradinatorr.ps1:1610
Line |
1610 |  … ApiKey $apiKey -ApiVersion $apiVersion -Media $filteredSeries -TagId  …
     |                                                  ~~~~~~~~~~~~~~~
     | Cannot bind argument to parameter 'Media' because it is null.
Add-TagToMedia: /scripts/upgradinatorr.ps1:1626
Line |
Upgradinatorr kicked off search for: 
1626 |  … -ApiKey $apiKey -ApiVersion $apiVersion -Media $mediaToSearch -TagId  …
     |                                                   ~~~~~~~~~~~~~~
     | Cannot bind argument to parameter 'Media' because it is null.   

[Bug][upgradinatorr] Manual Search Early Termination

When running a manual search, such as "upgradinatorr.ps1 -apps radarr,radarr4k,sonarr,sonarr4k", if any app exhausts items to search for, the script will exit instead of continuing to the next app.

Given the above command, if radarr4k runs of out of movies to search, the script will terminate and sonarr and sonarr4k will not have upgrades kicked off.

This issue affects sonarr, radarr, and lidarr instances. The bug occurs here - https://github.com/angrycuban13/Just-A-Bunch-Of-Starr-Scripts/blob/main/Upgradinatorr/upgradinatorr.ps1#L571.

[Feature Request] Sonarr Mark All Items As Monitored

I have my library but (long story not relevant) lost all my files. I'd "helpfully" marked some series as unmonitored as they had reached ultimate state and I thought this might reduce the load on Sonarr. Now I have thousands of missing items but Sonarr thinks the unmonitored ones aren't to be looked for. I don't want to mark "Specials" as monitored, just put every item back to the default Monitored status

So its either scan every single TV show looking at status and manually changing to "monitoring" OR... some clever script ;-)

Pretty please @angrycuban13 (PS I loved Cuba when I visited in 2018)

[Feat][Upgradinatorr]Discord Webhook Enhancements

In unattended mode, the Discord Webhook doesn't do anything since it technically never starts/ends.....it just loops.

Regardless of that though, Each time Upgradinatorr runs, can the discord webhook send the list of Shows/Movies it triggered a search on. Just would be a nice sorta summary of what just got triggered to search.

[Feat][upgradinatorr] Ignore tags

It would be useful (especially for sonarr integration) to be able to set tags to ignore either via ID or name.

Ex.
Anime for example is for me at least done by hand, (for older anime especially), or kids shows are done by hand as well (what a nightmare most of them are).

Running in docker: Cannot convert the "System.Object[]"

Add-TagToMedia: /scripts/Upgradinatorr/upgradinatorr.ps1:1683 Line | 1683 | … y -ApiVersion $apiVersion -Media $mediaToSearch -TagId $tagId -Url $u … | ~~~~~~ | Cannot process argument transformation on parameter 'TagId'. Cannot | convert the "System.Object[]" value of type "System.Object[]" to type | "System.Int64".

Running this script in docker, debian linux. I get this error message. It still seems to kick of a search of tv shows and movies, but there seems to be an error with setting the tags

[BUG] Import functions

Hi!
I was testing this on unraid and it wasn't working.

# Import functions
Import-Module $PSScriptRoot\Upgradinatorr.psm1 -Force

When cloning the repo, the file has a lower case and it was causing me errors. Capitalizing the first letter has fixed it.

Unattended not working all the sudden

Hello. I’ve been using this script for a few weeks and everything was going well. Until today I’m getting the message “Running unattended and no series left to search. Removing tag and starting again…” However, it does not remove the tag and start over anymore (unattended). Instead it just says no series left to search, is the ignore tag applied to all. I have 18 series that are eligible. If I manually remove the tag and manually run the script at that point is goes through them fine, it’s just attended at this point. I do have unattended=true set. Please help!

bad url

Not sure if you provide support for this script...

I can get the script to work on a Windows machine, but not on a Linux machine with PowerShell docker.

Running this command
sudo docker run --rm -it -v "/volume1/docker/upgradinatorr:/upgradinatorr" mcr.microsoft.com/powershell:latest pwsh /upgradinatorr/Upgradinatorr/upgradinatorr.ps1 -apps radarr-4k,radarr,sonarr -verbose

Exception: Your URL for Radarr-4k,Radarr,Sonarr is not formatted correctly, it should start with http(s):// and not end in /

this is my config
[General]
discordWebhook=https://discordapp.com/api/webhooks/[redacted]

[Radarr-4k]
radarrApiKey=[redacted]
radarrCount=0
radarrMonitored=true
radarrMovieStatus=released
radarrTagName=upgradinatorr
radarrUnattended=false
radarrUrl=http://192.168.1.100:17878

[Radarr]
radarrApiKey=[redacted]
radarrCount=1
radarrMonitored=true
radarrMovieStatus=released
radarrTagName=upgradinatorr
radarrUnattended=false
radarrUrl=http://192.168.1.100:7878

[Sonarr]
sonarrApiKey=[redacted]
sonarrCount=0
sonarrMonitored=true
sonarrSeriesStatus=
sonarrTagName=upgradinatorr
sonarrUnattended=false
sonarrUrl=http://192.168.1.100:8989

radarrUnattended=true

radarrUnattended=true is trowing the following error:

VERBOSE: GET with 0-byte payload
VERBOSE: received -byte response of content type application/json
VERBOSE: Content encoding: utf-8
VERBOSE: Connectivity to Radarr confirmed
VERBOSE: PUT with 74-byte payload
VERBOSE: received 0-byte response of content type 
Invoke-RestMethod: Response status code does not indicate success: 405 (Method Not Allowed).```

`sonarrUnattended=true` = working

[Feat][upgradinatorr] ignore specified custom formats

It'd be nice if somehow we could ignore certain custom formats.
As an example, I've been seeing quite a few movies redownload just because it has that extra point for "freeleech" (as per trash's custom format weights). I'd love to be able to tell the script to ignore that since there's no need to redownload it.
I could just delete that custom format and not update it, but I kind of like to have it for manual downloading.

Thanks!

P.S. I posted this previously in another feature request, but thought this is a simpler way for you to handle requests and not have to dive into threads.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.