/
/
1# serializer version: 1
2# name: test_parse_album_snapshot[minimal]
3 dict({
4 'album_type': 'album',
5 'artists': list([
6 ]),
7 'date_added': None,
8 'external_ids': list([
9 ]),
10 'favorite': False,
11 'is_playable': True,
12 'item_id': '300',
13 'media_type': 'album',
14 'metadata': dict({
15 'artist_entity_type': None,
16 'chapters': None,
17 'collections': None,
18 'copyright': None,
19 'description': None,
20 'description_language': None,
21 'explicit': None,
22 'genres': None,
23 'grouping': None,
24 'images': None,
25 'label': None,
26 'languages': None,
27 'last_refresh': None,
28 'life_span': None,
29 'links': None,
30 'lrc_lyrics': None,
31 'lyrics': None,
32 'mood': None,
33 'performers': None,
34 'popularity': None,
35 'preview': None,
36 'release_date': None,
37 'review': None,
38 'style': None,
39 }),
40 'name': 'Test Album',
41 'position': None,
42 'provider': 'yandex_music_instance',
43 'provider_mappings': list([
44 dict({
45 'audio_format': dict({
46 'bit_depth': 16,
47 'bit_rate': 0,
48 'channels': 2,
49 'codec_type': '?',
50 'content_type': '?',
51 'output_format_str': '?',
52 'sample_rate': 44100,
53 }),
54 'available': True,
55 'details': None,
56 'in_library': None,
57 'is_unique': None,
58 'item_id': '300',
59 'provider_domain': 'yandex_music',
60 'provider_instance': 'yandex_music_instance',
61 'url': 'https://music.yandex.ru/album/300',
62 }),
63 ]),
64 'sort_name': 'test album',
65 'uri': 'yandex_music_instance://album/300',
66 'version': '',
67 'year': 2020,
68 })
69# ---
70# name: test_parse_artist_snapshot[minimal]
71 dict({
72 'artist_type': 'singer',
73 'date_added': None,
74 'external_ids': list([
75 ]),
76 'favorite': False,
77 'is_playable': True,
78 'item_id': '100',
79 'media_type': 'artist',
80 'metadata': dict({
81 'artist_entity_type': None,
82 'chapters': None,
83 'collections': None,
84 'copyright': None,
85 'description': None,
86 'description_language': None,
87 'explicit': None,
88 'genres': None,
89 'grouping': None,
90 'images': None,
91 'label': None,
92 'languages': None,
93 'last_refresh': None,
94 'life_span': None,
95 'links': None,
96 'lrc_lyrics': None,
97 'lyrics': None,
98 'mood': None,
99 'performers': None,
100 'popularity': None,
101 'preview': None,
102 'release_date': None,
103 'review': None,
104 'style': None,
105 }),
106 'name': 'Test Artist',
107 'position': None,
108 'provider': 'yandex_music_instance',
109 'provider_mappings': list([
110 dict({
111 'audio_format': dict({
112 'bit_depth': 16,
113 'bit_rate': 0,
114 'channels': 2,
115 'codec_type': '?',
116 'content_type': '?',
117 'output_format_str': '?',
118 'sample_rate': 44100,
119 }),
120 'available': True,
121 'details': None,
122 'in_library': None,
123 'is_unique': None,
124 'item_id': '100',
125 'provider_domain': 'yandex_music',
126 'provider_instance': 'yandex_music_instance',
127 'url': 'https://music.yandex.ru/artist/100',
128 }),
129 ]),
130 'sort_name': 'test artist',
131 'uri': 'yandex_music_instance://artist/100',
132 'version': '',
133 })
134# ---
135# name: test_parse_artist_snapshot[with_cover]
136 dict({
137 'artist_type': 'singer',
138 'date_added': None,
139 'external_ids': list([
140 ]),
141 'favorite': False,
142 'is_playable': True,
143 'item_id': '200',
144 'media_type': 'artist',
145 'metadata': dict({
146 'artist_entity_type': None,
147 'chapters': None,
148 'collections': None,
149 'copyright': None,
150 'description': None,
151 'description_language': None,
152 'explicit': None,
153 'genres': None,
154 'grouping': None,
155 'images': list([
156 dict({
157 'path': 'https://avatars.yandex.net/get-music-content/xxx/yyy/1000x1000',
158 'provider': 'yandex_music_instance',
159 'proxy_id': None,
160 'remotely_accessible': True,
161 'type': 'thumb',
162 }),
163 ]),
164 'label': None,
165 'languages': None,
166 'last_refresh': None,
167 'life_span': None,
168 'links': None,
169 'lrc_lyrics': None,
170 'lyrics': None,
171 'mood': None,
172 'performers': None,
173 'popularity': None,
174 'preview': None,
175 'release_date': None,
176 'review': None,
177 'style': None,
178 }),
179 'name': 'Artist With Cover',
180 'position': None,
181 'provider': 'yandex_music_instance',
182 'provider_mappings': list([
183 dict({
184 'audio_format': dict({
185 'bit_depth': 16,
186 'bit_rate': 0,
187 'channels': 2,
188 'codec_type': '?',
189 'content_type': '?',
190 'output_format_str': '?',
191 'sample_rate': 44100,
192 }),
193 'available': True,
194 'details': None,
195 'in_library': None,
196 'is_unique': None,
197 'item_id': '200',
198 'provider_domain': 'yandex_music',
199 'provider_instance': 'yandex_music_instance',
200 'url': 'https://music.yandex.ru/artist/200',
201 }),
202 ]),
203 'sort_name': 'artist with cover',
204 'uri': 'yandex_music_instance://artist/200',
205 'version': '',
206 })
207# ---
208# name: test_parse_playlist_snapshot[minimal]
209 dict({
210 'date_added': None,
211 'external_ids': list([
212 ]),
213 'favorite': False,
214 'is_dynamic': False,
215 'is_editable': True,
216 'is_playable': True,
217 'item_id': '12345:3',
218 'media_type': 'playlist',
219 'metadata': dict({
220 'artist_entity_type': None,
221 'chapters': None,
222 'collections': None,
223 'copyright': None,
224 'description': None,
225 'description_language': None,
226 'explicit': None,
227 'genres': None,
228 'grouping': None,
229 'images': None,
230 'label': None,
231 'languages': None,
232 'last_refresh': None,
233 'life_span': None,
234 'links': None,
235 'lrc_lyrics': None,
236 'lyrics': None,
237 'mood': None,
238 'performers': None,
239 'popularity': None,
240 'preview': None,
241 'release_date': None,
242 'review': None,
243 'style': None,
244 }),
245 'name': 'My Playlist',
246 'owner': 'Me',
247 'position': None,
248 'provider': 'yandex_music_instance',
249 'provider_mappings': list([
250 dict({
251 'audio_format': dict({
252 'bit_depth': 16,
253 'bit_rate': 0,
254 'channels': 2,
255 'codec_type': '?',
256 'content_type': '?',
257 'output_format_str': '?',
258 'sample_rate': 44100,
259 }),
260 'available': True,
261 'details': None,
262 'in_library': None,
263 'is_unique': True,
264 'item_id': '12345:3',
265 'provider_domain': 'yandex_music',
266 'provider_instance': 'yandex_music_instance',
267 'url': 'https://music.yandex.ru/users/12345/playlists/3',
268 }),
269 ]),
270 'sort_name': 'my playlist',
271 'supported_mediatypes': list([
272 'track',
273 ]),
274 'translation_key': None,
275 'translation_params': None,
276 'uri': 'yandex_music_instance://playlist/12345:3',
277 'version': '',
278 })
279# ---
280# name: test_parse_playlist_snapshot[other_user]
281 dict({
282 'date_added': None,
283 'external_ids': list([
284 ]),
285 'favorite': False,
286 'is_dynamic': False,
287 'is_editable': False,
288 'is_playable': True,
289 'item_id': '99999:1',
290 'media_type': 'playlist',
291 'metadata': dict({
292 'artist_entity_type': None,
293 'chapters': None,
294 'collections': None,
295 'copyright': None,
296 'description': 'A shared playlist',
297 'description_language': None,
298 'explicit': None,
299 'genres': None,
300 'grouping': None,
301 'images': None,
302 'label': None,
303 'languages': None,
304 'last_refresh': None,
305 'life_span': None,
306 'links': None,
307 'lrc_lyrics': None,
308 'lyrics': None,
309 'mood': None,
310 'performers': None,
311 'popularity': None,
312 'preview': None,
313 'release_date': None,
314 'review': None,
315 'style': None,
316 }),
317 'name': 'Shared Playlist',
318 'owner': 'Other User',
319 'position': None,
320 'provider': 'yandex_music_instance',
321 'provider_mappings': list([
322 dict({
323 'audio_format': dict({
324 'bit_depth': 16,
325 'bit_rate': 0,
326 'channels': 2,
327 'codec_type': '?',
328 'content_type': '?',
329 'output_format_str': '?',
330 'sample_rate': 44100,
331 }),
332 'available': True,
333 'details': None,
334 'in_library': None,
335 'is_unique': False,
336 'item_id': '99999:1',
337 'provider_domain': 'yandex_music',
338 'provider_instance': 'yandex_music_instance',
339 'url': 'https://music.yandex.ru/users/99999/playlists/1',
340 }),
341 ]),
342 'sort_name': 'shared playlist',
343 'supported_mediatypes': list([
344 'track',
345 ]),
346 'translation_key': None,
347 'translation_params': None,
348 'uri': 'yandex_music_instance://playlist/99999:1',
349 'version': '',
350 })
351# ---
352# name: test_parse_track_snapshot[minimal]
353 dict({
354 'album': None,
355 'artists': list([
356 ]),
357 'audio_metadata': None,
358 'date_added': None,
359 'disc_number': 0,
360 'duration': 180,
361 'external_ids': list([
362 ]),
363 'favorite': False,
364 'is_playable': True,
365 'item_id': '400',
366 'last_played': 0,
367 'media_type': 'track',
368 'metadata': dict({
369 'artist_entity_type': None,
370 'chapters': None,
371 'collections': None,
372 'copyright': None,
373 'description': None,
374 'description_language': None,
375 'explicit': None,
376 'genres': None,
377 'grouping': None,
378 'images': None,
379 'label': None,
380 'languages': None,
381 'last_refresh': None,
382 'life_span': None,
383 'links': None,
384 'lrc_lyrics': None,
385 'lyrics': None,
386 'mood': None,
387 'performers': None,
388 'popularity': None,
389 'preview': None,
390 'release_date': None,
391 'review': None,
392 'style': None,
393 }),
394 'name': 'Test Track',
395 'position': None,
396 'provider': 'yandex_music_instance',
397 'provider_mappings': list([
398 dict({
399 'audio_format': dict({
400 'bit_depth': 16,
401 'bit_rate': 0,
402 'channels': 2,
403 'codec_type': '?',
404 'content_type': '?',
405 'output_format_str': '?',
406 'sample_rate': 44100,
407 }),
408 'available': True,
409 'details': None,
410 'in_library': None,
411 'is_unique': None,
412 'item_id': '400',
413 'provider_domain': 'yandex_music',
414 'provider_instance': 'yandex_music_instance',
415 'url': 'https://music.yandex.ru/track/400',
416 }),
417 ]),
418 'sort_name': 'test track',
419 'track_number': 0,
420 'uri': 'yandex_music_instance://track/400',
421 'version': '',
422 })
423# ---
424# name: test_parse_track_snapshot[with_artist_and_album]
425 dict({
426 'album': dict({
427 'album_type': 'album',
428 'artists': list([
429 ]),
430 'date_added': None,
431 'external_ids': list([
432 ]),
433 'favorite': False,
434 'is_playable': True,
435 'item_id': '20',
436 'media_type': 'album',
437 'metadata': dict({
438 'artist_entity_type': None,
439 'chapters': None,
440 'collections': None,
441 'copyright': None,
442 'description': None,
443 'description_language': None,
444 'explicit': None,
445 'genres': None,
446 'grouping': None,
447 'images': list([
448 dict({
449 'path': 'https://avatars.yandex.net/get-music-content/aaa/bbb/1000x1000',
450 'provider': 'yandex_music_instance',
451 'proxy_id': None,
452 'remotely_accessible': True,
453 'type': 'thumb',
454 }),
455 ]),
456 'label': None,
457 'languages': None,
458 'last_refresh': None,
459 'life_span': None,
460 'links': None,
461 'lrc_lyrics': None,
462 'lyrics': None,
463 'mood': None,
464 'performers': None,
465 'popularity': None,
466 'preview': None,
467 'release_date': None,
468 'review': None,
469 'style': None,
470 }),
471 'name': 'Track Album',
472 'position': None,
473 'provider': 'yandex_music_instance',
474 'provider_mappings': list([
475 dict({
476 'audio_format': dict({
477 'bit_depth': 16,
478 'bit_rate': 0,
479 'channels': 2,
480 'codec_type': '?',
481 'content_type': '?',
482 'output_format_str': '?',
483 'sample_rate': 44100,
484 }),
485 'available': False,
486 'details': None,
487 'in_library': None,
488 'is_unique': None,
489 'item_id': '20',
490 'provider_domain': 'yandex_music',
491 'provider_instance': 'yandex_music_instance',
492 'url': 'https://music.yandex.ru/album/20',
493 }),
494 ]),
495 'sort_name': 'track album',
496 'uri': 'yandex_music_instance://album/20',
497 'version': '',
498 'year': None,
499 }),
500 'artists': list([
501 dict({
502 'artist_type': 'singer',
503 'date_added': None,
504 'external_ids': list([
505 ]),
506 'favorite': False,
507 'is_playable': True,
508 'item_id': '10',
509 'media_type': 'artist',
510 'metadata': dict({
511 'artist_entity_type': None,
512 'chapters': None,
513 'collections': None,
514 'copyright': None,
515 'description': None,
516 'description_language': None,
517 'explicit': None,
518 'genres': None,
519 'grouping': None,
520 'images': None,
521 'label': None,
522 'languages': None,
523 'last_refresh': None,
524 'life_span': None,
525 'links': None,
526 'lrc_lyrics': None,
527 'lyrics': None,
528 'mood': None,
529 'performers': None,
530 'popularity': None,
531 'preview': None,
532 'release_date': None,
533 'review': None,
534 'style': None,
535 }),
536 'name': 'Track Artist',
537 'position': None,
538 'provider': 'yandex_music_instance',
539 'provider_mappings': list([
540 dict({
541 'audio_format': dict({
542 'bit_depth': 16,
543 'bit_rate': 0,
544 'channels': 2,
545 'codec_type': '?',
546 'content_type': '?',
547 'output_format_str': '?',
548 'sample_rate': 44100,
549 }),
550 'available': True,
551 'details': None,
552 'in_library': None,
553 'is_unique': None,
554 'item_id': '10',
555 'provider_domain': 'yandex_music',
556 'provider_instance': 'yandex_music_instance',
557 'url': 'https://music.yandex.ru/artist/10',
558 }),
559 ]),
560 'sort_name': 'track artist',
561 'uri': 'yandex_music_instance://artist/10',
562 'version': '',
563 }),
564 ]),
565 'audio_metadata': None,
566 'date_added': None,
567 'disc_number': 0,
568 'duration': 240,
569 'external_ids': list([
570 ]),
571 'favorite': False,
572 'is_playable': True,
573 'item_id': '500',
574 'last_played': 0,
575 'media_type': 'track',
576 'metadata': dict({
577 'artist_entity_type': None,
578 'chapters': None,
579 'collections': None,
580 'copyright': None,
581 'description': None,
582 'description_language': None,
583 'explicit': None,
584 'genres': None,
585 'grouping': None,
586 'images': list([
587 dict({
588 'path': 'https://avatars.yandex.net/get-music-content/aaa/bbb/1000x1000',
589 'provider': 'yandex_music_instance',
590 'proxy_id': None,
591 'remotely_accessible': True,
592 'type': 'thumb',
593 }),
594 ]),
595 'label': None,
596 'languages': None,
597 'last_refresh': None,
598 'life_span': None,
599 'links': None,
600 'lrc_lyrics': None,
601 'lyrics': None,
602 'mood': None,
603 'performers': None,
604 'popularity': None,
605 'preview': None,
606 'release_date': None,
607 'review': None,
608 'style': None,
609 }),
610 'name': 'Track With Album',
611 'position': None,
612 'provider': 'yandex_music_instance',
613 'provider_mappings': list([
614 dict({
615 'audio_format': dict({
616 'bit_depth': 16,
617 'bit_rate': 0,
618 'channels': 2,
619 'codec_type': '?',
620 'content_type': '?',
621 'output_format_str': '?',
622 'sample_rate': 44100,
623 }),
624 'available': True,
625 'details': None,
626 'in_library': None,
627 'is_unique': None,
628 'item_id': '500',
629 'provider_domain': 'yandex_music',
630 'provider_instance': 'yandex_music_instance',
631 'url': 'https://music.yandex.ru/track/500',
632 }),
633 ]),
634 'sort_name': 'track with album',
635 'track_number': 0,
636 'uri': 'yandex_music_instance://track/500',
637 'version': '',
638 })
639# ---
640