1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925
|
# serializer version: 1
# name: test_creating_issue
dict({
'comments': list([
]),
'created_at': datetime.datetime(2025, 2, 7, 10, 30, tzinfo=datetime.timezone.utc),
'created_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 12,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'id': 12,
'issue_type': <IssueType.VIDEO: 1>,
'media': dict({
'created_at': datetime.datetime(2024, 12, 29, 10, 4, 16, tzinfo=datetime.timezone.utc),
'id': 537,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.PROCESSING: 3>,
'tmdb_id': 1156593,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 29, 10, 4, 17, tzinfo=datetime.timezone.utc),
}),
'modified_by': None,
'problem_episode': 0,
'problem_season': 0,
'status': <IssueStatus.OPEN: 1>,
'updated_at': datetime.datetime(2025, 2, 7, 10, 30, tzinfo=datetime.timezone.utc),
})
# ---
# name: test_creating_request[args0-create_movie_request.json-json0]
dict({
'created_at': datetime.datetime(2025, 1, 3, 8, 22, 1, tzinfo=datetime.timezone.utc),
'id': 22,
'is4k': False,
'media': dict({
'created_at': datetime.datetime(2025, 1, 3, 8, 22, 1, tzinfo=datetime.timezone.utc),
'id': 543,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.PENDING: 2>,
'tmdb_id': 402431,
'tvdb_id': None,
'updated_at': datetime.datetime(2025, 1, 3, 8, 22, 1, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaa/avatar?c=aaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'aaaaaa',
'email': 'some@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 43972689,
'plex_username': 'aaaaaa',
'request_count': 15,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/aaaa/avatar?c=aaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'aaaaaa',
'email': 'some@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 43972689,
'plex_username': 'aaaaaa',
'request_count': 15,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'season_count': None,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2025, 1, 3, 8, 22, 1, tzinfo=datetime.timezone.utc),
})
# ---
# name: test_creating_request[args1-create_tv_request.json-json1]
dict({
'created_at': datetime.datetime(2024, 12, 26, 14, 37, 30, tzinfo=datetime.timezone.utc),
'id': 14,
'is4k': False,
'media': dict({
'created_at': datetime.datetime(2024, 12, 26, 14, 37, 30, tzinfo=datetime.timezone.utc),
'id': 535,
'imdb_id': None,
'media_type': <MediaType.TV: 'tv'>,
'status': <MediaStatus.PARTIALLY_AVAILABLE: 4>,
'tmdb_id': 249522,
'tvdb_id': 447806,
'updated_at': datetime.datetime(2024, 12, 26, 14, 45, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'season_count': 1,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2024, 12, 26, 14, 37, 30, tzinfo=datetime.timezone.utc),
})
# ---
# name: test_creating_request[args2-create_tv_request.json-json2]
dict({
'created_at': datetime.datetime(2024, 12, 26, 14, 37, 30, tzinfo=datetime.timezone.utc),
'id': 14,
'is4k': False,
'media': dict({
'created_at': datetime.datetime(2024, 12, 26, 14, 37, 30, tzinfo=datetime.timezone.utc),
'id': 535,
'imdb_id': None,
'media_type': <MediaType.TV: 'tv'>,
'status': <MediaStatus.PARTIALLY_AVAILABLE: 4>,
'tmdb_id': 249522,
'tvdb_id': 447806,
'updated_at': datetime.datetime(2024, 12, 26, 14, 45, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'season_count': 1,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2024, 12, 26, 14, 37, 30, tzinfo=datetime.timezone.utc),
})
# ---
# name: test_data_retrieval[issue_count]
dict({
'audio': 0,
'closed': 0,
'open': 0,
'others': 0,
'subtitles': 0,
'total': 0,
'video': 0,
})
# ---
# name: test_data_retrieval[request_count]
dict({
'approved': 11,
'available': 8,
'declined': 0,
'movie': 9,
'pending': 0,
'processing': 3,
'total': 11,
'tv': 2,
})
# ---
# name: test_data_retrieval[status]
dict({
'commits_behind': 0,
'restart_required': False,
'update_available': False,
'version': 'develop-local',
})
# ---
# name: test_data_retrieval[watchlist]
list([
dict({
'media_type': <MediaType.MOVIE: 'movie'>,
'rating_key': 'aaaa',
'title': 'Sonic the Hedgehog 3',
'tmdb_id': 939243,
}),
dict({
'media_type': <MediaType.MOVIE: 'movie'>,
'rating_key': 'bbbb',
'title': 'Superbad',
'tmdb_id': 8363,
}),
dict({
'media_type': <MediaType.TV: 'tv'>,
'rating_key': 'cccc',
'title': 'The Legend of Korra',
'tmdb_id': 33880,
}),
])
# ---
# name: test_data_retrieval[webhook_config]
dict({
'enabled': True,
'options': dict({
'json_payload': '''
{
"notification_type": "{{notification_type}}",
"event": "{{event}}",
"subject": "{{subject}}",
"message": "{{message}}",
"image": "{{image}}",
"{{media}}": {
"media_type": "{{media_type}}",
"tmdbId": "{{media_tmdbid}}",
"tvdbId": "{{media_tvdbid}}",
"status": "{{media_status}}",
"status4k": "{{media_status4k}}"
},
"{{request}}": {
"request_id": "{{request_id}}",
"requestedBy_email": "{{requestedBy_email}}",
"requestedBy_username": "{{requestedBy_username}}",
"requestedBy_avatar": "{{requestedBy_avatar}}",
"requestedBy_settings_discordId": "{{requestedBy_settings_discordId}}",
"requestedBy_settings_telegramChatId": "{{requestedBy_settings_telegramChatId}}"
},
"{{issue}}": {
"issue_id": "{{issue_id}}",
"issue_type": "{{issue_type}}",
"issue_status": "{{issue_status}}",
"reportedBy_email": "{{reportedBy_email}}",
"reportedBy_username": "{{reportedBy_username}}",
"reportedBy_avatar": "{{reportedBy_avatar}}",
"reportedBy_settings_discordId": "{{reportedBy_settings_discordId}}",
"reportedBy_settings_telegramChatId": "{{reportedBy_settings_telegramChatId}}"
},
"{{comment}}": {
"comment_message": "{{comment_message}}",
"commentedBy_email": "{{commentedBy_email}}",
"commentedBy_username": "{{commentedBy_username}}",
"commentedBy_avatar": "{{commentedBy_avatar}}",
"commentedBy_settings_discordId": "{{commentedBy_settings_discordId}}",
"commentedBy_settings_telegramChatId": "{{commentedBy_settings_telegramChatId}}"
},
"{{extra}}": []
}
''',
'webhook_url': 'https://test.test.nl',
}),
'types': <NotificationType.REQUEST_PENDING_APPROVAL|REQUEST_APPROVED|REQUEST_AVAILABLE|REQUEST_PROCESSING_FAILED|REQUEST_DECLINED|REQUEST_AUTOMATICALLY_APPROVED|ISSUE_REPORTED|ISSUE_COMMENTED|ISSUE_RESOLVED|ISSUE_REOPENED: 4062>,
})
# ---
# name: test_fetching_issues
list([
dict({
'comments': list([
]),
'created_at': datetime.datetime(2025, 2, 6, 15, 45, 19, tzinfo=datetime.timezone.utc),
'created_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'id': 11,
'issue_type': <IssueType.OTHER: 4>,
'media': dict({
'created_at': datetime.datetime(2024, 12, 29, 10, 4, 16, tzinfo=datetime.timezone.utc),
'id': 537,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.PROCESSING: 3>,
'tmdb_id': 1156593,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 29, 10, 4, 17, tzinfo=datetime.timezone.utc),
}),
'modified_by': None,
'problem_episode': 0,
'problem_season': 0,
'status': <IssueStatus.OPEN: 1>,
'updated_at': datetime.datetime(2025, 2, 6, 15, 45, 19, tzinfo=datetime.timezone.utc),
}),
dict({
'comments': list([
]),
'created_at': datetime.datetime(2025, 2, 6, 15, 45, 13, tzinfo=datetime.timezone.utc),
'created_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'id': 10,
'issue_type': <IssueType.SUBTITLE: 3>,
'media': dict({
'created_at': datetime.datetime(2024, 12, 29, 10, 4, 16, tzinfo=datetime.timezone.utc),
'id': 537,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.PROCESSING: 3>,
'tmdb_id': 1156593,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 29, 10, 4, 17, tzinfo=datetime.timezone.utc),
}),
'modified_by': None,
'problem_episode': 0,
'problem_season': 0,
'status': <IssueStatus.OPEN: 1>,
'updated_at': datetime.datetime(2025, 2, 6, 15, 45, 13, tzinfo=datetime.timezone.utc),
}),
dict({
'comments': list([
]),
'created_at': datetime.datetime(2025, 2, 6, 15, 45, 6, tzinfo=datetime.timezone.utc),
'created_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'id': 9,
'issue_type': <IssueType.AUDIO: 2>,
'media': dict({
'created_at': datetime.datetime(2024, 12, 29, 10, 4, 16, tzinfo=datetime.timezone.utc),
'id': 537,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.PROCESSING: 3>,
'tmdb_id': 1156593,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 29, 10, 4, 17, tzinfo=datetime.timezone.utc),
}),
'modified_by': None,
'problem_episode': 0,
'problem_season': 0,
'status': <IssueStatus.OPEN: 1>,
'updated_at': datetime.datetime(2025, 2, 6, 15, 45, 6, tzinfo=datetime.timezone.utc),
}),
dict({
'comments': list([
]),
'created_at': datetime.datetime(2025, 2, 6, 15, 44, 58, tzinfo=datetime.timezone.utc),
'created_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'id': 8,
'issue_type': <IssueType.VIDEO: 1>,
'media': dict({
'created_at': datetime.datetime(2024, 12, 29, 10, 4, 16, tzinfo=datetime.timezone.utc),
'id': 537,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.PROCESSING: 3>,
'tmdb_id': 1156593,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 29, 10, 4, 17, tzinfo=datetime.timezone.utc),
}),
'modified_by': None,
'problem_episode': 0,
'problem_season': 0,
'status': <IssueStatus.OPEN: 1>,
'updated_at': datetime.datetime(2025, 2, 6, 15, 44, 58, tzinfo=datetime.timezone.utc),
}),
])
# ---
# name: test_fetching_movie_details
dict({
'adult': False,
'budget': 0,
'genres': list([
dict({
'id': 10749,
'name': 'Romance',
}),
dict({
'id': 18,
'name': 'Drama',
}),
]),
'id': 1156593,
'imdb_id': 'tt28510079',
'keywords': list([
dict({
'id': 818,
'name': 'based on novel or book',
}),
dict({
'id': 9663,
'name': 'sequel',
}),
]),
'media_info': dict({
'created_at': datetime.datetime(2024, 12, 29, 10, 4, 16, tzinfo=datetime.timezone.utc),
'id': 537,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'requests': list([
dict({
'created_at': datetime.datetime(2024, 12, 29, 10, 4, 16, tzinfo=datetime.timezone.utc),
'id': 16,
'is4k': False,
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaaaa/avatar?c=aaaaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'me@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 43972689,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/aaaaaaa/avatar?c=aaaaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'me@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 43972689,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'season_count': 0,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2024, 12, 29, 10, 4, 16, tzinfo=datetime.timezone.utc),
}),
]),
'status': <MediaStatus.PROCESSING: 3>,
'tmdb_id': 1156593,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 29, 10, 4, 17, tzinfo=datetime.timezone.utc),
}),
'original_language': 'es',
'original_title': 'Culpa tuya',
'overview': "The love between Noah and Nick seems unwavering despite their parents' attempts to separate them. But his job and her entry into college open up their lives to new relationships that will shake the foundations of both their relationship and the Leister family itself.",
'popularity': 3958.479,
'release_date': datetime.date(2024, 12, 26),
'revenue': 0,
'runtime': 120,
'tagline': 'Divided by family. Driven by love.',
'title': 'Your Fault',
'vote_average': 7.7,
'vote_count': 190,
})
# ---
# name: test_fetching_requests
list([
dict({
'created_at': datetime.datetime(2024, 12, 29, 10, 4, 16, tzinfo=datetime.timezone.utc),
'id': 16,
'is4k': False,
'media': dict({
'created_at': datetime.datetime(2024, 12, 29, 10, 4, 16, tzinfo=datetime.timezone.utc),
'id': 537,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.PROCESSING: 3>,
'tmdb_id': 1156593,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 29, 10, 4, 17, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'season_count': 0,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2024, 12, 29, 10, 4, 16, tzinfo=datetime.timezone.utc),
}),
dict({
'created_at': datetime.datetime(2024, 12, 28, 14, 19, 34, tzinfo=datetime.timezone.utc),
'id': 15,
'is4k': False,
'media': dict({
'created_at': datetime.datetime(2024, 12, 28, 14, 19, 34, tzinfo=datetime.timezone.utc),
'id': 536,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.AVAILABLE: 5>,
'tmdb_id': 1010581,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 28, 14, 30, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'season_count': 0,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2024, 12, 28, 14, 19, 34, tzinfo=datetime.timezone.utc),
}),
dict({
'created_at': datetime.datetime(2024, 12, 26, 14, 37, 30, tzinfo=datetime.timezone.utc),
'id': 14,
'is4k': False,
'media': dict({
'created_at': datetime.datetime(2024, 12, 26, 14, 37, 30, tzinfo=datetime.timezone.utc),
'id': 535,
'imdb_id': None,
'media_type': <MediaType.TV: 'tv'>,
'status': <MediaStatus.PARTIALLY_AVAILABLE: 4>,
'tmdb_id': 249522,
'tvdb_id': 447806,
'updated_at': datetime.datetime(2024, 12, 26, 14, 45, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'season_count': 1,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2024, 12, 26, 14, 37, 30, tzinfo=datetime.timezone.utc),
}),
dict({
'created_at': datetime.datetime(2024, 12, 24, 21, 13, 40, tzinfo=datetime.timezone.utc),
'id': 13,
'is4k': False,
'media': dict({
'created_at': datetime.datetime(2024, 12, 24, 21, 13, 40, tzinfo=datetime.timezone.utc),
'id': 534,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.AVAILABLE: 5>,
'tmdb_id': 1290287,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 24, 21, 20, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'season_count': 0,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2024, 12, 24, 21, 13, 40, tzinfo=datetime.timezone.utc),
}),
dict({
'created_at': datetime.datetime(2024, 12, 17, 12, 11, 17, tzinfo=datetime.timezone.utc),
'id': 12,
'is4k': False,
'media': dict({
'created_at': datetime.datetime(2024, 12, 17, 12, 11, 17, tzinfo=datetime.timezone.utc),
'id': 533,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.AVAILABLE: 5>,
'tmdb_id': 10428,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 17, 12, 25, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'season_count': 0,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2024, 12, 17, 12, 11, 17, tzinfo=datetime.timezone.utc),
}),
dict({
'created_at': datetime.datetime(2024, 12, 16, 23, 59, 55, tzinfo=datetime.timezone.utc),
'id': 11,
'is4k': False,
'media': dict({
'created_at': datetime.datetime(2024, 12, 16, 23, 59, 55, tzinfo=datetime.timezone.utc),
'id': 532,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.AVAILABLE: 5>,
'tmdb_id': 562,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 17, 0, 5, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'season_count': 0,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 55, tzinfo=datetime.timezone.utc),
}),
dict({
'created_at': datetime.datetime(2024, 12, 16, 22, 58, 17, tzinfo=datetime.timezone.utc),
'id': 10,
'is4k': False,
'media': dict({
'created_at': datetime.datetime(2024, 12, 16, 22, 58, 17, tzinfo=datetime.timezone.utc),
'id': 531,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.AVAILABLE: 5>,
'tmdb_id': 845781,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 5, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'season_count': 0,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2024, 12, 16, 22, 58, 17, tzinfo=datetime.timezone.utc),
}),
dict({
'created_at': datetime.datetime(2024, 12, 16, 22, 38, 29, tzinfo=datetime.timezone.utc),
'id': 9,
'is4k': False,
'media': dict({
'created_at': datetime.datetime(2024, 12, 16, 21, 15, 14, tzinfo=datetime.timezone.utc),
'id': 439,
'imdb_id': None,
'media_type': <MediaType.TV: 'tv'>,
'status': <MediaStatus.PARTIALLY_AVAILABLE: 4>,
'tmdb_id': 94605,
'tvdb_id': 371028,
'updated_at': datetime.datetime(2024, 12, 16, 22, 45, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/aaaaaaaaa/avatar?c=aaaaaaaaa',
'created_at': datetime.datetime(2024, 12, 16, 22, 31, 8, tzinfo=datetime.timezone.utc),
'display_name': 'else',
'email': 'other@email.com',
'id': 3,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 123123,
'plex_username': 'else',
'request_count': 2,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 22, 31, 8, tzinfo=datetime.timezone.utc),
}),
'season_count': 1,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2024, 12, 16, 22, 39, 53, tzinfo=datetime.timezone.utc),
}),
dict({
'created_at': datetime.datetime(2024, 12, 16, 22, 37, 35, tzinfo=datetime.timezone.utc),
'id': 8,
'is4k': False,
'media': dict({
'created_at': datetime.datetime(2024, 12, 16, 22, 37, 35, tzinfo=datetime.timezone.utc),
'id': 530,
'imdb_id': None,
'media_type': <MediaType.TV: 'tv'>,
'status': <MediaStatus.AVAILABLE: 5>,
'tmdb_id': 69629,
'tvdb_id': 328552,
'updated_at': datetime.datetime(2024, 12, 16, 22, 55, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/aaaaaaaaa/avatar?c=aaaaaaaaa',
'created_at': datetime.datetime(2024, 12, 16, 22, 31, 8, tzinfo=datetime.timezone.utc),
'display_name': 'else',
'email': 'other@email.com',
'id': 3,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 123123,
'plex_username': 'else',
'request_count': 2,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 22, 31, 8, tzinfo=datetime.timezone.utc),
}),
'season_count': 2,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2024, 12, 16, 22, 41, 1, tzinfo=datetime.timezone.utc),
}),
dict({
'created_at': datetime.datetime(2024, 12, 16, 22, 7, 45, tzinfo=datetime.timezone.utc),
'id': 7,
'is4k': False,
'media': dict({
'created_at': datetime.datetime(2024, 12, 16, 22, 4, 7, tzinfo=datetime.timezone.utc),
'id': 529,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.AVAILABLE: 5>,
'tmdb_id': 884605,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 16, 22, 20, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/bvbbbbb/avatar?c=bbbbbb',
'created_at': datetime.datetime(2024, 12, 16, 22, 0, 12, tzinfo=datetime.timezone.utc),
'display_name': 'bbbbb',
'email': 'yes@gmail.com',
'id': 2,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 234234234234,
'plex_username': 'yestest',
'request_count': 1,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 22, 0, 12, tzinfo=datetime.timezone.utc),
}),
'season_count': 0,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2024, 12, 16, 22, 8, 5, tzinfo=datetime.timezone.utc),
}),
])
# ---
# name: test_fetching_single_issue
dict({
'comments': list([
]),
'created_at': datetime.datetime(2025, 2, 6, 15, 45, 19, tzinfo=datetime.timezone.utc),
'created_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'id': 11,
'issue_type': <IssueType.VIDEO: 1>,
'media': dict({
'created_at': datetime.datetime(2024, 12, 29, 10, 4, 16, tzinfo=datetime.timezone.utc),
'id': 537,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.PROCESSING: 3>,
'tmdb_id': 1156593,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 29, 10, 4, 17, tzinfo=datetime.timezone.utc),
}),
'modified_by': None,
'problem_episode': 0,
'problem_season': 0,
'status': <IssueStatus.OPEN: 1>,
'updated_at': datetime.datetime(2025, 2, 6, 15, 45, 19, tzinfo=datetime.timezone.utc),
})
# ---
# name: test_fetching_tv_details
dict({
'first_air_date': datetime.date(2024, 12, 19),
'genres': list([
dict({
'id': 10764,
'name': 'Reality',
}),
]),
'id': 249522,
'keywords': list([
dict({
'id': 271,
'name': 'competition',
}),
dict({
'id': 4325,
'name': 'game show',
}),
dict({
'id': 330122,
'name': 'mrbeast',
}),
]),
'languages': list([
'da',
'en',
]),
'last_air_date': datetime.date(2024, 12, 26),
'last_episode_to_air': dict({
'air_date': datetime.date(2024, 12, 26),
'episode_number': 3,
'id': 5802152,
'name': 'The Solitary Experiment',
'overview': 'What would happen if three best friends were trapped in a room, but only two could escape? Watch and see for yourself right now!',
'still_path': '/r6LRRaA2l2tMDttWbYl3dXdJUij.jpg',
}),
'media_info': dict({
'created_at': datetime.datetime(2024, 12, 26, 14, 37, 30, tzinfo=datetime.timezone.utc),
'id': 535,
'imdb_id': None,
'media_type': <MediaType.TV: 'tv'>,
'requests': list([
dict({
'created_at': datetime.datetime(2024, 12, 26, 14, 37, 30, tzinfo=datetime.timezone.utc),
'id': 14,
'is4k': False,
'modified_by': dict({
'avatar': 'https://plex.tv/users/123123/avatar?c=123123',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'me@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 123123,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'requested_by': dict({
'avatar': 'https://plex.tv/users/123123/avatar?c=123123',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'me@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 123123,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'season_count': 1,
'status': <RequestStatus.APPROVED: 2>,
'updated_at': datetime.datetime(2024, 12, 26, 14, 37, 30, tzinfo=datetime.timezone.utc),
}),
]),
'status': <MediaStatus.PARTIALLY_AVAILABLE: 4>,
'tmdb_id': 249522,
'tvdb_id': 447806,
'updated_at': datetime.datetime(2024, 12, 26, 14, 45, tzinfo=datetime.timezone.utc),
}),
'name': 'Beast Games',
'next_episode_to_air': dict({
'air_date': datetime.date(2025, 1, 2),
'episode_number': 4,
'id': 5802153,
'name': 'Episode 4',
'overview': '',
'still_path': 'None',
}),
'number_of_episodes': 10,
'number_of_seasons': 1,
'original_language': 'en',
'original_name': 'Beast Games',
'overview': "I gathered 1,000 people to fight for $5,000,000, the LARGEST cash prize in TV history! We're also giving away a private island, Lamborghinis, and millions more in cash throughout the competition! Go watch to see the greatest show ever made!",
'popularity': 769.189,
'seasons': list([
dict({
'air_date': datetime.date(2024, 12, 19),
'episode_count': 10,
'id': 384427,
'name': 'Season 1',
'overview': '',
'poster_path': '/3itZlypnOcVcqI5xxyO6nvJ52yM.jpg',
'season_number': 1,
}),
]),
'tagline': '1,000 players. 5 million dollars. 1 winner.',
})
# ---
# name: test_search[search_1.json]
list([
dict({
'adult': False,
'id': 605521,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Frosty',
'overview': '“I need to run because I love having that connection to nature,” says ultra-runner Anna Frost, who’s been racking up competitive wins for more than a decade. After being consumed with running for years, Frost takes on a new challenge. This film follows the endurance athlete from podium to motherhood.',
'popularity': 0.001,
'title': 'Frosty',
}),
dict({
'adult': False,
'id': 1290287,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': dict({
'created_at': datetime.datetime(2024, 12, 24, 21, 13, 40, tzinfo=datetime.timezone.utc),
'id': 534,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.AVAILABLE: 5>,
'tmdb_id': 1290287,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 24, 21, 20, tzinfo=datetime.timezone.utc),
}),
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Hot Frosty',
'overview': "When a young widow's magic scarf brings a dashing snowman to life, can he help her rediscover romance, laughter and holiday cheer before he melts away?",
'popularity': 87.462,
'title': 'Hot Frosty',
}),
dict({
'adult': False,
'id': 1828978,
'known_for': list([
dict({
'adult': False,
'id': 535,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Flashdance',
'overview': 'Alex Owens, a young woman juggling between two odd jobs, aspires to become a successful ballet dancer. Nick, who is her boss and lover, supports and encourages her to fulfil her dream.',
'popularity': 22.254,
'title': 'Flashdance',
}),
dict({
'adult': False,
'id': 67361,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'The Freshest Kids',
'overview': 'From the Boogie Down Bronx and beyond, the history of the b-boy.',
'popularity': 0.505,
'title': 'The Freshest Kids',
}),
]),
'mediaType': <ResultMediaType.PERSON: 'person'>,
'media_type': <ResultMediaType.PERSON: 'person'>,
'name': "Wayne 'Frosty Freeze' Frost",
'popularity': 0.611,
}),
dict({
'adult': False,
'id': 1414554,
'known_for': list([
dict({
'adult': False,
'id': 18785,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'The Hangover',
'overview': "When three friends finally come to after a raucous night of bachelor-party revelry, they find a baby in the closet and a tiger in the bathroom. But they can't seem to locate their best friend, Doug – who's supposed to be tying the knot. Launching a frantic search for Doug, the trio perseveres through a nasty hangover to try to make it to the church on time.",
'popularity': 90.836,
'title': 'The Hangover',
}),
dict({
'adult': False,
'id': 119450,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Dawn of the Planet of the Apes',
'overview': 'A group of scientists in San Francisco struggle to stay alive in the aftermath of a plague that is wiping out humanity, while Caesar tries to maintain dominance over his community of intelligent apes.',
'popularity': 61.855,
'title': 'Dawn of the Planet of the Apes',
}),
dict({
'adult': False,
'id': 58574,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Sherlock Holmes: A Game of Shadows',
'overview': 'There is a new criminal mastermind at large (Professor Moriarty) and not only is he Holmes’ intellectual equal, but his capacity for evil and lack of conscience may give him an advantage over the detective.',
'popularity': 34.481,
'title': 'Sherlock Holmes: A Game of Shadows',
}),
]),
'mediaType': <ResultMediaType.PERSON: 'person'>,
'media_type': <ResultMediaType.PERSON: 'person'>,
'name': 'Craig Frosty Silva',
'popularity': 0.43,
}),
dict({
'adult': False,
'id': 28042,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Frosty Returns',
'overview': "Mr. Twitchell, a greedy old businessman, has invented Summer Wheeze: a spray that instantly removes snow and slush! Now Holly has to keep Frosty from melting, and convince everybody that snow's actually a good thing.",
'popularity': 7.677,
'title': 'Frosty Returns',
}),
dict({
'adult': False,
'id': 1300131,
'known_for': list([
dict({
'adult': False,
'id': 967,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Spartacus',
'overview': 'The rebellious Thracian Spartacus, born and raised a slave, is sold to Gladiator trainer Batiatus. After weeks of being trained to kill for the arena, Spartacus turns on his owners and leads the other slaves in rebellion. As the rebels move from town to town, their numbers swell as escaped slaves join their ranks. Under the leadership of Spartacus, they make their way to southern Italy, where they will cross the sea and return to their homes.',
'popularity': 37.881,
'title': 'Spartacus',
}),
dict({
'adult': False,
'id': 18264,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'The Man from Laramie',
'overview': 'Will Lockhart arrives in Coronado, an isolated town in New Mexico, in search of someone who sells rifles to the Apache tribe, finding himself unwillingly drawn into the convoluted life of a local ranching family whose members seem to have a lot to hide.',
'popularity': 13.317,
'title': 'The Man from Laramie',
}),
dict({
'adult': False,
'id': 28484,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Colorado Territory',
'overview': 'After escaping from jail, outlaw Wes McQueen is convinced by his old partner in crime to do one last heist.',
'popularity': 5.99,
'title': 'Colorado Territory',
}),
]),
'mediaType': <ResultMediaType.PERSON: 'person'>,
'media_type': <ResultMediaType.PERSON: 'person'>,
'name': 'Frosty Royce',
'popularity': 0.355,
}),
dict({
'adult': False,
'id': 26539,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': "Frosty's Winter Wonderland",
'overview': 'Years have passed since Frosty left for the North Pole, but his promise is kept when he hears news of the first snowfall of the season, and decides to return.',
'popularity': 10.095,
'title': "Frosty's Winter Wonderland",
}),
dict({
'adult': False,
'id': 13675,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Frosty the Snowman',
'overview': 'A discarded silk top-hat becomes the focus of a struggle between a washed-up stage magician and a group of schoolchildren, after it magically brings a snowman to life. Realizing that newly-living Frosty will melt in spring unless he takes refuge in a colder climate, Frosty and Karen, a young girl who he befriends, stow away on a freight train headed for the north pole. Little do they know that the magician is following them, and he wants his hat back!',
'popularity': 20.297,
'title': 'Frosty the Snowman',
}),
dict({
'adult': False,
'id': 40246,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': "Rudolph and Frosty's Christmas in July",
'overview': 'Winterbolt is trying to make the North Pole his evil wonderland, and it is up to Frosty the Snowman, Rudolph the Red-Nosed Reindeer and others to stop him.',
'popularity': 6.946,
'title': "Rudolph and Frosty's Christmas in July",
}),
dict({
'adult': False,
'id': 1393660,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Hot Frosty 2024 - Afdah',
'overview': "Hot Frosty 2024 is a pleasant surprise among holiday romances. The film goes beyond what you would expect from a film in this genre, turning a potentially silly premise into a complex look at grief, love, and magical second chances. Lacey Chabert and Dustin Milligan's captivating chemistry, clever script, and true emotional depth turn a potentially forgotten idea into a memorable one. The film skillfully combines funny and touching moments to create a unique story that shows how complicated relationships can be. Unlike other holiday movies, it combines magic with a moving true story.",
'popularity': 0.537,
'title': 'Hot Frosty 2024 - Comedy, Romance, Fantasy',
}),
dict({
'adult': False,
'id': 5070012,
'known_for': list([
dict({
'adult': False,
'id': 1390475,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'All the Little Things',
'overview': 'An accomplished molecular biologist moves out of the lab in a quest to make an encyclopedia documenting all the fruit fly species in North America.',
'popularity': 2.353,
'title': 'All the Little Things',
}),
]),
'mediaType': <ResultMediaType.PERSON: 'person'>,
'media_type': <ResultMediaType.PERSON: 'person'>,
'name': 'Frosty/Misty',
'popularity': 0.001,
}),
dict({
'adult': False,
'id': 1357698,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'The Rudolph, Frosty & Friends Sing Along',
'overview': 'Ten Musical Yuletide treasures featuring the voices of Fred Astaire, Jimmy Durante and Burl Ives. Create A tuneful new family tradition with this festive, fun-to-follow sing along!',
'popularity': 1.55,
'title': 'The Rudolph, Frosty & Friends Sing Along',
}),
dict({
'adult': False,
'id': 953871,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'ru',
'original_title': 'А над Тунгуской морозный стелется туман...',
'overview': 'On the shore of the Podkamennaya Tunguska, in harsh northern conditions, the Kto people live, the keeper of a special way of life, traditions and rituals.',
'popularity': 0.005,
'title': 'And Over Tunguska Frosty Fog Spreads',
}),
dict({
'adult': False,
'id': 845524,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'lv',
'original_title': 'Sarmītes',
'overview': 'In the mid – 1960’s, Latvia was a part of the Soviet Union. People lived identical lives, listened to the same radio stations. Children wore the same boots and ate the same porridge every morning. Only their dreams and desires for something different set them apart from each other. For little Dace this is a moment, where stand still of childhood’s happiness turns into time for growing up. "A fulfilled expression of Beauty in the passage of Life." (Dmitry Rancev, "The Independent", Latvia) "Competent and Spartan…" (Jan Ingman, catalogue of "Stockholm IFF")',
'popularity': 0.426,
'title': 'Frosty Flowers',
}),
dict({
'adult': False,
'id': 433229,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Jadeh-haye Sard',
'overview': "Moosavi, a country schoolteacher, must undertake an arduous journey to fetch medicine for his village's sick. Accompanied by his student and a villager, he travels through a blizzard and is pursued by a pack of hungry wolves.",
'popularity': 0.001,
'title': 'Frosty Roads',
}),
dict({
'adult': False,
'id': 1002270,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'zh',
'original_title': '月落烏啼霜滿天',
'overview': "Loosely based on Maxim Gorky's The Lower Depths",
'popularity': 0.746,
'title': 'The Frosty Night',
}),
dict({
'adult': False,
'id': 441986,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'ru',
'original_title': 'Морозный узор',
'overview': 'How Morozik decorated a rainy day with sparkling snow.',
'popularity': 0.001,
'title': 'Frosty Pattern',
}),
])
# ---
# name: test_search[search_2.json]
list([
dict({
'first_air_date': datetime.date(2014, 7, 13),
'id': 47640,
'mediaType': <ResultMediaType.TV: 'tv'>,
'media_info': dict({
'created_at': datetime.datetime(2024, 12, 16, 21, 15, 21, tzinfo=datetime.timezone.utc),
'id': 503,
'imdb_id': None,
'media_type': <MediaType.TV: 'tv'>,
'status': <MediaStatus.PARTIALLY_AVAILABLE: 4>,
'tmdb_id': 47640,
'tvdb_id': 276564,
'updated_at': datetime.datetime(2024, 12, 16, 21, 15, 21, tzinfo=datetime.timezone.utc),
}),
'media_type': <ResultMediaType.TV: 'tv'>,
'name': 'The Strain',
'original_language': 'en',
'original_name': 'The Strain',
'overview': 'A high concept thriller that tells the story of Dr. Ephraim Goodweather, the head of the Center for Disease Control Canary Team in New York City. He and his team are called upon to investigate a mysterious viral outbreak with hallmarks of an ancient and evil strain of vampirism. As the strain spreads, Eph, his team, and an assembly of everyday New Yorkers, wage war for the fate of humanity itself.',
'popularity': 284.215,
}),
dict({
'first_air_date': datetime.date(2008, 5, 26),
'id': 19997,
'mediaType': <ResultMediaType.TV: 'tv'>,
'media_info': None,
'media_type': <ResultMediaType.TV: 'tv'>,
'name': 'The Andromeda Strain',
'original_language': 'en',
'original_name': 'The Andromeda Strain',
'overview': 'A U.S. satellite crash-lands near a small town in Utah, unleashing a deadly plague that kills virtually everyone except two survivors, who may provide clues to immunizing the population. As the military attempts to quarantine the area, a team of highly specialized scientists is assembled to find a cure and stop the spread of the alien pathogen, code-named Andromeda.',
'popularity': 38.794,
}),
dict({
'first_air_date': datetime.date(2014, 7, 13),
'id': 272184,
'mediaType': <ResultMediaType.TV: 'tv'>,
'media_info': None,
'media_type': <ResultMediaType.TV: 'tv'>,
'name': 'The Strain',
'original_language': 'es',
'original_name': 'The Strain',
'overview': '',
'popularity': 0.006,
}),
dict({
'adult': False,
'id': 10514,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'The Andromeda Strain',
'overview': "When virtually all of the residents of Piedmont, New Mexico, are found dead after the return to Earth of a space satellite, the head of the US Air Force's Project Scoop declares an emergency. A group of eminent scientists led by Dr. Jeremy Stone scramble to a secure laboratory and try to first isolate the life form while determining why two people from Piedmont - an old alcoholic and a six-month-old baby - survived. The scientists methodically study the alien life form unaware that it has already mutated and presents a far greater danger in the lab, which is equipped with a nuclear self-destruct device designed to prevent the escape of dangerous biological agents.",
'popularity': 16.612,
'title': 'The Andromeda Strain',
}),
dict({
'adult': False,
'id': 962613,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Terra Incognita: Making the Andromeda Strain',
'overview': 'A behind the scenes look at the background and making of the 2008 TV mini-series',
'popularity': 2.258,
'title': 'Terra Incognita: Making the Andromeda Strain',
}),
dict({
'adult': False,
'id': 73101,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'fr',
'original_title': 'The Killing Strain',
'overview': "A man-made virus, 'The Killing Strain'-- an out-of-control swine flu-- turns infected humans into raging monsters. As it rapidly spreads, a group of uninfected survivors must make life-or-death decisions before the U.S. military firebombs the area in a desperate attempt contain the contagion. The survivors are unaware that the virus has already reached their group-- by infecting one of them-- and now the merciless metamorphic process has begun.",
'popularity': 1.021,
'title': 'The Killing Strain',
}),
dict({
'adult': False,
'id': 1074431,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'The Andromeda Strain: Making the Film',
'overview': 'The making of "The Andromeda Strain".',
'popularity': 0.979,
'title': 'The Andromeda Strain: Making the Film',
}),
dict({
'adult': False,
'id': 291952,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'The Racing Strain',
'overview': 'Lucille Cameron, the spirited daughter of a Kentucky colonel, discovers that her father is nearly bankrupt as a result of his dealings with New York horseman and stock promoter Jim De Luce....',
'popularity': 0.158,
'title': 'The Racing Strain',
}),
dict({
'adult': False,
'id': 982014,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'The Wild Strain',
'overview': "Although the prominent Hollywood family prides itself on its illustrious family tree, young Winifred Hollywood exhibits a fondness for wild adventures that greatly disturbs her parents. When Winifred becomes engaged to bank official Harold Burton, his equally snobbish parents visit the Hollywood home and are shocked by the young woman's spirited outbursts and mischievous tricks, and the engagement is broken after she decides to perform bareback feats with a traveling circus.",
'popularity': 0.179,
'title': 'The Wild Strain',
}),
dict({
'adult': False,
'id': 159423,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'The Racing Strain',
'overview': 'A race-car driver whose career is on the skids because of his drinking falls for a rich society girl. That motivates him to clean up his act and resume his career, but it may be too late for that.',
'popularity': 1.441,
'title': 'The Racing Strain',
}),
dict({
'adult': False,
'id': 622790,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'The Golden Strain',
'overview': "Lt. Milt Mulford graduates from West Point and is assigned to a cavalry outpost in the West, near an Apache reservation. One day the Apaches, tired of being cheated by a crooked Indian agent, break the reservation and Mulford is sent after them with a patrol. Unfortunately, he cracks under the pressure of his first firefight, and is thrown out of the army. His fiancé, disgusted, ends their engagement. He sets out to prove that he is not a coward and regain his fiancé's love.",
'popularity': 0.564,
'title': 'The Golden Strain',
}),
dict({
'adult': False,
'id': 1040917,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'sh',
'original_title': 'Plemeniti soj',
'overview': 'Short animated film.',
'popularity': 0.238,
'title': 'The Noble Strain',
}),
dict({
'adult': False,
'id': 223061,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'The Missouri Strain',
'overview': 'A family threatened by a nationwide biological apocalypse flees everyday city life to survive.',
'popularity': 0.298,
'title': 'The Missouri Strain',
}),
dict({
'adult': False,
'id': 243291,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'The Winning Strain',
'overview': 'A 1966 short documentary showing athletes in action at the 1966 National Amateur Athletic Union track carnival in New York. The film was nominated for an Oscar for Best Live Action Short Film.',
'popularity': 0.347,
'title': 'The Winning Strain',
}),
dict({
'adult': False,
'id': 526388,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'The Warrior Strain',
'overview': "An Earl's cadet son stops a German baron from planting wireless-controlled signals at Brighton.",
'popularity': 0.442,
'title': 'The Warrior Strain',
}),
dict({
'adult': False,
'id': 938337,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'The Iron Strain',
'overview': 'The story is set in Alaska, where spoiled and pampered heiress Octavia Van Ness has come for her health. Here she meets \'Chuck\' Hemingway, who despite his rough exterior is likewise a child of wealth, and a Yale graduate to boot. When Van Ness violently rejects his romantic overtures, Hemingway turns to an old Indian chum for advice. The Indian suggests rather chauvinistically that the way to win a headstrong girl is to "tame" her -- that is, treat \'er rough and make \'er like it.',
'popularity': 0.442,
'title': 'The Iron Strain',
}),
dict({
'adult': False,
'id': 80116,
'known_for': list([
dict({
'adult': False,
'id': 67395,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'L.E.T.H.A.L. Ladies: Return to Savage Beach',
'overview': "A stolen computer disk contains the location of a hidden tresaure trove. It's up to the sexy ladies of LETHAL (Legion to Ensure Total Harmony and Law) to find the treasure before the bad guys do.",
'popularity': 34.91,
'title': 'L.E.T.H.A.L. Ladies: Return to Savage Beach',
}),
dict({
'adult': False,
'id': 16225,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Heavy Metal 2000',
'overview': "Upon discovery of a shard of what could be the Loc-Nar, a miner named Tyler becomes possessed with an insatiable hunger for power and a thirst for immortality. On his way to the planet of youth, Tyler wipes out most of a space colony and kidnaps a beautiful young woman. His only mistake is that he doesn't kill her sister, Julie, who then sets out on a mission of rescue and revenge.",
'popularity': 12.815,
'title': 'Heavy Metal 2000',
}),
dict({
'adult': False,
'id': 9594,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Double Impact',
'overview': 'Jean Claude Van Damme plays a dual role as Alex and Chad, twins separated at the death of their parents. Chad is raised by a family retainer in Paris, Alex becomes a petty crook in Hong Kong. Seeing a picture of Alex, Chad rejoins him and convinces him that his rival in Hong Kong is also the man who killed their parents. Alex is suspicious of Chad, especially when it comes to his girlfriend.',
'popularity': 33.319,
'title': 'Double Impact',
}),
]),
'mediaType': <ResultMediaType.PERSON: 'person'>,
'media_type': <ResultMediaType.PERSON: 'person'>,
'name': 'Julie Strain',
'popularity': 14.373,
}),
dict({
'adult': False,
'id': 216141,
'mediaType': <ResultMediaType.MOVIE: 'movie'>,
'media_info': None,
'media_type': <ResultMediaType.MOVIE: 'movie'>,
'original_language': 'en',
'original_title': 'Doctor Strain the Body Snatcher',
'overview': 'Positively torturous, undecipherable shambles of a horror film concerns the titular doctor and his nephew as they incautiously revive corpses in their basement laboratory.',
'popularity': 0.479,
'title': 'Doctor Strain the Body Snatcher',
}),
dict({
'first_air_date': datetime.date(1995, 11, 10),
'id': 69019,
'mediaType': <ResultMediaType.TV: 'tv'>,
'media_info': None,
'media_type': <ResultMediaType.TV: 'tv'>,
'name': 'Strain of Blood',
'original_language': 'th',
'original_name': 'สายโลหิต',
'overview': "Krai comes from a family of soldiers and has spent most of his life fighting in battles and wars for his country. Dao is the youngest daughter of a prominent village chief, who is very curious and happy go lucky as a youngster. Krai's older brother marries Dao's older sister, sealing the connection between both families. Krai meets Dao as a young girl and he spends a lot of time taking care of her, buying her toys and taking her on village outings with him to the market. Krai and his older brother are called away to defend the border and he promises Dao that he will return to take care of her always as an older brother. Years later, Krai comes back to realize that Dao has grown into a young beautiful maiden and the good feelings that both had for each other from years ago resurface into true love.",
'popularity': 10.02,
}),
dict({
'first_air_date': datetime.date(2006, 11, 1),
'id': 31715,
'mediaType': <ResultMediaType.TV: 'tv'>,
'media_info': None,
'media_type': <ResultMediaType.TV: 'tv'>,
'name': 'Strain: Strategic Armored Infantry',
'original_language': 'ja',
'original_name': '奏光のストレイン',
'overview': 'In the distant future, mankind is divided into two factions: Union and Deague. They have waged a war against each other for so long that no one remembers when it first began.Sara Werec, the daughter of a respectable family, is a 16-year old girl who attends a Space Academy where she is training to become a pilot. Her brother, Ralph Werec, had been sent to the frontline to accomplish a special mission when she was 11 years old. The two of them had lost their parents when they were young and the bond between the two is very close. It is Sara’s dearest wish to be reunited with her brother. To do that, she must travel to the battlefield where he is.One day, Sara’s planet is suddenly assaulted by Deague forces. To her surprise, her brother, Ralph, turns out to be one of the raiders who successfully kidnap a mysterious girl sleeping in a capsule.',
'popularity': 12.867,
}),
])
# ---
# name: test_updating_issue_status
dict({
'comments': list([
dict({
'created_at': datetime.datetime(2025, 2, 7, 11, 0, tzinfo=datetime.timezone.utc),
'id': 1,
'message': 'Issue has been resolved',
'user': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
}),
]),
'created_at': datetime.datetime(2025, 2, 6, 15, 45, 19, tzinfo=datetime.timezone.utc),
'created_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'id': 11,
'issue_type': <IssueType.VIDEO: 1>,
'media': dict({
'created_at': datetime.datetime(2024, 12, 29, 10, 4, 16, tzinfo=datetime.timezone.utc),
'id': 537,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.PROCESSING: 3>,
'tmdb_id': 1156593,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 29, 10, 4, 17, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'problem_episode': 0,
'problem_season': 0,
'status': <IssueStatus.RESOLVED: 2>,
'updated_at': datetime.datetime(2025, 2, 7, 11, 0, tzinfo=datetime.timezone.utc),
})
# ---
# name: test_updating_issue_with_comment
dict({
'comments': list([
dict({
'created_at': datetime.datetime(2025, 2, 7, 11, 0, tzinfo=datetime.timezone.utc),
'id': 1,
'message': 'Issue has been resolved',
'user': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
}),
]),
'created_at': datetime.datetime(2025, 2, 6, 15, 45, 19, tzinfo=datetime.timezone.utc),
'created_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'id': 11,
'issue_type': <IssueType.VIDEO: 1>,
'media': dict({
'created_at': datetime.datetime(2024, 12, 29, 10, 4, 16, tzinfo=datetime.timezone.utc),
'id': 537,
'imdb_id': None,
'media_type': <MediaType.MOVIE: 'movie'>,
'status': <MediaStatus.PROCESSING: 3>,
'tmdb_id': 1156593,
'tvdb_id': None,
'updated_at': datetime.datetime(2024, 12, 29, 10, 4, 17, tzinfo=datetime.timezone.utc),
}),
'modified_by': dict({
'avatar': 'https://plex.tv/users/aaaaa/avatar?c=aaaaa',
'created_at': datetime.datetime(2024, 12, 16, 21, 13, 58, tzinfo=datetime.timezone.utc),
'display_name': 'somebody',
'email': 'one@email.com',
'id': 1,
'movie_quota_days': None,
'movie_quota_limit': None,
'plex_id': 321321321,
'plex_username': 'somebody',
'request_count': 11,
'tv_quota_days': None,
'tv_quota_limit': None,
'updated_at': datetime.datetime(2024, 12, 16, 23, 59, 3, tzinfo=datetime.timezone.utc),
}),
'problem_episode': 0,
'problem_season': 0,
'status': <IssueStatus.RESOLVED: 2>,
'updated_at': datetime.datetime(2025, 2, 7, 11, 0, tzinfo=datetime.timezone.utc),
})
# ---
|