music-assistant-server

13.4 KBAMBR
test_parsers.ambr
13.4 KB511 lines • plaintext
1# serializer version: 1
2# name: test_parse_album[album]
3  dict({
4    'album_type': 'album',
5    'artists': list([
6      dict({
7        'date_added': None,
8        'external_ids': list([
9        ]),
10        'favorite': False,
11        'is_playable': True,
12        'item_id': '12345',
13        'media_type': 'artist',
14        'metadata': dict({
15          'chapters': None,
16          'copyright': None,
17          'description': None,
18          'explicit': None,
19          'genres': None,
20          'grouping': None,
21          'images': list([
22            dict({
23              'path': 'https://resources.tidal.com/images/1234/5678/90ab/cdef/750x750.jpg',
24              'provider': 'tidal_instance',
25              'remotely_accessible': True,
26              'type': 'thumb',
27            }),
28          ]),
29          'label': None,
30          'languages': None,
31          'last_refresh': None,
32          'links': None,
33          'lrc_lyrics': None,
34          'lyrics': None,
35          'mood': None,
36          'performers': None,
37          'popularity': None,
38          'preview': None,
39          'release_date': None,
40          'review': None,
41          'style': None,
42        }),
43        'name': 'Test Artist',
44        'position': None,
45        'provider': 'tidal_instance',
46        'provider_mappings': list([
47          dict({
48            'audio_format': dict({
49              'bit_depth': 16,
50              'bit_rate': 0,
51              'channels': 2,
52              'codec_type': '?',
53              'content_type': '?',
54              'output_format_str': '?',
55              'sample_rate': 44100,
56            }),
57            'available': True,
58            'details': None,
59            'in_library': None,
60            'is_unique': None,
61            'item_id': '12345',
62            'provider_domain': 'tidal',
63            'provider_instance': 'tidal_instance',
64            'url': 'https://tidal.com/artist/12345',
65          }),
66        ]),
67        'sort_name': 'test artist',
68        'translation_key': None,
69        'uri': 'tidal_instance://artist/12345',
70        'version': '',
71      }),
72    ]),
73    'date_added': '2024-06-10T12:00:00+00:00',
74    'external_ids': list([
75      list([
76        'barcode',
77        '123456789012',
78      ]),
79    ]),
80    'favorite': False,
81    'is_playable': True,
82    'item_id': '67890',
83    'media_type': 'album',
84    'metadata': dict({
85      'chapters': None,
86      'copyright': '℗ 2023 Test Label',
87      'description': None,
88      'explicit': False,
89      'genres': None,
90      'grouping': None,
91      'images': list([
92        dict({
93          'path': 'https://resources.tidal.com/images/abcd/ef01/2345/6789/750x750.jpg',
94          'provider': 'tidal_instance',
95          'remotely_accessible': True,
96          'type': 'thumb',
97        }),
98      ]),
99      'label': None,
100      'languages': None,
101      'last_refresh': None,
102      'links': None,
103      'lrc_lyrics': None,
104      'lyrics': None,
105      'mood': None,
106      'performers': None,
107      'popularity': 50,
108      'preview': None,
109      'release_date': '2023-01-01T00:00:00',
110      'review': None,
111      'style': None,
112    }),
113    'name': 'Test Album',
114    'position': None,
115    'provider': 'tidal_instance',
116    'provider_mappings': list([
117      dict({
118        'audio_format': dict({
119          'bit_depth': 16,
120          'bit_rate': 0,
121          'channels': 2,
122          'codec_type': '?',
123          'content_type': 'flac',
124          'output_format_str': 'flac',
125          'sample_rate': 44100,
126        }),
127        'available': True,
128        'details': None,
129        'in_library': None,
130        'is_unique': None,
131        'item_id': '67890',
132        'provider_domain': 'tidal',
133        'provider_instance': 'tidal_instance',
134        'url': 'https://tidal.com/album/67890',
135      }),
136    ]),
137    'sort_name': 'test album',
138    'translation_key': None,
139    'uri': 'tidal_instance://album/67890',
140    'version': 'Deluxe Edition',
141    'year': 2023,
142  })
143# ---
144# name: test_parse_artist[artist]
145  dict({
146    'date_added': '2024-06-10T12:00:00+00:00',
147    'external_ids': list([
148    ]),
149    'favorite': False,
150    'is_playable': True,
151    'item_id': '12345',
152    'media_type': 'artist',
153    'metadata': dict({
154      'chapters': None,
155      'copyright': None,
156      'description': None,
157      'explicit': None,
158      'genres': None,
159      'grouping': None,
160      'images': list([
161        dict({
162          'path': 'https://resources.tidal.com/images/1234/5678/90ab/cdef/750x750.jpg',
163          'provider': 'tidal_instance',
164          'remotely_accessible': True,
165          'type': 'thumb',
166        }),
167      ]),
168      'label': None,
169      'languages': None,
170      'last_refresh': None,
171      'links': None,
172      'lrc_lyrics': None,
173      'lyrics': None,
174      'mood': None,
175      'performers': None,
176      'popularity': None,
177      'preview': None,
178      'release_date': None,
179      'review': None,
180      'style': None,
181    }),
182    'name': 'Test Artist',
183    'position': None,
184    'provider': 'tidal_instance',
185    'provider_mappings': list([
186      dict({
187        'audio_format': dict({
188          'bit_depth': 16,
189          'bit_rate': 0,
190          'channels': 2,
191          'codec_type': '?',
192          'content_type': '?',
193          'output_format_str': '?',
194          'sample_rate': 44100,
195        }),
196        'available': True,
197        'details': None,
198        'in_library': None,
199        'is_unique': None,
200        'item_id': '12345',
201        'provider_domain': 'tidal',
202        'provider_instance': 'tidal_instance',
203        'url': 'https://tidal.com/artist/12345',
204      }),
205    ]),
206    'sort_name': 'test artist',
207    'translation_key': None,
208    'uri': 'tidal_instance://artist/12345',
209    'version': '',
210  })
211# ---
212# name: test_parse_playlist[mix]
213  dict({
214    'date_added': None,
215    'external_ids': list([
216    ]),
217    'favorite': False,
218    'is_editable': False,
219    'is_playable': True,
220    'item_id': 'mix_mix_123',
221    'media_type': 'playlist',
222    'metadata': dict({
223      'chapters': None,
224      'copyright': None,
225      'description': 'A personalized mix just for you',
226      'explicit': None,
227      'genres': None,
228      'grouping': None,
229      'images': list([
230        dict({
231          'path': 'http://example.com/mix-medium.jpg',
232          'provider': 'tidal_instance',
233          'remotely_accessible': True,
234          'type': 'thumb',
235        }),
236      ]),
237      'label': None,
238      'languages': None,
239      'last_refresh': None,
240      'links': None,
241      'lrc_lyrics': None,
242      'lyrics': None,
243      'mood': None,
244      'performers': None,
245      'popularity': None,
246      'preview': None,
247      'release_date': None,
248      'review': None,
249      'style': None,
250    }),
251    'name': 'My Daily Discovery',
252    'owner': 'Created by Tidal',
253    'position': None,
254    'provider': 'tidal_instance',
255    'provider_mappings': list([
256      dict({
257        'audio_format': dict({
258          'bit_depth': 16,
259          'bit_rate': 0,
260          'channels': 2,
261          'codec_type': '?',
262          'content_type': '?',
263          'output_format_str': '?',
264          'sample_rate': 44100,
265        }),
266        'available': True,
267        'details': None,
268        'in_library': None,
269        'is_unique': False,
270        'item_id': 'mix_mix_123',
271        'provider_domain': 'tidal',
272        'provider_instance': 'tidal_instance',
273        'url': 'https://tidal.com/browse/mix/mix_123',
274      }),
275    ]),
276    'sort_name': 'my daily discovery',
277    'translation_key': None,
278    'uri': 'tidal_instance://playlist/mix_mix_123',
279    'version': '',
280  })
281# ---
282# name: test_parse_playlist[playlist]
283  dict({
284    'date_added': '2024-06-10T12:00:00+00:00',
285    'external_ids': list([
286    ]),
287    'favorite': False,
288    'is_editable': False,
289    'is_playable': True,
290    'item_id': 'aabbcc-1122-3344-5566',
291    'media_type': 'playlist',
292    'metadata': dict({
293      'chapters': None,
294      'copyright': None,
295      'description': None,
296      'explicit': None,
297      'genres': None,
298      'grouping': None,
299      'images': list([
300        dict({
301          'path': 'https://resources.tidal.com/images/playlist/square/image/id/750x750.jpg',
302          'provider': 'tidal_instance',
303          'remotely_accessible': True,
304          'type': 'thumb',
305        }),
306      ]),
307      'label': None,
308      'languages': None,
309      'last_refresh': None,
310      'links': None,
311      'lrc_lyrics': None,
312      'lyrics': None,
313      'mood': None,
314      'performers': None,
315      'popularity': None,
316      'preview': None,
317      'release_date': None,
318      'review': None,
319      'style': None,
320    }),
321    'name': 'Test Playlist',
322    'owner': 'Tidal',
323    'position': None,
324    'provider': 'tidal_instance',
325    'provider_mappings': list([
326      dict({
327        'audio_format': dict({
328          'bit_depth': 16,
329          'bit_rate': 0,
330          'channels': 2,
331          'codec_type': '?',
332          'content_type': '?',
333          'output_format_str': '?',
334          'sample_rate': 44100,
335        }),
336        'available': True,
337        'details': None,
338        'in_library': None,
339        'is_unique': False,
340        'item_id': 'aabbcc-1122-3344-5566',
341        'provider_domain': 'tidal',
342        'provider_instance': 'tidal_instance',
343        'url': 'https://tidal.com/browse/playlist/aabbcc-1122-3344-5566',
344      }),
345    ]),
346    'sort_name': 'test playlist',
347    'translation_key': None,
348    'uri': 'tidal_instance://playlist/aabbcc-1122-3344-5566',
349    'version': '',
350  })
351# ---
352# name: test_parse_track[track]
353  dict({
354    'album': dict({
355      'available': True,
356      'external_ids': list([
357      ]),
358      'image': None,
359      'is_playable': True,
360      'item_id': '67890',
361      'media_type': 'album',
362      'name': 'Test Album',
363      'provider': 'tidal_instance',
364      'sort_name': 'test album',
365      'translation_key': None,
366      'uri': 'tidal_instance://album/67890',
367      'version': '',
368    }),
369    'artists': list([
370      dict({
371        'date_added': None,
372        'external_ids': list([
373        ]),
374        'favorite': False,
375        'is_playable': True,
376        'item_id': '12345',
377        'media_type': 'artist',
378        'metadata': dict({
379          'chapters': None,
380          'copyright': None,
381          'description': None,
382          'explicit': None,
383          'genres': None,
384          'grouping': None,
385          'images': list([
386            dict({
387              'path': 'https://resources.tidal.com/images/1234/5678/90ab/cdef/750x750.jpg',
388              'provider': 'tidal_instance',
389              'remotely_accessible': True,
390              'type': 'thumb',
391            }),
392          ]),
393          'label': None,
394          'languages': None,
395          'last_refresh': None,
396          'links': None,
397          'lrc_lyrics': None,
398          'lyrics': None,
399          'mood': None,
400          'performers': None,
401          'popularity': None,
402          'preview': None,
403          'release_date': None,
404          'review': None,
405          'style': None,
406        }),
407        'name': 'Test Artist',
408        'position': None,
409        'provider': 'tidal_instance',
410        'provider_mappings': list([
411          dict({
412            'audio_format': dict({
413              'bit_depth': 16,
414              'bit_rate': 0,
415              'channels': 2,
416              'codec_type': '?',
417              'content_type': '?',
418              'output_format_str': '?',
419              'sample_rate': 44100,
420            }),
421            'available': True,
422            'details': None,
423            'in_library': None,
424            'is_unique': None,
425            'item_id': '12345',
426            'provider_domain': 'tidal',
427            'provider_instance': 'tidal_instance',
428            'url': 'https://tidal.com/artist/12345',
429          }),
430        ]),
431        'sort_name': 'test artist',
432        'translation_key': None,
433        'uri': 'tidal_instance://artist/12345',
434        'version': '',
435      }),
436    ]),
437    'date_added': '2024-06-10T12:00:00+00:00',
438    'disc_number': 1,
439    'duration': 180,
440    'external_ids': list([
441      list([
442        'isrc',
443        'US1234567890',
444      ]),
445    ]),
446    'favorite': False,
447    'is_playable': True,
448    'item_id': '112233',
449    'last_played': 0,
450    'media_type': 'track',
451    'metadata': dict({
452      'chapters': None,
453      'copyright': '℗ 2023 Test Label',
454      'description': None,
455      'explicit': False,
456      'genres': None,
457      'grouping': None,
458      'images': list([
459        dict({
460          'path': 'https://resources.tidal.com/images/abcd/ef01/2345/6789/750x750.jpg',
461          'provider': 'tidal_instance',
462          'remotely_accessible': True,
463          'type': 'thumb',
464        }),
465      ]),
466      'label': None,
467      'languages': None,
468      'last_refresh': None,
469      'links': None,
470      'lrc_lyrics': None,
471      'lyrics': None,
472      'mood': None,
473      'performers': None,
474      'popularity': 60,
475      'preview': None,
476      'release_date': None,
477      'review': None,
478      'style': None,
479    }),
480    'name': 'Test Track',
481    'position': None,
482    'provider': 'tidal_instance',
483    'provider_mappings': list([
484      dict({
485        'audio_format': dict({
486          'bit_depth': 24,
487          'bit_rate': 0,
488          'channels': 2,
489          'codec_type': '?',
490          'content_type': 'flac',
491          'output_format_str': 'flac',
492          'sample_rate': 44100,
493        }),
494        'available': True,
495        'details': None,
496        'in_library': None,
497        'is_unique': None,
498        'item_id': '112233',
499        'provider_domain': 'tidal',
500        'provider_instance': 'tidal_instance',
501        'url': 'https://tidal.com/track/112233',
502      }),
503    ]),
504    'sort_name': 'test track',
505    'track_number': 1,
506    'translation_key': None,
507    'uri': 'tidal_instance://track/112233',
508    'version': 'Remastered',
509  })
510# ---
511