music-assistant-server

13.5 KBAMBR
test_parsers.ambr
13.5 KB512 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      'year': None,
369    }),
370    'artists': list([
371      dict({
372        'date_added': None,
373        'external_ids': list([
374        ]),
375        'favorite': False,
376        'is_playable': True,
377        'item_id': '12345',
378        'media_type': 'artist',
379        'metadata': dict({
380          'chapters': None,
381          'copyright': None,
382          'description': None,
383          'explicit': None,
384          'genres': None,
385          'grouping': None,
386          'images': list([
387            dict({
388              'path': 'https://resources.tidal.com/images/1234/5678/90ab/cdef/750x750.jpg',
389              'provider': 'tidal_instance',
390              'remotely_accessible': True,
391              'type': 'thumb',
392            }),
393          ]),
394          'label': None,
395          'languages': None,
396          'last_refresh': None,
397          'links': None,
398          'lrc_lyrics': None,
399          'lyrics': None,
400          'mood': None,
401          'performers': None,
402          'popularity': None,
403          'preview': None,
404          'release_date': None,
405          'review': None,
406          'style': None,
407        }),
408        'name': 'Test Artist',
409        'position': None,
410        'provider': 'tidal_instance',
411        'provider_mappings': list([
412          dict({
413            'audio_format': dict({
414              'bit_depth': 16,
415              'bit_rate': 0,
416              'channels': 2,
417              'codec_type': '?',
418              'content_type': '?',
419              'output_format_str': '?',
420              'sample_rate': 44100,
421            }),
422            'available': True,
423            'details': None,
424            'in_library': None,
425            'is_unique': None,
426            'item_id': '12345',
427            'provider_domain': 'tidal',
428            'provider_instance': 'tidal_instance',
429            'url': 'https://tidal.com/artist/12345',
430          }),
431        ]),
432        'sort_name': 'test artist',
433        'translation_key': None,
434        'uri': 'tidal_instance://artist/12345',
435        'version': '',
436      }),
437    ]),
438    'date_added': '2024-06-10T12:00:00+00:00',
439    'disc_number': 1,
440    'duration': 180,
441    'external_ids': list([
442      list([
443        'isrc',
444        'US1234567890',
445      ]),
446    ]),
447    'favorite': False,
448    'is_playable': True,
449    'item_id': '112233',
450    'last_played': 0,
451    'media_type': 'track',
452    'metadata': dict({
453      'chapters': None,
454      'copyright': '℗ 2023 Test Label',
455      'description': None,
456      'explicit': False,
457      'genres': None,
458      'grouping': None,
459      'images': list([
460        dict({
461          'path': 'https://resources.tidal.com/images/abcd/ef01/2345/6789/750x750.jpg',
462          'provider': 'tidal_instance',
463          'remotely_accessible': True,
464          'type': 'thumb',
465        }),
466      ]),
467      'label': None,
468      'languages': None,
469      'last_refresh': None,
470      'links': None,
471      'lrc_lyrics': None,
472      'lyrics': None,
473      'mood': None,
474      'performers': None,
475      'popularity': 60,
476      'preview': None,
477      'release_date': None,
478      'review': None,
479      'style': None,
480    }),
481    'name': 'Test Track',
482    'position': None,
483    'provider': 'tidal_instance',
484    'provider_mappings': list([
485      dict({
486        'audio_format': dict({
487          'bit_depth': 24,
488          'bit_rate': 0,
489          'channels': 2,
490          'codec_type': '?',
491          'content_type': 'flac',
492          'output_format_str': 'flac',
493          'sample_rate': 44100,
494        }),
495        'available': True,
496        'details': None,
497        'in_library': None,
498        'is_unique': None,
499        'item_id': '112233',
500        'provider_domain': 'tidal',
501        'provider_instance': 'tidal_instance',
502        'url': 'https://tidal.com/track/112233',
503      }),
504    ]),
505    'sort_name': 'test track',
506    'track_number': 1,
507    'translation_key': None,
508    'uri': 'tidal_instance://track/112233',
509    'version': 'Remastered',
510  })
511# ---
512