|
71 | 71 | warnings = pluginResolution.resolutionWarnings; |
72 | 72 |
|
73 | 73 | nixflix.jellyfin = { |
74 | | - libraries = mkMerge [ |
75 | | - (mkIf (nixflix.sonarr.enable or false) { |
76 | | - Shows = { |
77 | | - collectionType = "tvshows"; |
78 | | - paths = nixflix.sonarr.mediaDirs; |
79 | | - |
80 | | - typeOptions = [ |
81 | | - { |
82 | | - type = "Series"; |
83 | | - imageFetchers = [ |
84 | | - "TheMovieDb" |
85 | | - ]; |
86 | | - imageFetcherOrder = [ |
87 | | - "TheMovieDb" |
88 | | - ]; |
89 | | - metadataFetchers = [ |
90 | | - "TheMovieDb" |
91 | | - "The Open Movie Database" |
92 | | - ]; |
93 | | - metadataFetcherOrder = [ |
94 | | - "TheMovieDb" |
95 | | - "The Open Movie Database" |
96 | | - ]; |
97 | | - } |
98 | | - { |
99 | | - type = "Season"; |
100 | | - imageFetchers = [ |
101 | | - "TheMovieDb" |
102 | | - ]; |
103 | | - imageFetcherOrder = [ |
104 | | - "TheMovieDb" |
105 | | - ]; |
106 | | - metadataFetchers = [ |
107 | | - "TheMovieDb" |
108 | | - ]; |
109 | | - metadataFetcherOrder = [ |
110 | | - "TheMovieDb" |
111 | | - ]; |
112 | | - } |
113 | | - { |
114 | | - type = "Episode"; |
115 | | - imageFetchers = [ |
116 | | - "TheMovieDb" |
117 | | - "The Open Movie Database" |
118 | | - "Embedded Image Extractor" |
119 | | - "Screen Grabber" |
120 | | - ]; |
121 | | - imageFetcherOrder = [ |
122 | | - "TheMovieDb" |
123 | | - "The Open Movie Database" |
124 | | - "Embedded Image Extractor" |
125 | | - "Screen Grabber" |
126 | | - ]; |
127 | | - metadataFetchers = [ |
128 | | - "TheMovieDb" |
129 | | - "The Open Movie Database" |
130 | | - ]; |
131 | | - metadataFetcherOrder = [ |
132 | | - "TheMovieDb" |
133 | | - "The Open Movie Database" |
134 | | - ]; |
135 | | - } |
136 | | - ]; |
137 | | - }; |
138 | | - }) |
139 | | - (mkIf (nixflix.sonarr-anime.enable or false) { |
140 | | - Anime = { |
141 | | - collectionType = "tvshows"; |
142 | | - paths = nixflix.sonarr-anime.mediaDirs; |
143 | | - |
144 | | - typeOptions = [ |
145 | | - { |
146 | | - type = "Series"; |
147 | | - imageFetchers = [ |
148 | | - "AniDB" |
149 | | - "AniSearch" |
150 | | - "TheMovieDb" |
151 | | - ]; |
152 | | - imageFetcherOrder = [ |
153 | | - "AniDB" |
154 | | - "AniSearch" |
155 | | - "TheMovieDb" |
156 | | - ]; |
157 | | - metadataFetchers = [ |
158 | | - "AniDB" |
159 | | - "AniSearch" |
160 | | - "TheMovieDb" |
161 | | - "The Open Movie Database" |
162 | | - ]; |
163 | | - metadataFetcherOrder = [ |
164 | | - "AniDB" |
165 | | - "AniSearch" |
166 | | - "TheMovieDb" |
167 | | - "The Open Movie Database" |
168 | | - ]; |
169 | | - } |
170 | | - { |
171 | | - type = "Season"; |
172 | | - imageFetchers = [ |
173 | | - "AniDB" |
174 | | - "AniSearch" |
175 | | - "TheMovieDb" |
176 | | - ]; |
177 | | - imageFetcherOrder = [ |
178 | | - "AniDB" |
179 | | - "AniSearch" |
180 | | - "TheMovieDb" |
181 | | - ]; |
182 | | - metadataFetchers = [ |
183 | | - "AniDB" |
184 | | - "TheMovieDb" |
185 | | - ]; |
186 | | - metadataFetcherOrder = [ |
187 | | - "AniDB" |
188 | | - "TheMovieDb" |
189 | | - ]; |
190 | | - } |
191 | | - { |
192 | | - type = "Episode"; |
193 | | - imageFetchers = [ |
194 | | - "TheMovieDb" |
195 | | - "The Open Movie Database" |
196 | | - "Embedded Image Extractor" |
197 | | - "Screen Grabber" |
198 | | - ]; |
199 | | - imageFetcherOrder = [ |
200 | | - "TheMovieDb" |
201 | | - "The Open Movie Database" |
202 | | - "Embedded Image Extractor" |
203 | | - "Screen Grabber" |
204 | | - ]; |
205 | | - metadataFetchers = [ |
206 | | - "AniDB" |
207 | | - "TheMovieDb" |
208 | | - "The Open Movie Database" |
209 | | - ]; |
210 | | - metadataFetcherOrder = [ |
211 | | - "AniDB" |
212 | | - "TheMovieDb" |
213 | | - "The Open Movie Database" |
214 | | - ]; |
215 | | - } |
216 | | - ]; |
217 | | - }; |
218 | | - }) |
219 | | - (mkIf (nixflix.radarr.enable or false) { |
220 | | - Movies = { |
221 | | - collectionType = "movies"; |
222 | | - paths = nixflix.radarr.mediaDirs; |
223 | | - |
224 | | - typeOptions = [ |
225 | | - { |
226 | | - type = "Movies"; |
227 | | - imageFetchers = [ |
228 | | - "TheMovieDb" |
229 | | - "The Open Movie Database" |
230 | | - "Embedded Image Extractor" |
231 | | - "Screen Grabber" |
232 | | - ]; |
233 | | - imageFetcherOrder = [ |
234 | | - "TheMovieDb" |
235 | | - "The Open Movie Database" |
236 | | - "Embedded Image Extractor" |
237 | | - "Screen Grabber" |
238 | | - ]; |
239 | | - metadataFetchers = [ |
240 | | - "TheMovieDb" |
241 | | - "The Open Movie Database" |
242 | | - ]; |
243 | | - metadataFetcherOrder = [ |
244 | | - "TheMovieDb" |
245 | | - "The Open Movie Database" |
246 | | - ]; |
247 | | - } |
248 | | - ]; |
249 | | - }; |
250 | | - }) |
251 | | - (mkIf (nixflix.lidarr.enable or false) { |
252 | | - Music = { |
253 | | - collectionType = "music"; |
254 | | - paths = nixflix.lidarr.mediaDirs; |
255 | | - }; |
256 | | - }) |
257 | | - ]; |
258 | | - |
259 | 74 | plugins.AniDB = mkIf config.nixflix.sonarr-anime.enable { |
260 | 75 | package = mkDefault ( |
261 | 76 | jellyfinPlugins.fromRepo { |
|
0 commit comments