Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
421 commits
Select commit Hold shift + click to select a range
ce0e6f9
Add test for predefined Plex episode multi-sort
JonnyWong16 May 15, 2021
3d20f30
Add additional manual sorts and fields
JonnyWong16 May 16, 2021
41997d1
Update tests for addition library search sorting
JonnyWong16 May 16, 2021
d6cd71c
Add lastRatedAt to Audio and Video
JonnyWong16 May 16, 2021
85e58fe
Update tests for lastRatedAt
JonnyWong16 May 16, 2021
28f0585
Update doc string for track originalTitle
JonnyWong16 May 16, 2021
7146587
Add additional filter fields per media type
JonnyWong16 May 16, 2021
814efb1
Fix matching field when validating filter field
JonnyWong16 May 16, 2021
1b8e476
Replace single quotes in library tests
JonnyWong16 May 16, 2021
89e6d2d
Fix matching sort key
JonnyWong16 May 16, 2021
900dd3e
Add support for advanced search filters
JonnyWong16 May 16, 2021
7b87574
Update search doc strings fro advanced filters
JonnyWong16 May 16, 2021
4c9aa37
Update tests for advanced search filters
JonnyWong16 May 16, 2021
f061307
Bump sphinx-rtd-theme from 0.5.1 to 0.5.2
dependabot[bot] May 17, 2021
b9a9abb
Add manual collection sorts and fields
JonnyWong16 May 21, 2021
4c75e09
Add test for collection search
JonnyWong16 May 21, 2021
95877dd
Add methods to claim and unclaim a server
JonnyWong16 May 22, 2021
2ef3f59
Add test for claiming and unclaiming server
JonnyWong16 May 22, 2021
893a992
Merge pull request #739 from Alindil/patch-2
JonnyWong16 May 24, 2021
8c2b3ce
Merge pull request #741 from JonnyWong16/feature/tag_items
JonnyWong16 May 24, 2021
c4522d9
Merge pull request #746 from JonnyWong16/feature/properties
JonnyWong16 May 24, 2021
0f68023
Merge pull request #749 from JonnyWong16/feature/switch_user
JonnyWong16 May 24, 2021
a9597a9
Merge remote-tracking branch 'upstream/master' into feature/plex_tv
JonnyWong16 May 24, 2021
9f53c8f
Merge pull request #742 from JonnyWong16/feature/plex_tv
JonnyWong16 May 24, 2021
c76b2d4
Merge remote-tracking branch 'upstream/master' into feature/multi_sort
JonnyWong16 May 24, 2021
44d0a13
Typo in bootstrap test server
JonnyWong16 May 24, 2021
598a665
Fix rating search test
JonnyWong16 May 24, 2021
badec47
Merge pull request #750 from JonnyWong16/feature/multi_sort
JonnyWong16 May 24, 2021
ada326b
Add recently added methods for each libtype
JonnyWong16 May 16, 2021
caafd14
Update tests for library section recently added
JonnyWong16 May 16, 2021
005cbb5
Merge pull request #751 from JonnyWong16/feature/recently_added_episodes
JonnyWong16 May 24, 2021
c0b6efc
Merge branch 'master' into reviews_extras
blacktwin May 24, 2021
3fc69a3
Refactor usage of findItems
JonnyWong16 May 25, 2021
f81456d
Refactor usage of listAttrs
JonnyWong16 May 25, 2021
6726a64
Fix settings.Preferences doc string TAG
JonnyWong16 May 25, 2021
0095e83
Cleanup utils imports
JonnyWong16 May 27, 2021
0c8e5f9
Extra atrributes update cast int
blacktwin May 27, 2021
aa0596d
SETTINGS url string substitution update %s instead of .format()
blacktwin May 27, 2021
4f6634d
Review attribute ordering
blacktwin May 27, 2021
76719d9
onlineMediaSources clean up
blacktwin May 27, 2021
277f2ea
onlineMediaSources further clean up
blacktwin May 27, 2021
226b983
MyPlex.settings slight clean up and property
blacktwin May 27, 2021
49732cf
Extra.addedAt docstring update.
blacktwin May 27, 2021
9f5f2b7
MediaContainer attribute ordering
blacktwin May 28, 2021
9982b8e
MediaContainer docstring
blacktwin May 28, 2021
70ad8ba
updateOptOut docstring
blacktwin May 28, 2021
44b4066
Clip.section docstring update
blacktwin May 28, 2021
a131482
Update creating smart playlist using search filters
JonnyWong16 May 28, 2021
be2293a
Update playlist attributes for smart playlists
JonnyWong16 May 27, 2021
3edec52
Update playlist add, remove, move, and edit methods
JonnyWong16 May 27, 2021
4c9964d
Add method to retrieve playlist section
JonnyWong16 May 27, 2021
2af15e2
Add method to update smart playlist filters
JonnyWong16 May 27, 2021
82e7179
Update playlist tests
JonnyWong16 May 27, 2021
00be05f
Add doc strings to playlist properties
JonnyWong16 May 28, 2021
a1861c5
Add retrieving server playlists by type
JonnyWong16 May 27, 2021
b934228
Update tests for retrieving playlists by type
JonnyWong16 May 27, 2021
7d90fd6
Add library alias to create playlist
JonnyWong16 May 28, 2021
8397ab2
Add test for library create playlist
JonnyWong16 May 28, 2021
0ed9240
Reorganize playlist dunder methods
JonnyWong16 May 28, 2021
a435a5a
Add limit to search filter
JonnyWong16 May 28, 2021
94fb978
Add limit to the playlist uri instead of query param
JonnyWong16 May 28, 2021
65db8c3
Add library search limit test
JonnyWong16 May 28, 2021
ef136a8
Add create Collection class methods
JonnyWong16 May 28, 2021
95c1be2
Add PlexServer.createCollection() method
JonnyWong16 May 28, 2021
0512e9f
Add collection modification methods
JonnyWong16 May 28, 2021
2cd29f4
Add method to get a collection or playlist by title in a library
JonnyWong16 May 28, 2021
8cb2ea2
Update library collections and playlists tests
JonnyWong16 May 28, 2021
b19b469
Update pytest fixtures
JonnyWong16 May 28, 2021
04c2595
Fix collection and playlist edit for blank values
JonnyWong16 May 29, 2021
ccc6091
Fix collection length
JonnyWong16 May 29, 2021
40e4413
Update collection tests
JonnyWong16 May 29, 2021
99ca6a5
Add collection sync
JonnyWong16 May 29, 2021
56abe38
Add collection sync test
JonnyWong16 May 29, 2021
06da110
Clean up doc strings
JonnyWong16 May 30, 2021
6f2ef5c
Fix collections and playlists tests
JonnyWong16 May 30, 2021
c84215d
Move _uriRoot() to PlexServer
JonnyWong16 May 30, 2021
b2ecd2b
Add AdvancedSettingsMixin to Collection
JonnyWong16 May 30, 2021
7800e89
Add Playlist attrs test
JonnyWong16 May 30, 2021
4458977
Improve test coverage
JonnyWong16 May 30, 2021
6e92be6
Merge pull request #745 from JonnyWong16/bugfix/to_datetime
Hellowlol May 30, 2021
06ff741
Add rating mixin
JonnyWong16 May 30, 2021
6e58f7f
Refactor lastRatedAt userRating attributes
JonnyWong16 May 30, 2021
bd8cdb1
Update tests for ratings mixin
JonnyWong16 May 30, 2021
b269140
Fix rating mixin tests
JonnyWong16 May 30, 2021
70bbfa3
Allow overwriting attributes with None when manually reloading
JonnyWong16 May 30, 2021
d48e1fe
Fix bootstrap server show section progress
JonnyWong16 May 31, 2021
dbd39ab
pytest mark xfail show mixins image test
JonnyWong16 May 31, 2021
ca97c60
replace eval with json.loads
blacktwin May 31, 2021
5013028
SETTINGS url change and OPTOUT url creation
blacktwin May 31, 2021
4a4a945
Move section method from Clip to Extra
blacktwin May 31, 2021
056b5cf
flag onlineMediaSources required to be authenticated
blacktwin May 31, 2021
4d12cc9
Move reload to private method to hide the autoReload parameter
JonnyWong16 Jun 2, 2021
38114b6
Check item exists in playlist before removing or moving
JonnyWong16 Jun 2, 2021
c31c531
Update playlist tests for NotFound when removing or moving items
JonnyWong16 Jun 2, 2021
eafdcca
Merge pull request #758 from JonnyWong16/feature/claim_server
JonnyWong16 Jun 6, 2021
ab7ed6d
Merge pull request #763 from JonnyWong16/feature/smart_playlists_coll…
JonnyWong16 Jun 6, 2021
e965ebb
Merge remote-tracking branch 'upstream/master' into feature/rating_mixin
JonnyWong16 Jun 6, 2021
1321515
Explicit check for parent is not None
JonnyWong16 Jun 6, 2021
f39d9b7
Merge remote-tracking branch 'upstream/master' into bugfix/fix_tests
JonnyWong16 Jun 6, 2021
79fc578
Fix createPlaylist and createCollection in sync tests
JonnyWong16 Jun 6, 2021
fb0b551
Merge pull request #766 from JonnyWong16/bugfix/fix_tests
JonnyWong16 Jun 6, 2021
f90698f
Merge pull request #764 from JonnyWong16/feature/rating_mixin
JonnyWong16 Jun 6, 2021
a88cedb
Merge remote-tracking branch 'upstream/master' into feature/auto_reload
JonnyWong16 Jun 6, 2021
2a51437
Update tests to use reload
JonnyWong16 Jun 6, 2021
fab55e1
Merge branch 'master' into reviews_extras
JonnyWong16 Jun 6, 2021
7e8c93d
Merge remote-tracking branch 'upstream/master' into bugfix/cleanup_fi…
JonnyWong16 Jun 6, 2021
6448837
Fix return typo in doc strings
JonnyWong16 Jun 6, 2021
90c1e46
Merge pull request #760 from JonnyWong16/bugfix/cleanup_findItems
JonnyWong16 Jun 6, 2021
8f2ad95
Merge branch 'master' into reviews_extras
JonnyWong16 Jun 6, 2021
6f44933
Clean up Extra object
JonnyWong16 Jun 6, 2021
1d03116
Cleanup movie reviews and extras
JonnyWong16 Jun 6, 2021
f8c7fef
Cleanup Account onlineMediaSources OptOut methods
JonnyWong16 Jun 6, 2021
4d60101
Remove Account settings
JonnyWong16 Jun 6, 2021
aaa9020
Update account onlineMediaSources optOut test
JonnyWong16 Jun 7, 2021
0626334
Add tests for movie augmentation, reviews, and extras
JonnyWong16 Jun 7, 2021
7ddf47c
Add doc string for Review object
JonnyWong16 Jun 7, 2021
6405d22
Mark movies extras test only available for Plex Pass
JonnyWong16 Jun 7, 2021
67b3fc6
Allow clips and extras to be streamed and downloaded
JonnyWong16 Jun 7, 2021
b2f018b
Merge pull request #530 from pkkid/reviews_extras
JonnyWong16 Jun 7, 2021
8ef3d0a
Merge branch 'master' into feature/auto_reload
JonnyWong16 Jun 7, 2021
c136c59
Mark online media sources tests with xfail
JonnyWong16 Jun 7, 2021
7da32a7
Merge pull request #771 from pkkid/reviews_extras
JonnyWong16 Jun 7, 2021
b943bc6
Merge pull request #765 from JonnyWong16/feature/auto_reload
JonnyWong16 Jun 7, 2021
5e9258c
Merge pull request #736 from pkkid/dependabot/pip/pytest-6.2.4
JonnyWong16 Jun 7, 2021
b2698c1
Merge pull request #740 from pkkid/dependabot/pip/pytest-mock-lt-3.6.2
JonnyWong16 Jun 7, 2021
1367866
Merge pull request #743 from pkkid/dependabot/pip/flake8-3.9.2
JonnyWong16 Jun 7, 2021
6378861
Bump pillow from 8.1.2 to 8.2.0
dependabot[bot] Jun 7, 2021
a5e3391
Merge pull request #753 from pkkid/dependabot/pip/pillow-8.2.0
JonnyWong16 Jun 7, 2021
a18ef92
Bump coveralls from 3.0.1 to 3.1.0
dependabot[bot] Jun 7, 2021
5c9d216
Merge pull request #754 from pkkid/dependabot/pip/sphinx-rtd-theme-0.5.2
JonnyWong16 Jun 7, 2021
adcf115
Bump sphinx from 3.5.4 to 4.0.2
dependabot[bot] Jun 7, 2021
1acdecf
Merge pull request #757 from pkkid/dependabot/pip/sphinx-4.0.2
JonnyWong16 Jun 7, 2021
94fbffe
Bump websocket-client from 0.58.0 to 1.0.1
dependabot[bot] Jun 7, 2021
f7b19f7
Merge pull request #759 from pkkid/dependabot/pip/websocket-client-1.0.1
JonnyWong16 Jun 7, 2021
f48b1d4
Bump tqdm from 4.59.0 to 4.61.0
dependabot[bot] Jun 7, 2021
e93f693
Merge pull request #761 from pkkid/dependabot/pip/tqdm-4.61.0
JonnyWong16 Jun 7, 2021
2935bce
Bump requests-mock from 1.9.1 to 1.9.3
dependabot[bot] Jun 7, 2021
282fc24
Merge pull request #762 from pkkid/dependabot/pip/requests-mock-1.9.3
JonnyWong16 Jun 7, 2021
5d63111
Bump pytest-cov from 2.11.1 to 2.12.1
dependabot[bot] Jun 7, 2021
d41b473
Merge pull request #768 from pkkid/dependabot/pip/pytest-cov-2.12.1
JonnyWong16 Jun 7, 2021
29fb832
Merge pull request #772 from pkkid/dependabot/pip/coveralls-3.1.0
JonnyWong16 Jun 7, 2021
754698b
Bump to 4.6.0
JonnyWong16 Jun 7, 2021
44373e2
Add venv to .gitignore
JonnyWong16 Jun 7, 2021
90a1cff
Fix return value when using USER_DONT_RELOAD_FOR_KEYS
JonnyWong16 Jun 7, 2021
a353df1
Fix keyword arguments for playlist copyToUser
JonnyWong16 Jun 7, 2021
7678e0c
add iter on a specific root tag in listAttrs
blacktwin Jun 14, 2021
54ce61b
use rtag for roles and entitlements
blacktwin Jun 14, 2021
cfefbaf
Remove manual random sort
JonnyWong16 Jun 14, 2021
a2bfc9e
Remove manual artist last played field
JonnyWong16 Jun 14, 2021
c111150
Remove manual random sort test
JonnyWong16 Jun 14, 2021
0f854b0
Merge pull request #773 from JonnyWong16/bugfix/auto_reload
JonnyWong16 Jun 16, 2021
ca06ca6
Merge pull request #775 from JonnyWong16/bugfix/playlists
JonnyWong16 Jun 16, 2021
624c3f8
Merge pull request #778 from pkkid/account_roles
JonnyWong16 Jun 16, 2021
4bd550c
Bump to 4.6.1
JonnyWong16 Jun 16, 2021
176aa36
Allow blank sort direction
JonnyWong16 Jun 18, 2021
a5dfbe6
Add manual viewUpdatedAt sort field for photos
JonnyWong16 Jun 18, 2021
2562334
Add reverseSearchType util
JonnyWong16 Jun 18, 2021
0b81f08
Add SmartFilterMixin
JonnyWong16 Jun 18, 2021
dd0e378
Add SmartFilterMixin to collections and playlists
JonnyWong16 Jun 18, 2021
e51d825
Add tests for smart collection/playlist filters
JonnyWong16 Jun 18, 2021
91cb388
Don't format sort direction if not present
JonnyWong16 Jun 18, 2021
663402e
Update tests
JonnyWong16 Jun 18, 2021
b7e8b37
Add method to move items in a collection
JonnyWong16 Jun 30, 2021
ca0eb30
Update collection tests for moving items
JonnyWong16 Jun 30, 2021
293207e
Add ability to use FilterChoice objects for library search tags
JonnyWong16 Jul 5, 2021
be1b6eb
Add ability to use FilteringSort objects for library search sort
JonnyWong16 Jul 5, 2021
f7980e4
Update library search tests for FilterChoice and FilteringSort objects
JonnyWong16 Jul 5, 2021
40c2271
Fix updateProgress and updateTimeline tests milliseconds
JonnyWong16 Jul 5, 2021
b192e5e
Reset collection sort after move test to avoid corrupted XML
JonnyWong16 Jul 5, 2021
b4314c1
Add back custom sort to collection sort test authenticated only
JonnyWong16 Jul 5, 2021
cfbf6f5
Merge pull request #780 from JonnyWong16/bugfix/new_filters
JonnyWong16 Jul 16, 2021
82fa178
Merge pull request #781 from JonnyWong16/feature/parse_smart_filter
JonnyWong16 Jul 16, 2021
31de29d
Merge pull request #783 from JonnyWong16/feature/custom_collection_order
JonnyWong16 Jul 16, 2021
456a8a5
Merge pull request #788 from JonnyWong16/feature/search_objects
JonnyWong16 Jul 16, 2021
88038a9
Set default sync subtitleSize
JonnyWong16 Jul 16, 2021
753a67f
Remove Content-type header from sync
JonnyWong16 Jul 16, 2021
9cc7109
Merge pull request #798 from JonnyWong16/bugfix/sync_header
JonnyWong16 Jul 16, 2021
9a2673f
Bump websocket-client from 1.0.1 to 1.1.0 (#777)
dependabot[bot] Jul 26, 2021
1817bfc
Bump pillow from 8.2.0 to 8.3.1 (#791)
dependabot[bot] Jul 26, 2021
d5cdbb9
Bump tqdm from 4.61.0 to 4.61.2 (#790)
dependabot[bot] Jul 26, 2021
b8b0402
Bump coveralls from 3.1.0 to 3.2.0 (#801)
dependabot[bot] Jul 27, 2021
d84da70
Bump sphinx from 4.0.2 to 4.1.2 (#802)
dependabot[bot] Jul 27, 2021
05f625f
Add GitHub Actions to Dependabot (#792)
JonnyWong16 Jul 27, 2021
2c540f6
Add producers, roles, and hasCommercialMarker to Episode objects (#797)
JonnyWong16 Jul 27, 2021
3b1dce7
Decouple resource address sorting from connection attempts (#800)
jjlawren Jul 27, 2021
6cacc4a
Add playlist title search and sorting (#782)
JonnyWong16 Jul 27, 2021
42260aa
Add libtype argument for creating smart playlists (#799)
JonnyWong16 Jul 27, 2021
6b4cf30
Bump requests from 2.25.1 to 2.26.0 (#795)
dependabot[bot] Jul 27, 2021
f89b086
Deprecate Python 3.5 (#804)
jjlawren Jul 27, 2021
bd7de42
Release 4.7.0
jjlawren Jul 27, 2021
63afd5b
Bump codecov/codecov-action from 1 to 2.0.2 (#803)
dependabot[bot] Aug 13, 2021
71ceed0
Bump tqdm from 4.61.2 to 4.62.0 (#809)
dependabot[bot] Aug 13, 2021
0b39e4e
Set CI docker container to default environment LANG="en_US.UTF-8" (#820)
JonnyWong16 Aug 26, 2021
96a35dc
Update Playlists test for posters
JonnyWong16 Jul 28, 2021
0811e53
Add method to get the Plex Web URL for media items
JonnyWong16 Aug 3, 2021
9483e4d
Add custom Plex Web URL override for track, photo, and playlist
JonnyWong16 Aug 3, 2021
17ab4ce
Add getWebURL for LibrarySection and library hubs
JonnyWong16 Aug 4, 2021
e10f96a
Add getPlaylistsWebURL for the server playlists page
JonnyWong16 Aug 4, 2021
3bebeaa
Add tests for Plex Web URLs
JonnyWong16 Aug 4, 2021
9270010
Bump tqdm from 4.62.0 to 4.62.2 (#817)
dependabot[bot] Aug 26, 2021
088b523
Bump codecov/codecov-action from 2.0.2 to 2.0.3 (#818)
dependabot[bot] Aug 26, 2021
e13fb27
Bump websocket-client from 1.1.0 to 1.2.1 (#813)
dependabot[bot] Aug 26, 2021
7233f5f
Merge pull request #805 from JonnyWong16/feature/playlist_poster
JonnyWong16 Sep 4, 2021
371b02a
Bump pytest from 6.2.4 to 6.2.5 (#821)
dependabot[bot] Sep 11, 2021
9f9e235
Bump pillow from 8.3.1 to 8.3.2 (#824)
dependabot[bot] Sep 11, 2021
8a0b03c
Merge branch 'master' into feature/web_url
JonnyWong16 Sep 12, 2021
168f1d3
Add attribute for Sonic Analysis (#814)
blacktwin Sep 13, 2021
692a235
Add methods to lock and unlock artwork and posters (#825)
JonnyWong16 Sep 13, 2021
b8cef9d
Update version handling and add helper script (#806)
jjlawren Sep 13, 2021
69739d6
Fix PMS timeline reporting on clients when using playMedia (#826)
jjlawren Sep 13, 2021
a50875a
Release 4.7.1
jjlawren Sep 13, 2021
9c5aa08
Fix PyPI action dependency
jjlawren Sep 13, 2021
118717e
Add workflow_dispatch to PyPI action
jjlawren Sep 13, 2021
bc6afeb
Add includeGuids parameter when retrieving library results
JonnyWong16 Sep 15, 2021
4d6cffd
Add test for LibrarySection.all() returning guids
JonnyWong16 Sep 15, 2021
842ec8a
Add includeGuids when parsing smart filters
JonnyWong16 Sep 15, 2021
222fe04
Add method to get media item using a guid
JonnyWong16 Sep 15, 2021
046b2ec
Add test for getting and item using a guid
JonnyWong16 Sep 15, 2021
65d538c
Update doc string for get and getGuid with raises exception
JonnyWong16 Sep 15, 2021
607d4b0
Add album format and subformat tags
JonnyWong16 Sep 16, 2021
1efe0a9
Update audio tests
JonnyWong16 Sep 16, 2021
ae4b4d7
Fix typo in lyric streams doc string
JonnyWong16 Sep 21, 2021
49ce2f9
Refactor getWebURL
JonnyWong16 Sep 26, 2021
516c8ed
Update Plex Web URL tests
JonnyWong16 Sep 26, 2021
105a156
Add example to getGuid doc string
JonnyWong16 Sep 27, 2021
31c679f
Bump sphinx from 4.1.2 to 4.2.0 (#828)
dependabot[bot] Oct 4, 2021
94278ff
Bump sphinx-rtd-theme from 0.5.2 to 1.0.0 (#829)
dependabot[bot] Oct 4, 2021
f421544
Bump tqdm from 4.62.2 to 4.62.3 (#833)
dependabot[bot] Oct 4, 2021
ed70704
Bump pytest-cov from 2.12.1 to 3.0.0 (#838)
dependabot[bot] Oct 4, 2021
26648f6
Bump codecov/codecov-action from 2.0.3 to 2.1.0 (#830)
dependabot[bot] Oct 4, 2021
3fce245
Merge pull request #810 from JonnyWong16/feature/web_url
JonnyWong16 Oct 4, 2021
a3178f3
Merge pull request #831 from JonnyWong16/feature/includeGuids
JonnyWong16 Oct 4, 2021
bf3f0c1
Merge branch 'master' into feature/album_types
JonnyWong16 Oct 4, 2021
90bfaf1
Merge pull request #832 from JonnyWong16/feature/album_types
JonnyWong16 Oct 4, 2021
09730b5
Release 4.7.2
JonnyWong16 Oct 4, 2021
d036c40
Update bug report template to issues form (#839)
JonnyWong16 Oct 10, 2021
1c2bc0a
Bump flake8 from 3.9.2 to 4.0.1 (#842)
dependabot[bot] Nov 20, 2021
d6ee141
Bump pillow from 8.3.2 to 8.4.0 (#843)
dependabot[bot] Nov 20, 2021
d40886b
Bump sphinx from 4.2.0 to 4.3.0 (#853)
dependabot[bot] Nov 20, 2021
3e1ce1c
Bump coveralls from 3.2.0 to 3.3.1 (#854)
dependabot[bot] Nov 20, 2021
34a4218
Update server transcodeImage method (#845)
JonnyWong16 Nov 20, 2021
01131c9
Cleanup download methods (#847)
JonnyWong16 Nov 20, 2021
4e8a613
Fix media delete (#848)
JonnyWong16 Nov 21, 2021
777ea75
Add methods for accepting and cancelling friend invites (#849)
JonnyWong16 Nov 21, 2021
8815cda
Add totalDuration and totalStorage properties to LibrarySection (#851)
JonnyWong16 Nov 21, 2021
a8136d2
Change LibrarySection.reload() to reload in-place (#855)
JonnyWong16 Nov 21, 2021
15e011f
Add support for error callback for AlertListener (#850)
glensc Nov 21, 2021
a9ffd1e
Fix image mixins tests (#856)
JonnyWong16 Nov 21, 2021
a497613
Release 4.8.0
JonnyWong16 Nov 21, 2021
d61a3e4
Merge remote-tracking branch 'upstream/master'
ke4roh Jan 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Bug Report
description: Create a bug report to help us improve.
body:
- type: markdown
attributes:
value: >
**THIS IS NOT THE PLACE TO ASK FOR SUPPORT!**
Please use [Discord](https://discord.gg/GtAnnZAkuw) for support issues.
- type: textarea
id: description
attributes:
label: Describe the Bug
description: A clear and concise description of the bug.
validations:
required: true
- type: textarea
id: code
attributes:
label: Code Snippets
description: >
Add a code snippet that can be used to reproduce the bug.
This will be automatically formatted into code, so no need for backticks.
render: python
- type: textarea
id: expected
attributes:
label: Expected Behavior
description: A clear and concise description of what you expected to happen.
- type: textarea
id: additional
attributes:
label: Additional Context
description: Add any other context about the bug here.
- type: input
id: os
attributes:
label: Operating System and Version
placeholder: eg. Windows 10, macOS 10.15, Ubuntu 20.04, etc.
validations:
required: true
- type: input
id: plex
attributes:
label: Plex Media Server Version
description: Check Plex Server > Settings (not Plex Web) > General.
placeholder: eg. 1.24.4.5081
validations:
required: true
- type: input
id: python
attributes:
label: Python Version
placeholder: eg. 3.7.10
validations:
required: true
- type: input
id: plexapi
attributes:
label: PlexAPI Version
placeholder: eg. 4.7.2
validations:
required: true
- type: markdown
attributes:
value: |
Make sure to close your issue when it's solved! If you found the solution yourself please comment so that others benefit from it.
27 changes: 0 additions & 27 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
time: "11:00"
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
time: "11:00"
open-pull-requests-limit: 10
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,6 @@ jobs:
coverage xml

- name: Upload ${{ matrix.plex }} coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2.1.0
with:
flags: ${{ matrix.plex }}
2 changes: 2 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
name: PyPI

on:
workflow_dispatch: ~
release:
types: [published]

Expand All @@ -26,6 +27,7 @@ jobs:
- name: Install dependencies and build
run: |
pip install -U pip
pip install -r requirements.txt
pip install setuptools wheel
python setup.py sdist bdist_wheel

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ lib/
pip-selfcheck.json
pyvenv.cfg
MANIFEST

venv/

# path for the test lib.
tools/plex
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/images/LibrarySection.listSorts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/images/LibrarySection.search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion plexapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from uuid import getnode

from plexapi.config import PlexConfig, reset_base_headers
import plexapi.const as const
from plexapi.utils import SecretsFilter

# Load User Defined Config
Expand All @@ -15,7 +16,7 @@

# PlexAPI Settings
PROJECT = 'PlexAPI'
VERSION = '4.4.1'
VERSION = __version__ = const.__version__
TIMEOUT = CONFIG.get('plexapi.timeout', 30, int)
X_PLEX_CONTAINER_SIZE = CONFIG.get('plexapi.container_size', 100, int)
X_PLEX_ENABLE_FAST_CONNECT = CONFIG.get('plexapi.enable_fast_connect', False, bool)
Expand Down
13 changes: 11 additions & 2 deletions plexapi/alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,18 @@ class AlertListener(threading.Thread):
callback (func): Callback function to call on received messages. The callback function
will be sent a single argument 'data' which will contain a dictionary of data
received from the server. :samp:`def my_callback(data): ...`
callbackError (func): Callback function to call on errors. The callback function
will be sent a single argument 'error' which will contain the Error object.
:samp:`def my_callback(error): ...`
"""
key = '/:/websockets/notifications'

def __init__(self, server, callback=None):
def __init__(self, server, callback=None, callbackError=None):
super(AlertListener, self).__init__()
self.daemon = True
self._server = server
self._callback = callback
self._callbackError = callbackError
self._ws = None

def run(self):
Expand Down Expand Up @@ -84,4 +88,9 @@ def _onError(self, *args): # pragma: no cover
This is to support compatibility with current and previous releases of websocket-client.
"""
err = args[-1]
log.error('AlertListener Error: %s', err)
try:
log.error('AlertListener Error: %s', err)
if self._callbackError:
self._callbackError(err)
except Exception as err: # pragma: no cover
log.error('AlertListener Error: Error: %s', err)
Loading