/
/
/
1# serializer version: 1
2# name: test_parse_albums[infest]
3 dict({
4 'album_type': 'unknown',
5 'artists': list([
6 dict({
7 'available': True,
8 'external_ids': list([
9 ]),
10 'image': None,
11 'is_playable': True,
12 'item_id': 'e439648e08ade14e27d5de48fa97c88e',
13 'media_type': 'artist',
14 'name': 'Papa Roach',
15 'provider': 'xx-instance-id-xx',
16 'sort_name': 'papa roach',
17 'translation_key': None,
18 'uri': 'xx-instance-id-xx://artist/e439648e08ade14e27d5de48fa97c88e',
19 'version': '',
20 }),
21 ]),
22 'date_added': None,
23 'external_ids': list([
24 list([
25 'musicbrainz_albumid',
26 'bf25b030-0cbb-495a-8d79-6c7fee20a089',
27 ]),
28 list([
29 'musicbrainz_releasegroupid',
30 '0193355a-cdfb-3936-afd2-44d651eb006d',
31 ]),
32 ]),
33 'favorite': False,
34 'is_playable': True,
35 'item_id': '70b7288088b42d318f75dbcc41fd0091',
36 'media_type': 'album',
37 'metadata': dict({
38 'chapters': None,
39 'copyright': None,
40 'description': None,
41 'explicit': None,
42 'genres': None,
43 'grouping': None,
44 'images': list([
45 dict({
46 'path': 'http://localhost:1234/Items/70b7288088b42d318f75dbcc41fd0091/Images/Primary?api_key=ACCESS_TOKEN',
47 'provider': 'xx-instance-id-xx',
48 'remotely_accessible': False,
49 'type': 'thumb',
50 }),
51 ]),
52 'label': None,
53 'languages': None,
54 'last_refresh': None,
55 'links': None,
56 'lrc_lyrics': None,
57 'lyrics': None,
58 'mood': None,
59 'performers': None,
60 'popularity': None,
61 'preview': None,
62 'release_date': None,
63 'review': None,
64 'style': None,
65 }),
66 'name': 'Infest',
67 'position': None,
68 'provider': 'jellyfin',
69 'provider_mappings': list([
70 dict({
71 'audio_format': dict({
72 'bit_depth': 16,
73 'bit_rate': 0,
74 'channels': 2,
75 'codec_type': '?',
76 'content_type': '?',
77 'output_format_str': '?',
78 'sample_rate': 44100,
79 }),
80 'available': True,
81 'details': None,
82 'in_library': None,
83 'is_unique': None,
84 'item_id': '70b7288088b42d318f75dbcc41fd0091',
85 'provider_domain': 'jellyfin',
86 'provider_instance': 'xx-instance-id-xx',
87 'url': None,
88 }),
89 ]),
90 'sort_name': 'infest',
91 'translation_key': None,
92 'uri': 'jellyfin://album/70b7288088b42d318f75dbcc41fd0091',
93 'version': '',
94 'year': 2000,
95 })
96# ---
97# name: test_parse_albums[this_is_christmas]
98 dict({
99 'album_type': 'unknown',
100 'artists': list([
101 dict({
102 'available': True,
103 'external_ids': list([
104 ]),
105 'image': None,
106 'is_playable': True,
107 'item_id': '555b36f7d310d1b7405557a8775c6878',
108 'media_type': 'artist',
109 'name': 'Emmy the Great & Tim Wheeler',
110 'provider': 'xx-instance-id-xx',
111 'sort_name': 'emmy the great & tim wheeler',
112 'translation_key': None,
113 'uri': 'xx-instance-id-xx://artist/555b36f7d310d1b7405557a8775c6878',
114 'version': '',
115 }),
116 ]),
117 'date_added': None,
118 'external_ids': list([
119 list([
120 'musicbrainz_albumid',
121 'b13a174d-527d-44a1-b8f8-a4c78b03b7d9',
122 ]),
123 list([
124 'musicbrainz_releasegroupid',
125 'f002d6b7-17af-4f9e-8d30-5486548ffe6f',
126 ]),
127 ]),
128 'favorite': False,
129 'is_playable': True,
130 'item_id': '32ed6a0091733dcff57eae67010f3d4b',
131 'media_type': 'album',
132 'metadata': dict({
133 'chapters': None,
134 'copyright': None,
135 'description': None,
136 'explicit': None,
137 'genres': None,
138 'grouping': None,
139 'images': list([
140 dict({
141 'path': 'http://localhost:1234/Items/32ed6a0091733dcff57eae67010f3d4b/Images/Primary?api_key=ACCESS_TOKEN',
142 'provider': 'xx-instance-id-xx',
143 'remotely_accessible': False,
144 'type': 'thumb',
145 }),
146 ]),
147 'label': None,
148 'languages': None,
149 'last_refresh': None,
150 'links': None,
151 'lrc_lyrics': None,
152 'lyrics': None,
153 'mood': None,
154 'performers': None,
155 'popularity': None,
156 'preview': None,
157 'release_date': None,
158 'review': None,
159 'style': None,
160 }),
161 'name': 'This Is Christmas',
162 'position': None,
163 'provider': 'jellyfin',
164 'provider_mappings': list([
165 dict({
166 'audio_format': dict({
167 'bit_depth': 16,
168 'bit_rate': 0,
169 'channels': 2,
170 'codec_type': '?',
171 'content_type': '?',
172 'output_format_str': '?',
173 'sample_rate': 44100,
174 }),
175 'available': True,
176 'details': None,
177 'in_library': None,
178 'is_unique': None,
179 'item_id': '32ed6a0091733dcff57eae67010f3d4b',
180 'provider_domain': 'jellyfin',
181 'provider_instance': 'xx-instance-id-xx',
182 'url': None,
183 }),
184 ]),
185 'sort_name': 'this is christmas',
186 'translation_key': None,
187 'uri': 'jellyfin://album/32ed6a0091733dcff57eae67010f3d4b',
188 'version': '',
189 'year': 2011,
190 })
191# ---
192# name: test_parse_albums[yesterday_when_i_was_mad]
193 dict({
194 'album_type': 'unknown',
195 'artists': list([
196 dict({
197 'available': True,
198 'external_ids': list([
199 ]),
200 'image': None,
201 'is_playable': True,
202 'item_id': '[unknown]',
203 'media_type': 'artist',
204 'name': '[unknown]',
205 'provider': 'jellyfin',
206 'sort_name': 'unknown]',
207 'translation_key': None,
208 'uri': 'jellyfin://artist/[unknown]',
209 'version': '',
210 }),
211 ]),
212 'date_added': None,
213 'external_ids': list([
214 ]),
215 'favorite': False,
216 'is_playable': True,
217 'item_id': '7c8d0bd55291c7fc0451d17ebef30017',
218 'media_type': 'album',
219 'metadata': dict({
220 'chapters': None,
221 'copyright': None,
222 'description': None,
223 'explicit': None,
224 'genres': None,
225 'grouping': None,
226 'images': list([
227 ]),
228 'label': None,
229 'languages': None,
230 'last_refresh': None,
231 'links': None,
232 'lrc_lyrics': None,
233 'lyrics': None,
234 'mood': None,
235 'performers': None,
236 'popularity': None,
237 'preview': None,
238 'release_date': None,
239 'review': None,
240 'style': None,
241 }),
242 'name': 'Yesterday, When I Was Mad [Disc 2]',
243 'position': None,
244 'provider': 'jellyfin',
245 'provider_mappings': list([
246 dict({
247 'audio_format': dict({
248 'bit_depth': 16,
249 'bit_rate': 0,
250 'channels': 2,
251 'codec_type': '?',
252 'content_type': '?',
253 'output_format_str': '?',
254 'sample_rate': 44100,
255 }),
256 'available': True,
257 'details': None,
258 'in_library': None,
259 'is_unique': None,
260 'item_id': '7c8d0bd55291c7fc0451d17ebef30017',
261 'provider_domain': 'jellyfin',
262 'provider_instance': 'xx-instance-id-xx',
263 'url': None,
264 }),
265 ]),
266 'sort_name': 'yesterday when i was mad [disc 0000000002]',
267 'translation_key': None,
268 'uri': 'jellyfin://album/7c8d0bd55291c7fc0451d17ebef30017',
269 'version': '',
270 'year': None,
271 })
272# ---
273# name: test_parse_artists[ash]
274 dict({
275 'date_added': None,
276 'external_ids': list([
277 list([
278 'musicbrainz_artistid',
279 '99164692-c02d-407c-81c9-25d338dd21f4',
280 ]),
281 ]),
282 'favorite': False,
283 'is_playable': True,
284 'item_id': 'dd954bbf54398e247d803186d3585b79',
285 'media_type': 'artist',
286 'metadata': dict({
287 'chapters': None,
288 'copyright': None,
289 'description': None,
290 'explicit': None,
291 'genres': None,
292 'grouping': None,
293 'images': list([
294 dict({
295 'path': 'http://localhost:1234/Items/dd954bbf54398e247d803186d3585b79/Images/Backdrop/0?api_key=ACCESS_TOKEN',
296 'provider': 'xx-instance-id-xx',
297 'remotely_accessible': False,
298 'type': 'fanart',
299 }),
300 dict({
301 'path': 'http://localhost:1234/Items/dd954bbf54398e247d803186d3585b79/Images/Primary?api_key=ACCESS_TOKEN',
302 'provider': 'xx-instance-id-xx',
303 'remotely_accessible': False,
304 'type': 'thumb',
305 }),
306 dict({
307 'path': 'http://localhost:1234/Items/dd954bbf54398e247d803186d3585b79/Images/Logo?api_key=ACCESS_TOKEN',
308 'provider': 'xx-instance-id-xx',
309 'remotely_accessible': False,
310 'type': 'logo',
311 }),
312 ]),
313 'label': None,
314 'languages': None,
315 'last_refresh': None,
316 'links': None,
317 'lrc_lyrics': None,
318 'lyrics': None,
319 'mood': None,
320 'performers': None,
321 'popularity': None,
322 'preview': None,
323 'release_date': None,
324 'review': None,
325 'style': None,
326 }),
327 'name': 'Ash',
328 'position': None,
329 'provider': 'jellyfin',
330 'provider_mappings': list([
331 dict({
332 'audio_format': dict({
333 'bit_depth': 16,
334 'bit_rate': 0,
335 'channels': 2,
336 'codec_type': '?',
337 'content_type': '?',
338 'output_format_str': '?',
339 'sample_rate': 44100,
340 }),
341 'available': True,
342 'details': None,
343 'in_library': None,
344 'is_unique': None,
345 'item_id': 'dd954bbf54398e247d803186d3585b79',
346 'provider_domain': 'jellyfin',
347 'provider_instance': 'xx-instance-id-xx',
348 'url': None,
349 }),
350 ]),
351 'sort_name': 'ash',
352 'translation_key': None,
353 'uri': 'jellyfin://artist/dd954bbf54398e247d803186d3585b79',
354 'version': '',
355 })
356# ---
357# name: test_parse_tracks[do_i_wanna_know]
358 dict({
359 'album': dict({
360 'available': True,
361 'external_ids': list([
362 ]),
363 'image': None,
364 'is_playable': True,
365 'item_id': 'd42d74e134693184e7adc73106238e89',
366 'media_type': 'album',
367 'name': 'AM',
368 'provider': 'xx-instance-id-xx',
369 'sort_name': 'am',
370 'translation_key': None,
371 'uri': 'xx-instance-id-xx://album/d42d74e134693184e7adc73106238e89',
372 'version': '',
373 }),
374 'artists': list([
375 dict({
376 'available': True,
377 'external_ids': list([
378 ]),
379 'image': None,
380 'is_playable': True,
381 'item_id': 'cc940aeb8a99149f159fe9794f136071',
382 'media_type': 'artist',
383 'name': 'Arctic Monkeys',
384 'provider': 'xx-instance-id-xx',
385 'sort_name': 'arctic monkeys',
386 'translation_key': None,
387 'uri': 'xx-instance-id-xx://artist/cc940aeb8a99149f159fe9794f136071',
388 'version': '',
389 }),
390 ]),
391 'date_added': None,
392 'disc_number': 1,
393 'duration': 272,
394 'external_ids': list([
395 ]),
396 'favorite': False,
397 'is_playable': True,
398 'item_id': 'da9c458e425584680765ddc3a89cbc0c',
399 'last_played': 0,
400 'media_type': 'track',
401 'metadata': dict({
402 'chapters': None,
403 'copyright': None,
404 'description': None,
405 'explicit': None,
406 'genres': None,
407 'grouping': None,
408 'images': list([
409 dict({
410 'path': 'http://localhost:1234/Items/da9c458e425584680765ddc3a89cbc0c/Images/Primary?api_key=ACCESS_TOKEN',
411 'provider': 'xx-instance-id-xx',
412 'remotely_accessible': False,
413 'type': 'thumb',
414 }),
415 ]),
416 'label': None,
417 'languages': None,
418 'last_refresh': None,
419 'links': None,
420 'lrc_lyrics': None,
421 'lyrics': None,
422 'mood': None,
423 'performers': None,
424 'popularity': None,
425 'preview': None,
426 'release_date': None,
427 'review': None,
428 'style': None,
429 }),
430 'name': 'Do I Wanna Know?',
431 'position': 1,
432 'provider': 'xx-instance-id-xx',
433 'provider_mappings': list([
434 dict({
435 'audio_format': dict({
436 'bit_depth': 24,
437 'bit_rate': 1546,
438 'channels': 2,
439 'codec_type': '?',
440 'content_type': 'flac',
441 'output_format_str': 'flac',
442 'sample_rate': 44100,
443 }),
444 'available': True,
445 'details': None,
446 'in_library': None,
447 'is_unique': None,
448 'item_id': 'da9c458e425584680765ddc3a89cbc0c',
449 'provider_domain': 'jellyfin',
450 'provider_instance': 'xx-instance-id-xx',
451 'url': 'http://localhost:1234/Audio/da9c458e425584680765ddc3a89cbc0c/universal?userId=USER_ID&deviceId=X&maxStreamingBitrate=140000000&api_key=ACCESS_TOKEN',
452 }),
453 ]),
454 'sort_name': 'do i wanna know?',
455 'track_number': 1,
456 'translation_key': None,
457 'uri': 'xx-instance-id-xx://track/da9c458e425584680765ddc3a89cbc0c',
458 'version': '',
459 })
460# ---
461# name: test_parse_tracks[thrown_away]
462 dict({
463 'album': dict({
464 'available': True,
465 'external_ids': list([
466 ]),
467 'image': None,
468 'is_playable': True,
469 'item_id': '70b7288088b42d318f75dbcc41fd0091',
470 'media_type': 'album',
471 'name': 'Unknown Album (70b7288088b42d318f75dbcc41fd0091)',
472 'provider': 'xx-instance-id-xx',
473 'sort_name': 'unknown album (70b7288088b42d318f75dbcc41fd0091)',
474 'translation_key': None,
475 'uri': 'xx-instance-id-xx://album/70b7288088b42d318f75dbcc41fd0091',
476 'version': '',
477 }),
478 'artists': list([
479 dict({
480 'available': True,
481 'external_ids': list([
482 ]),
483 'image': None,
484 'is_playable': True,
485 'item_id': '[unknown]',
486 'media_type': 'artist',
487 'name': '[unknown]',
488 'provider': 'jellyfin',
489 'sort_name': 'unknown]',
490 'translation_key': None,
491 'uri': 'jellyfin://artist/[unknown]',
492 'version': '',
493 }),
494 ]),
495 'date_added': None,
496 'disc_number': 0,
497 'duration': 577,
498 'external_ids': list([
499 ]),
500 'favorite': False,
501 'is_playable': True,
502 'item_id': 'b5319fb11cde39fca2023184fcfa9862',
503 'last_played': 0,
504 'media_type': 'track',
505 'metadata': dict({
506 'chapters': None,
507 'copyright': None,
508 'description': None,
509 'explicit': None,
510 'genres': None,
511 'grouping': None,
512 'images': list([
513 ]),
514 'label': None,
515 'languages': None,
516 'last_refresh': None,
517 'links': None,
518 'lrc_lyrics': None,
519 'lyrics': None,
520 'mood': None,
521 'performers': None,
522 'popularity': None,
523 'preview': None,
524 'release_date': None,
525 'review': None,
526 'style': None,
527 }),
528 'name': '11 Thrown Away',
529 'position': 0,
530 'provider': 'xx-instance-id-xx',
531 'provider_mappings': list([
532 dict({
533 'audio_format': dict({
534 'bit_depth': 16,
535 'bit_rate': 156,
536 'channels': 2,
537 'codec_type': '?',
538 'content_type': 'mp3',
539 'output_format_str': 'mp3',
540 'sample_rate': 44100,
541 }),
542 'available': True,
543 'details': None,
544 'in_library': None,
545 'is_unique': None,
546 'item_id': 'b5319fb11cde39fca2023184fcfa9862',
547 'provider_domain': 'jellyfin',
548 'provider_instance': 'xx-instance-id-xx',
549 'url': 'http://localhost:1234/Audio/b5319fb11cde39fca2023184fcfa9862/universal?userId=USER_ID&deviceId=X&maxStreamingBitrate=140000000&api_key=ACCESS_TOKEN',
550 }),
551 ]),
552 'sort_name': '11 thrown away',
553 'track_number': 0,
554 'translation_key': None,
555 'uri': 'xx-instance-id-xx://track/b5319fb11cde39fca2023184fcfa9862',
556 'version': '',
557 })
558# ---
559# name: test_parse_tracks[where_the_bands_are]
560 dict({
561 'album': None,
562 'artists': list([
563 dict({
564 'available': True,
565 'external_ids': list([
566 ]),
567 'image': None,
568 'is_playable': True,
569 'item_id': '94875b0dd58cbf5245a135982133651a',
570 'media_type': 'artist',
571 'name': 'Dead Like Harry',
572 'provider': 'xx-instance-id-xx',
573 'sort_name': 'dead like harry',
574 'translation_key': None,
575 'uri': 'xx-instance-id-xx://artist/94875b0dd58cbf5245a135982133651a',
576 'version': '',
577 }),
578 ]),
579 'date_added': None,
580 'disc_number': 1,
581 'duration': 246,
582 'external_ids': list([
583 ]),
584 'favorite': False,
585 'is_playable': True,
586 'item_id': '54918f75ee8f6c8b8dc5efd680644f29',
587 'last_played': 0,
588 'media_type': 'track',
589 'metadata': dict({
590 'chapters': None,
591 'copyright': None,
592 'description': None,
593 'explicit': None,
594 'genres': None,
595 'grouping': None,
596 'images': list([
597 dict({
598 'path': 'http://localhost:1234/Items/54918f75ee8f6c8b8dc5efd680644f29/Images/Primary?api_key=ACCESS_TOKEN',
599 'provider': 'xx-instance-id-xx',
600 'remotely_accessible': False,
601 'type': 'thumb',
602 }),
603 ]),
604 'label': None,
605 'languages': None,
606 'last_refresh': None,
607 'links': None,
608 'lrc_lyrics': None,
609 'lyrics': None,
610 'mood': None,
611 'performers': None,
612 'popularity': None,
613 'preview': None,
614 'release_date': None,
615 'review': None,
616 'style': None,
617 }),
618 'name': 'Where the Bands Are',
619 'position': 1,
620 'provider': 'xx-instance-id-xx',
621 'provider_mappings': list([
622 dict({
623 'audio_format': dict({
624 'bit_depth': 16,
625 'bit_rate': 278,
626 'channels': 2,
627 'codec_type': '?',
628 'content_type': 'aac',
629 'output_format_str': 'aac',
630 'sample_rate': 44100,
631 }),
632 'available': True,
633 'details': None,
634 'in_library': None,
635 'is_unique': None,
636 'item_id': '54918f75ee8f6c8b8dc5efd680644f29',
637 'provider_domain': 'jellyfin',
638 'provider_instance': 'xx-instance-id-xx',
639 'url': 'http://localhost:1234/Audio/54918f75ee8f6c8b8dc5efd680644f29/universal?userId=USER_ID&deviceId=X&maxStreamingBitrate=140000000&api_key=ACCESS_TOKEN',
640 }),
641 ]),
642 'sort_name': 'where the bands are',
643 'track_number': 1,
644 'translation_key': None,
645 'uri': 'xx-instance-id-xx://track/54918f75ee8f6c8b8dc5efd680644f29',
646 'version': '2018 Version',
647 })
648# ---
649# name: test_parse_tracks[zombie_christmas]
650 dict({
651 'album': dict({
652 'available': True,
653 'external_ids': list([
654 ]),
655 'image': None,
656 'is_playable': True,
657 'item_id': '32ed6a0091733dcff57eae67010f3d4b',
658 'media_type': 'album',
659 'name': 'This Is Christmas',
660 'provider': 'xx-instance-id-xx',
661 'sort_name': 'this is christmas',
662 'translation_key': None,
663 'uri': 'xx-instance-id-xx://album/32ed6a0091733dcff57eae67010f3d4b',
664 'version': '',
665 }),
666 'artists': list([
667 dict({
668 'available': True,
669 'external_ids': list([
670 ]),
671 'image': None,
672 'is_playable': True,
673 'item_id': 'a0c459294295710546c81c20a8d9abfc',
674 'media_type': 'artist',
675 'name': 'Emmy the Great',
676 'provider': 'xx-instance-id-xx',
677 'sort_name': 'emmy the great',
678 'translation_key': None,
679 'uri': 'xx-instance-id-xx://artist/a0c459294295710546c81c20a8d9abfc',
680 'version': '',
681 }),
682 dict({
683 'available': True,
684 'external_ids': list([
685 ]),
686 'image': None,
687 'is_playable': True,
688 'item_id': '1952db245ddef4e41dcd016475379190',
689 'media_type': 'artist',
690 'name': 'Tim Wheeler',
691 'provider': 'xx-instance-id-xx',
692 'sort_name': 'tim wheeler',
693 'translation_key': None,
694 'uri': 'xx-instance-id-xx://artist/1952db245ddef4e41dcd016475379190',
695 'version': '',
696 }),
697 ]),
698 'date_added': None,
699 'disc_number': 1,
700 'duration': 224,
701 'external_ids': list([
702 list([
703 'musicbrainz_recordingid',
704 '17d1019d-d4f4-326c-b4bb-d8aec2607bd7',
705 ]),
706 ]),
707 'favorite': False,
708 'is_playable': True,
709 'item_id': 'fb12a77f49616a9fc56a6fab2b94174c',
710 'last_played': 0,
711 'media_type': 'track',
712 'metadata': dict({
713 'chapters': None,
714 'copyright': None,
715 'description': None,
716 'explicit': None,
717 'genres': None,
718 'grouping': None,
719 'images': list([
720 dict({
721 'path': 'http://localhost:1234/Items/fb12a77f49616a9fc56a6fab2b94174c/Images/Primary?api_key=ACCESS_TOKEN',
722 'provider': 'xx-instance-id-xx',
723 'remotely_accessible': False,
724 'type': 'thumb',
725 }),
726 ]),
727 'label': None,
728 'languages': None,
729 'last_refresh': None,
730 'links': None,
731 'lrc_lyrics': None,
732 'lyrics': None,
733 'mood': None,
734 'performers': None,
735 'popularity': None,
736 'preview': None,
737 'release_date': None,
738 'review': None,
739 'style': None,
740 }),
741 'name': 'Zombie Christmas',
742 'position': 8,
743 'provider': 'xx-instance-id-xx',
744 'provider_mappings': list([
745 dict({
746 'audio_format': dict({
747 'bit_depth': 16,
748 'bit_rate': 267,
749 'channels': 2,
750 'codec_type': '?',
751 'content_type': 'aac',
752 'output_format_str': 'aac',
753 'sample_rate': 44100,
754 }),
755 'available': True,
756 'details': None,
757 'in_library': None,
758 'is_unique': None,
759 'item_id': 'fb12a77f49616a9fc56a6fab2b94174c',
760 'provider_domain': 'jellyfin',
761 'provider_instance': 'xx-instance-id-xx',
762 'url': 'http://localhost:1234/Audio/fb12a77f49616a9fc56a6fab2b94174c/universal?userId=USER_ID&deviceId=X&maxStreamingBitrate=140000000&api_key=ACCESS_TOKEN',
763 }),
764 ]),
765 'sort_name': 'zombie christmas',
766 'track_number': 8,
767 'translation_key': None,
768 'uri': 'xx-instance-id-xx://track/fb12a77f49616a9fc56a6fab2b94174c',
769 'version': '',
770 })
771# ---
772