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