Sperryfreak01 / RadarrSync

120 stars 46 forks source link

Add AND search #26

Open Bassir opened 6 years ago

Bassir commented 6 years ago

You should modify the payload to add 'addOptions':{'searchForMovie':'true'},

And this should prob be a True/False option under [Radarr4k] or [Radarr] 'sections'.

Sperryfreak01 commented 6 years ago

What exactly does this do? trigger a search on add?

Sperryfreak01 commented 6 years ago

What I currently do is keep track of movies that have been added to the SyncServer and if the number added is greater than 1 I issue the following command to perform a full search.

 if len(searchid):
        payload = {'name': 'MoviesSearch', 'movieIds': searchid}
        syncServer['session'].post('{0}/api/command?apikey={1}'.format(syncServer['url'],
                                                         syncServer['key']
                                                         ),
                     data=json.dumps(payload)
                     )
xontik commented 5 years ago

hi ! when a movie is added in my radarr4k instance, it is not automatically searched, neither with this : 'addOptions':{'searchForMovie':'true'},

You did a great job, I will follow updates