avraham / hass_radarr_sonarr_search_by_voice

Add movies to radarr by voice
GNU General Public License v3.0
46 stars 8 forks source link

[Improvement on code] Search automatically when movie or show is added #19

Open CyberPoison opened 3 years ago

CyberPoison commented 3 years ago

Hi, please add the following syntax and do some tests it add automatically the movie as search Here for radarr

data['addOptions'] = {"searchForMovie":True}

and for the sonarr is this

data['addOptions'] = {"monitor":"all","searchForMissingEpisodes":True}

Here for sonarr

ndbroadbent commented 1 year ago

Thanks @CyberPoison, I was trying to figure out how to do this so that it automatically downloads the movie! Would be a great change to add to the script. I saw it already works for sonarr though, unless monitor == "future":

        if self.monitor == "missing":
            addOptions['ignoreEpisodesWithFiles'] = True
            addOptions['ignoreEpisodesWithoutFiles'] = False
            addOptions['searchForMissingEpisodes'] = True
CyberPoison commented 1 year ago

Thanks @CyberPoison, I was trying to figure out how to do this so that it automatically downloads the movie! Would be a great change to add to the script. I saw it already works for sonarr though, unless monitor == "future":

        if self.monitor == "missing":
            addOptions['ignoreEpisodesWithFiles'] = True
            addOptions['ignoreEpisodesWithoutFiles'] = False
            addOptions['searchForMissingEpisodes'] = True

@ndbroadbent Thanks , feel free to open a pull request. đź‘Ť I will test when i have time your code ;) Perhaps my code is in french version from france, maybe need to adequate it will your pull request.

bots444 commented 1 year ago

Hi guys. I am trying to add this into my home assistant and am getting an error when I try to launch the script from the terminal. It says "no connection adapters were found for 'ip address:7878/api/v3/movie/lookup?term=Artemis%20Fowl'

avraham commented 1 year ago

Hi, At this moment this project is not working because IFTTT does not support the text ingredient for Google Assistant anymore , and I haven't found an alternative.

I need to update the Readme file to reflect the current situation of the project.

On Thu, Mar 23, 2023, 10:31 AM bots444 @.***> wrote:

Hi guys. I am trying to add this into my home assistant and am getting an error when I try to launch the script from the terminal. It says "no connection adapters were found for 'ip address:7878/api/v3/movie/lookup?term=Artemis%20Fowl'

— Reply to this email directly, view it on GitHub https://github.com/avraham/hass_radarr_sonarr_search_by_voice/issues/19#issuecomment-1481602121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQAXB6AXK6XD6WKDMP6CHDW5SCF3ANCNFSM43TROFIQ . You are receiving this because you are subscribed to this thread.Message ID: <avraham/hass_radarr_sonarr_search_by_voice/issues/19/1481602121@ github.com>

jtrinceri commented 1 year ago

Hi Guys,

This script seems to work great when I call it from the command line. I was wondering how I can use this to monitor an inbox in home assistant with the a subject, for example "download movie goodfellas" or "download show the last of us".

Thanks Joe

avraham commented 1 year ago

I think it should be possible, but it kind of defeats the purpose of the project of requesting media by voice. If you are interested in a solution like that, it might be more practical to use the discord or telegram integration of Home Assistant, and call the script when a message comes via those integrations

There are other projects for adding media to radarr or sonarr that provide a lot of more features and that are well maintained, such as Overseerr or Ombi.

CyberPoison commented 1 year ago

Hi, At this moment this project is not working because IFTTT does not support the text ingredient for Google Assistant anymore , and I haven't found an alternative.

I need to update the Readme file to reflect the current situation of the project.

On Thu, Mar 23, 2023, 10:31 AM bots444 @.***> wrote:

Hi guys. I am trying to add this into my home assistant and am getting an error when I try to launch the script from the terminal. It says "no connection adapters were found for 'ip address:7878/api/v3/movie/lookup?term=Artemis%20Fowl'

— Reply to this email directly, view it on GitHub https://github.com/avraham/hass_radarr_sonarr_search_by_voice/issues/19#issuecomment-1481602121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQAXB6AXK6XD6WKDMP6CHDW5SCF3ANCNFSM43TROFIQ . You are receiving this because you are subscribed to this thread.Message ID: <avraham/hass_radarr_sonarr_search_by_voice/issues/19/1481602121@ github.com>

I also checked in other services like Zapier and etc.. All of them removed text ingredient, so now only way should reversing the google home app to allow it text ingrédients again and send webhooks over the network and them to the Home Assistant, but pretty sure then such hard work is wasted time, there are plenty of people who use alexa now instead of google assistants, but can be a interesting project (Make a self hosted ifttt) wish uses google home to grab text ingredients i guess there was a budy trying making it, i will try to talk with him he is from canada so there is time lag between France and canada but i will try my best 👍