golift.io/starr@v1.0.0/starrcmd/radarr.go (about) 1 //nolint:lll 2 package starrcmd 3 4 /* 5 All events accounted for; 1/30/2022 6 https://github.com/Radarr/Radarr/blob/develop/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs 7 */ 8 9 import ( 10 "time" 11 ) 12 13 // RadarrApplicationUpdate is the ApplicationUpdate event. 14 type RadarrApplicationUpdate struct { 15 PreviousVersion string `env:"radarr_update_previousversion"` // 4.0.3.5875 16 NewVersion string `env:"radarr_update_newversion"` // 4.0.4.5909 17 Message string `env:"radarr_update_message"` // Radarr updated from 4.0.3.5875 to 4.0.4.5909 18 } 19 20 // RadarrDownload is the Download event. 21 type RadarrDownload struct { 22 ReleaseDate time.Time `env:"radarr_movie_physical_release_date"` 23 FilePath string `env:"radarr_moviefile_path"` // /movies/Just Go with It (2011)/Just.Go.with.It.2011.Bluray-1080p.mkv 24 IMDbID string `env:"radarr_movie_imdbid"` // tt1564367 25 SceneName string `env:"radarr_moviefile_scenename"` // Just.Go.with.It.2011.1080p.BluRay.x264-OFT 26 FileID int64 `env:"radarr_moviefile_id"` // 3594 27 ReleaseGroup string `env:"radarr_moviefile_releasegroup"` // OFT 28 DownloadID string `env:"radarr_download_id"` // string F3D870942BFDD643488852284E917336170CEA00 29 InCinemas time.Time `env:"radarr_movie_in_cinemas_date"` // 2/10/2011 12:00:00 AM 30 SourceFolder string `env:"radarr_moviefile_sourcefolder"` // /downloads/Seeding/Just.Go.with.It.2011.1080p.BluRay.x264-OFT 31 Year int `env:"radarr_movie_year"` // 2011 32 IsUpgrade bool `env:"radarr_isupgrade"` // False 33 Path string `env:"radarr_movie_path"` // /movies/Just Go with It (2011) 34 RelativePath string `env:"radarr_moviefile_relativepath"` // Just.Go.with.It.2011.Bluray-1080p.mkv 35 DownloadClient string `env:"radarr_download_client"` // Deluge 36 SourcePath string `env:"radarr_moviefile_sourcepath"` // /downloads/Seeding/Just.Go.with.It.2011.1080p.BluRay.x264-OFT/Just.Go.with.It.2011.1080p.BluRay.x264-OFT.mkv 37 TMDbID int64 `env:"radarr_movie_tmdbid"` // 50546 38 ID int64 `env:"radarr_movie_id"` // 924 39 Quality string `env:"radarr_moviefile_quality"` // Bluray-1080p 40 Title string `env:"radarr_movie_title"` // Just Go with It 41 QualityVersion int64 `env:"radarr_moviefile_qualityversion"` // 1 42 DeletedRelativePaths []string `env:"radarr_deletedrelativepaths,|"` 43 DeletedPaths []string `env:"radarr_deletedpaths,|"` 44 } 45 46 // RadarrGrab is the Grab event. 47 type RadarrGrab struct { 48 QualityVersion int64 `env:"radarr_release_qualityversion"` // 1 49 ReleaseDate time.Time `env:"radarr_movie_physical_release_date"` // 1/19/2006 12:00:00 AM 50 ReleaseGroup string `env:"radarr_release_releasegroup"` // SLOT 51 IndexerFlags int64 `env:"radarr_indexerflags"` // 0 52 IMDbID string `env:"radarr_movie_imdbid"` // tt0448172 53 DownloadID string `env:"radarr_download_id"` // E63FAFFAAA0DEE42F0846348A9C0657BC53E7AA5 54 ReleaseTitle string `env:"radarr_release_title"` // 8MM 2 2005 1080p BluRay x264 55 InCinemas time.Time `env:"radarr_movie_in_cinemas_date"` // 11/22/2005 12:00:00 AM 56 Quality string `env:"radarr_release_quality"` // Bluray-1080p 57 Size int64 `env:"radarr_release_size"` // 2158221056 58 Year int `env:"radarr_movie_year"` // 2005 59 DownloadClient string `env:"radarr_download_client"` // Deluge 60 TMDbID int64 `env:"radarr_movie_tmdbid"` // 7295 61 ID int64 `env:"radarr_movie_id"` // 339 62 ReleaseIndexer string `env:"radarr_release_indexer"` // Inexilator (Prowlarr) 63 Title string `env:"radarr_movie_title"` // 8MM 2 64 } 65 66 // RadarrHealthIssue is the HealthIssue event. 67 type RadarrHealthIssue struct { 68 Message string `env:"radarr_health_issue_message"` // Lists unavailable due to failures: List name here 69 IssueType string `env:"radarr_health_issue_type"` // ImportListStatusCheck 70 Wiki string `env:"radarr_health_issue_wiki"` // https://wiki.servarr.com/radarr/system#lists-are-unavailable-due-to-failures 71 Level string `env:"radarr_health_issue_level"` // Warning 72 } 73 74 // RadarrMovieFileDelete is the MovieFileDelete event. 75 type RadarrMovieFileDelete struct { 76 Reason string `env:"radarr_moviefile_deletereason"` // Upgrade 77 FilePath string `env:"radarr_moviefile_path"` // /movies/The French Dispatch (2021)/The.French.Dispatch.2021.Bluray-720p.mkv 78 SceneName string `env:"radarr_moviefile_scenename"` // The.French.Dispatch.2021.720p.BluRay.x264-WoAT 79 IMDbID string `env:"radarr_movie_imdbid"` // tt8847712 80 FileID int64 `env:"radarr_moviefile_id"` // 3531 81 ReleaseGroup string `env:"radarr_moviefile_releasegroup"` // WoAT 82 Year int `env:"radarr_movie_year"` // 2021 83 Path string `env:"radarr_movie_path"` // /movies/The French Dispatch (2021) 84 RelativePath string `env:"radarr_moviefile_relativepath"` // The.French.Dispatch.2021.Bluray-720p.mkv 85 Size int64 `env:"radarr_moviefile_size"` // 3593317970 86 TMDbID string `env:"radarr_movie_tmdbid"` // 542178 87 ID int64 `env:"radarr_movie_id"` // 2173 88 Quality string `env:"radarr_moviefile_quality"` // Bluray-720p 89 Title string `env:"radarr_movie_title"` // The French Dispatch 90 QualityVersion int64 `env:"radarr_moviefile_qualityversion"` // 1 91 } 92 93 // RadarrMovieDelete is the MovieDelete event. 94 type RadarrMovieDelete struct { 95 ID int64 `env:"radarr_movie_id"` // 2173 96 Title string `env:"radarr_movie_title"` // The French Dispatch 97 Year int `env:"radarr_movie_year"` // 2021 98 Path string `env:"radarr_movie_path"` // /movies/The French Dispatch (2021) 99 IMDbID string `env:"radarr_movie_imdbid"` // tt8847712 100 TMDbID int64 `env:"radarr_movie_tmdbid"` // 542178 101 Size int64 `env:"radarr_movie_folder_size"` // 3593317970 102 DeleteFiles string `env:"radarr_movie_deletedfiles"` // XXX: no example. Does this need a split? 103 } 104 105 // RadarrRename is the Rename event. 106 type RadarrRename struct { 107 ID int64 `env:"radarr_movie_id"` // 2173 108 Year int `env:"radarr_movie_year"` // 2021 109 Path string `env:"radarr_movie_path"` // /movies/The French Dispatch (2021) 110 IMDbID string `env:"radarr_movie_imdbid"` // tt8847712 111 TMDbID int64 `env:"radarr_movie_tmdbid"` // 542178 112 InCinemas time.Time `env:"radarr_movie_in_cinemas_date"` // 11/22/2005 12:00:00 AM 113 ReleaseDate time.Time `env:"radarr_movie_physical_release_date"` 114 FileIDs []int64 `env:"radarr_moviefile_ids,,"` 115 RelativePaths []string `env:"radarr_moviefile_relativepaths,|"` 116 Paths []string `env:"radarr_moviefile_paths,|"` 117 PreviousRelativePaths []string `env:"radarr_moviefile_previousrelativepaths,|"` 118 PreviousPaths []string `env:"radarr_moviefile_previouspaths,|"` 119 } 120 121 // RadarrTest has no members. 122 type RadarrTest struct{} 123 124 // GetRadarrHealthIssue returns the HealthIssue event data. 125 func (c *CmdEvent) GetRadarrHealthIssue() (output RadarrHealthIssue, err error) { 126 return output, c.get(EventHealthIssue, &output) 127 } 128 129 // GetRadarrApplicationUpdate returns the ApplicationUpdate event data. 130 func (c *CmdEvent) GetRadarrApplicationUpdate() (output RadarrApplicationUpdate, err error) { 131 return output, c.get(EventApplicationUpdate, &output) 132 } 133 134 // GetRadarrDownload returns the Download event data. 135 func (c *CmdEvent) GetRadarrDownload() (output RadarrDownload, err error) { 136 return output, c.get(EventDownload, &output) 137 } 138 139 // GetRadarrGrab returns the Grab event data. 140 func (c *CmdEvent) GetRadarrGrab() (output RadarrGrab, err error) { 141 return output, c.get(EventGrab, &output) 142 } 143 144 // GetRadarrMovieFileDelete returns the MovieFileDelete event data. 145 func (c *CmdEvent) GetRadarrMovieFileDelete() (output RadarrMovieFileDelete, err error) { 146 return output, c.get(EventMovieFileDelete, &output) 147 } 148 149 // GetRadarrTest returns the Test event data. 150 func (c *CmdEvent) GetRadarrTest() (output RadarrTest, err error) { 151 return output, c.get(EventTest, &output) 152 } 153 154 // GetRadarrMovieDelete returns the MovieDelete event data. 155 func (c *CmdEvent) GetRadarrMovieDelete() (output RadarrMovieDelete, err error) { 156 return output, c.get(EventMovieDelete, &output) 157 } 158 159 // GetRadarrRename returns the Rename event data. 160 func (c *CmdEvent) GetRadarrRename() (output RadarrRename, err error) { 161 return output, c.get(EventRename, &output) 162 }