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