Commit graph

596 commits

Author SHA1 Message Date
JonnyWong16
01131c95cf
Cleanup download methods (#847)
* Add utils.cleanFilename

* Refactor download methods

* Add option to download episodes, tracks, photos into subfolders

* Update download tests

* Test download keep_original_filename
2021-11-20 14:16:58 -08:00
JonnyWong16
34a42185ac
Update server transcodeImage method (#845)
* Update server transcodeImage method

* Update server transcodeImage tests
2021-11-20 13:53:00 -08:00
JonnyWong16
bf3f0c1392
Merge branch 'master' into feature/album_types 2021-10-04 14:13:39 -07:00
JonnyWong16
a3178f3ac3
Merge pull request #831 from JonnyWong16/feature/includeGuids
Automatically retrieve external guids from libraries using includeGuids
2021-10-04 13:56:11 -07:00
JonnyWong16
3fce24587d
Merge pull request #810 from JonnyWong16/feature/web_url
Add methods to retrieve the Plex Web URL
2021-10-04 12:38:24 -07:00
JonnyWong16
516c8ed02f
Update Plex Web URL tests 2021-09-26 15:23:35 -07:00
JonnyWong16
1efe0a908d
Update audio tests 2021-09-16 15:24:09 -07:00
JonnyWong16
046b2ec66d
Add test for getting and item using a guid 2021-09-15 15:47:21 -07:00
JonnyWong16
4d6cffdbd1
Add test for LibrarySection.all() returning guids 2021-09-15 15:38:54 -07:00
JonnyWong16
692a23586c
Add methods to lock and unlock artwork and posters (#825)
* Add private _edit method

* Add fields attribute to playlists

* Add lock and unlock methods to art, banner, and poster mixins

* Add tests for locking and unlocking art and posters
2021-09-12 19:56:21 -05:00
JonnyWong16
8a0b03c841
Merge branch 'master' into feature/web_url 2021-09-12 15:16:39 -07:00
JonnyWong16
3bebeaacd5
Add tests for Plex Web URLs 2021-08-25 18:10:11 -07:00
JonnyWong16
96a35dc379
Update Playlists test for posters 2021-08-25 18:10:02 -07:00
JonnyWong16
42260aa1b6
Add libtype argument for creating smart playlists (#799)
* Add libtype keyword argument for smart playlists

* Update docs, remove libtype collection from smart playlists/collections

* Cannot create a smart playlist or collection from other collections

* Update smart playlist filter test for libtype
2021-07-26 20:46:30 -05:00
JonnyWong16
6cacc4a55a
Add playlist title search and sorting (#782)
* Add title and sort arguments to server playlists method

* Raise NotFound when retrieving a playlist or collection

* Update tests for collection/playlist NotFound
2021-07-26 20:45:58 -05:00
JonnyWong16
2c540f69c8
Add producers, roles, and hasCommercialMarker to Episode objects (#797)
* Add producers and roles to Episode

* Add producers and roles to episode test

* Add hasCommercialMarker to Episode
2021-07-26 20:36:54 -05:00
JonnyWong16
456a8a53ab
Merge pull request #788 from JonnyWong16/feature/search_objects
Add ability to use FilterChoice and FilteringSort objects in library search
2021-07-16 09:21:55 -07:00
JonnyWong16
31de29d502
Merge pull request #783 from JonnyWong16/feature/custom_collection_order
Add ability to move items in a collection
2021-07-16 09:21:25 -07:00
JonnyWong16
82fa178952
Merge pull request #781 from JonnyWong16/feature/parse_smart_filter
Add ability to parse the smart filters from collections and playlists
2021-07-16 09:21:10 -07:00
JonnyWong16
b4314c1995
Add back custom sort to collection sort test authenticated only 2021-07-04 22:06:23 -07:00
JonnyWong16
b192e5eea9
Reset collection sort after move test to avoid corrupted XML 2021-07-04 21:45:34 -07:00
JonnyWong16
40c22711a6
Fix updateProgress and updateTimeline tests milliseconds 2021-07-04 21:32:58 -07:00
JonnyWong16
f7980e4a16
Update library search tests for FilterChoice and FilteringSort objects 2021-07-04 19:22:11 -07:00
JonnyWong16
ca0eb309c2
Update collection tests for moving items 2021-06-29 20:08:39 -07:00
JonnyWong16
663402ed74
Update tests 2021-06-18 15:26:24 -07:00
JonnyWong16
e51d8253f3
Add tests for smart collection/playlist filters 2021-06-18 14:34:53 -07:00
JonnyWong16
c111150666
Remove manual random sort test 2021-06-14 08:56:33 -07:00
JonnyWong16
b943bc61e5
Merge pull request #765 from JonnyWong16/feature/auto_reload
Allow overwriting attributes with None when manually reloading
2021-06-06 19:24:04 -07:00
JonnyWong16
c136c594ea
Mark online media sources tests with xfail
* Test account is missing online media sources?
2021-06-06 18:39:45 -07:00
JonnyWong16
8ef3d0ac35
Merge branch 'master' into feature/auto_reload 2021-06-06 18:05:08 -07:00
JonnyWong16
6405d226a4
Mark movies extras test only available for Plex Pass 2021-06-06 17:33:08 -07:00
JonnyWong16
0626334ed5
Add tests for movie augmentation, reviews, and extras 2021-06-06 17:23:49 -07:00
JonnyWong16
aaa902059f
Update account onlineMediaSources optOut test 2021-06-06 17:23:49 -07:00
JonnyWong16
fab55e1227
Merge branch 'master' into reviews_extras 2021-06-06 14:42:16 -07:00
JonnyWong16
2a514378d8
Update tests to use reload 2021-06-06 14:38:36 -07:00
JonnyWong16
f90698f69d
Merge pull request #764 from JonnyWong16/feature/rating_mixin
Add rating mixin
2021-06-06 14:32:57 -07:00
JonnyWong16
79fc578406
Fix createPlaylist and createCollection in sync tests 2021-06-06 14:19:57 -07:00
JonnyWong16
f39d9b78ad
Merge remote-tracking branch 'upstream/master' into bugfix/fix_tests 2021-06-06 14:18:26 -07:00
JonnyWong16
e965ebbbe6
Merge remote-tracking branch 'upstream/master' into feature/rating_mixin 2021-06-06 12:54:09 -07:00
JonnyWong16
ab7ed6dee6
Merge pull request #763 from JonnyWong16/feature/smart_playlists_collections
Fix smart playlists and add support for smart collections
2021-06-06 12:15:12 -07:00
JonnyWong16
eafdccaddc
Merge pull request #758 from JonnyWong16/feature/claim_server
Add method to claim and unclaim server
2021-06-06 12:14:46 -07:00
JonnyWong16
c31c5317b3
Update playlist tests for NotFound when removing or moving items 2021-06-02 09:27:35 -07:00
blacktwin
056b5cf342 flag onlineMediaSources required to be authenticated 2021-05-31 09:56:37 -04:00
JonnyWong16
dbd39abb65
pytest mark xfail show mixins image test 2021-05-30 18:31:31 -07:00
JonnyWong16
b269140943
Fix rating mixin tests 2021-05-30 16:22:54 -07:00
JonnyWong16
bd8cdb10b7 Update tests for ratings mixin 2021-05-30 15:49:45 -07:00
JonnyWong16
4458977988 Improve test coverage 2021-05-29 19:26:31 -07:00
JonnyWong16
7800e892ae
Add Playlist attrs test 2021-05-29 19:00:59 -07:00
JonnyWong16
6f2ef5c519
Fix collections and playlists tests 2021-05-29 18:05:42 -07:00
JonnyWong16
56abe38ef8
Add collection sync test 2021-05-29 16:57:43 -07:00
JonnyWong16
40e4413dde
Update collection tests 2021-05-29 16:57:42 -07:00
JonnyWong16
b19b469eb0
Update pytest fixtures 2021-05-29 16:57:42 -07:00
JonnyWong16
8cb2ea2f98
Update library collections and playlists tests 2021-05-29 16:57:41 -07:00
JonnyWong16
65db8c33f6
Add library search limit test 2021-05-29 16:57:40 -07:00
JonnyWong16
8397ab2145
Add test for library create playlist 2021-05-29 16:57:39 -07:00
JonnyWong16
b934228d8a
Update tests for retrieving playlists by type 2021-05-29 16:57:39 -07:00
JonnyWong16
82e71793b1
Update playlist tests 2021-05-29 16:57:38 -07:00
blacktwin
c0b6efc23c
Merge branch 'master' into reviews_extras 2021-05-24 07:21:34 -04:00
JonnyWong16
caafd14435
Update tests for library section recently added 2021-05-23 21:15:18 -07:00
JonnyWong16
598a6654ba Fix rating search test 2021-05-23 21:08:23 -07:00
JonnyWong16
c76b2d4027
Merge remote-tracking branch 'upstream/master' into feature/multi_sort 2021-05-23 20:39:08 -07:00
JonnyWong16
a9597a9008
Merge remote-tracking branch 'upstream/master' into feature/plex_tv 2021-05-23 19:12:38 -07:00
JonnyWong16
c4522d9c6b
Merge pull request #746 from JonnyWong16/feature/properties
Add episodeNumber, trackNumber, and hasPreviewThumbnails helper properties
2021-05-23 19:02:20 -07:00
JonnyWong16
8c2b3ce063
Merge pull request #741 from JonnyWong16/feature/tag_items
Add ability to retrieve a list of items and collection object from media tags
2021-05-23 19:01:07 -07:00
JonnyWong16
893a992855
Merge pull request #739 from Alindil/patch-2
Add method to return a list of all optimized items
2021-05-23 19:00:25 -07:00
JonnyWong16
2ef3f595f0 Add test for claiming and unclaiming server 2021-05-22 14:44:40 -07:00
JonnyWong16
4c75e09640
Add test for collection search 2021-05-20 20:16:20 -07:00
JonnyWong16
4c9aa37cea
Update tests for advanced search filters 2021-05-16 13:28:14 -07:00
JonnyWong16
1b8e476e96
Replace single quotes in library tests 2021-05-15 23:12:39 -07:00
JonnyWong16
85e58feb33
Update tests for lastRatedAt 2021-05-15 22:38:54 -07:00
JonnyWong16
41997d1152
Update tests for addition library search sorting 2021-05-15 18:11:49 -07:00
JonnyWong16
ce0e6f9a95
Add test for predefined Plex episode multi-sort 2021-05-15 16:04:35 -07:00
JonnyWong16
5d29504cbf Add library search tests for random and multi-sort 2021-05-15 11:25:42 -07:00
JonnyWong16
a8e8679fb5
Update tests for optimized items 2021-05-14 16:29:44 -07:00
JonnyWong16
0f861391b6
Remove banners from tests
* Banners are not supported anymore. https://forums.plex.tv/t/bug-cannot-upload-background-artwork-for-episodes/692999/8
2021-05-11 15:44:36 -07:00
JonnyWong16
fe42061ce1
Add tests for hasPreviewThumbnails properties 2021-05-10 18:13:47 -07:00
JonnyWong16
ac7becd27f
Add tests for episodeNumber and trackNumber properties 2021-05-10 18:13:31 -07:00
JonnyWong16
1139f5fb36
Add test for retrieving items from a hub search media tag 2021-05-10 09:35:47 -07:00
JonnyWong16
aeadd76f9f
Fix tests for Plex TV Series agent 2021-05-09 22:05:54 -07:00
JonnyWong16
ec60eeea44
Update tests for new Plex TV agent 2021-05-09 21:28:17 -07:00
JonnyWong16
61f49f586b
Capitalize collection name in tests 2021-05-09 21:23:00 -07:00
JonnyWong16
71e7ee2660
Add tests for media tags 2021-05-09 20:03:12 -07:00
JonnyWong16
158c5f5633
Merge pull request #730 from JonnyWong16/bugfix/episode_tests
Fix retrieving Season.episode() by episode number
2021-05-09 19:44:52 -07:00
JonnyWong16
e877b0039b
Add tests for Season, Episode, and Track collection tags 2021-05-09 12:27:38 -07:00
JonnyWong16
148ea7f352
Fix episode test watched/unwatched name 2021-04-24 11:26:31 -07:00
JonnyWong16
aac4ffdb23
Fix system devices test 2021-04-23 13:59:16 -07:00
JonnyWong16
15767e500a
Add new collection attributes to tests 2021-04-23 13:59:02 -07:00
Elan Ruusamäe
43557906b8
Fix SERVER_TRANSCODE_SESSIONS typo (#723) 2021-04-18 22:06:35 -05:00
blacktwin
f92878d75f
Merge branch 'master' into reviews_extras 2021-04-12 13:08:29 -04:00
JonnyWong16
19fa6c1e50
Allow relative dates for search filters (#717)
* Add validation for relative date search filter values

* Update search doc strings for searching using relative dates

* Update library search tests for relative dates

* Fix relative date search test

* Automatically format negative sign in relative dates

* Fix relative date search test
2021-04-05 15:46:26 -05:00
meisnate12
5584ef1d4f
Added AdvancedSettingsMixin (#714)
* Added AdvancedSettingsMixin

* forgot import

* shortened line

* remove whitespace

* removed unused import

* reordered mixins

* Add preference method to AdvancedSettingsMixin

* Add tests for AdvancedSettingsMixin

Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
2021-04-05 15:44:49 -05:00
JonnyWong16
1c521308e2
Add totalViewSize method to LibrarySection and search bug fixes (#712)
* Fix more library section ID cast to int

* Add method to return library size for specific libtypes

* Add test for library totalViewSize

* Fix totalViewSize test episode count

* Don't need to use library _totalSize cache

* Validate title search arg as a filter kwarg

* Only validate search title if it is a list

* Update doc string for totalViewSize
2021-03-24 20:58:12 -05:00
JonnyWong16
cc313c5d5a
Change photos sync test to get photos by date added instead of device (#709) 2021-03-22 15:14:22 -05:00
JonnyWong16
1d4e911ef5
Add clientIdentifier attribute to SystemDevice (#703)
* Add clientIdentifier attribute to SystemDevice

* Add test for SystemDevice clientIdentifier

* Add methods to return a specific SystemAccount or SystemDevice by ID

* Update tests for SystemAccounts and SystemDevices
2021-03-22 14:35:57 -05:00
JonnyWong16
813770ac74
Add additional test for libtype fallback for search field 2021-03-19 16:47:30 -07:00
JonnyWong16
b9798e9589
Fix searchSeasons test 2021-03-19 16:36:50 -07:00
JonnyWong16
c02a005a70
Add more search tests 2021-03-19 16:27:28 -07:00
JonnyWong16
1674d08ab3
Add tests for library search 2021-03-19 15:53:20 -07:00
JonnyWong16
ddc5e98ab9
Update library tests 2021-03-11 12:24:32 -08:00
JonnyWong16
c15133da88
Adds Movie and Artist advanced setting attributes (#680)
* Add advanced setting attributes to movie

* Add advanced setting attributes to artist

* Update tests for movie advanced setting attributes

* Update tests for artist advanced setting attributes

* Fix artist albumSort attribute
2021-03-11 11:20:28 -06:00
JonnyWong16
7bdc9ed137
Add support for the new Plex TV agent (#679)
* Add new Plex TV agent to library doc string

* Update new Plex TV agent show/season/episode attributes

* Update tests for new Plex TV agent show/season/episode attributes

* Fix test for show attributes

* Add network attribute to show

* Add show network to tests
2021-03-11 11:19:54 -06:00
blacktwin
9d2ec9546e
Merge branch 'master' into reviews_extras 2021-03-09 08:26:52 -05:00
JonnyWong16
bdec69e4a2
Update show/season watched/unwatched tests 2021-03-01 17:54:43 -08:00
JonnyWong16
75e3d4c53c
Add show tag line to tests 2021-02-26 23:02:38 -08:00
Shubhendra Singh Chauhan
12cf146ace
fix: code quality issues (#670)
* Remove unnecessary use of comprehension

* Remove unnecessary comprehension

* Use literal syntax instead of function calls to create data structure

* Pass string format arguments as logging method parameters

* Remove unused imports

* Remove unnecessary generator

* Refactor `if` expression

* fixed typo

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>

* Update tests/test_audio.py

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2021-02-24 11:55:53 -06:00
JonnyWong16
ee81ebcf93
Rename collection tests 2021-02-24 09:07:40 -08:00
JonnyWong16
61a68ebf8a
Merge remote-tracking branch 'upstream/master' into feature/mixins 2021-02-24 09:04:52 -08:00
JonnyWong16
858fb18f7f
Change movie for collection delete test 2021-02-14 23:54:17 -08:00
JonnyWong16
18e2f15b57
Reset collection mode and sort after test 2021-02-14 23:48:58 -08:00
JonnyWong16
094bfcef43
Pytest collection explicit collection name 2021-02-14 23:41:17 -08:00
JonnyWong16
eb68b6446f
Test delete collection with a different movie 2021-02-14 23:27:18 -08:00
JonnyWong16
8631fdaf36
Fix collection sort update test 2021-02-14 23:06:34 -08:00
JonnyWong16
031eb78711
Fix photoalbum mixins image test 2021-02-14 23:05:32 -08:00
JonnyWong16
94c0362376
Replace quotes for consistency 2021-02-14 22:59:42 -08:00
JonnyWong16
92d10bac17
Add photos mixins tests 2021-02-14 22:58:48 -08:00
JonnyWong16
529d16cbab
Update collections mode and sort tests 2021-02-14 22:54:31 -08:00
JonnyWong16
dd0236eb9a
Fix collections tests 2021-02-14 22:43:44 -08:00
JonnyWong16
88dbee7508
Fix flake8 2021-02-14 22:41:17 -08:00
JonnyWong16
e84e922c93
Move collection tests to new module 2021-02-14 22:33:38 -08:00
JonnyWong16
43e9685fba
Fix collections image url mixins test 2021-02-14 21:40:08 -08:00
JonnyWong16
0fa6f33c47
Fix mixins poster url attr typo 2021-02-14 21:32:28 -08:00
JonnyWong16
9fde559147
Remove redundant audio tests 2021-02-14 21:20:27 -08:00
JonnyWong16
c537db61cf
Factor out mixins image url tests 2021-02-14 21:19:42 -08:00
JonnyWong16
bc8e42bbff
Add simple test for posterUrl alias 2021-02-14 20:02:14 -08:00
JonnyWong16
8915134b6b
Fix typo in track test 2021-02-14 19:11:53 -08:00
JonnyWong16
8478ae6e62
Add banner url to show tests 2021-02-14 19:03:19 -08:00
JonnyWong16
bbafaee1cf
Update art and thumb tests 2021-02-14 17:10:11 -08:00
JonnyWong16
f5cd5277d8
Fix mixins image test reset default image 2021-02-14 16:34:38 -08:00
JonnyWong16
29e7374de3
Rename mixins image test 2021-02-14 16:21:12 -08:00
JonnyWong16
00a20b2c92
Add banner mixin to show tests 2021-02-14 16:12:06 -08:00
JonnyWong16
427d90bd3b
Add mixins tests for all objects with art and posters 2021-02-14 15:59:57 -08:00
JonnyWong16
b960e2f7a5
Remove unmatch from base PlexObject 2021-02-14 15:08:49 -08:00
JonnyWong16
c675858d77
Clean mixin tag test 2021-02-14 14:59:28 -08:00
JonnyWong16
7fedd01371
Test locking/unlocking fields when adding/removing tags 2021-02-14 14:52:33 -08:00
JonnyWong16
84f787a2cc
Merge remote-tracking branch 'upstream/master' into feature/edit_tags 2021-02-14 14:38:21 -08:00
JonnyWong16
724e6696f8
Merge pull request #664 from JonnyWong16/feature/media_attributes
Add originalTitle attribute to show
2021-02-14 14:35:46 -08:00
JonnyWong16
f66624f2bd
Merge pull request #656 from JonnyWong16/feature/object_parent
Fix checking object parent when the weakref is dead
2021-02-14 14:34:54 -08:00
JonnyWong16
c585ec6bbf
Fix show originalTitle in test 2021-02-14 14:28:54 -08:00
JonnyWong16
e468cba61f
Replace quotes for consistency 2021-02-11 09:16:04 -08:00
JonnyWong16
10af1ce65d
Update test for show originalTitle attribute 2021-02-10 21:05:34 -08:00
JonnyWong16
57147bd386
Revert "Workaround #660 for reloading object in mixins tag test"
This reverts commit 3919254427.
2021-02-07 15:34:48 -08:00
JonnyWong16
15e9ad9f00
Merge branch 'master' into feature/object_parent 2021-02-07 14:46:30 -08:00
JonnyWong16
02c56841f0
Merge remote-tracking branch 'upstream/master' into feature/posters 2021-02-07 10:46:20 -08:00
Steffen Fredriksen
3f7655e96e
Merge pull request #639 from pkkid/mixin
Move split/merge and unmatch/match to a mixin
2021-02-07 19:37:14 +01:00
Steffen Fredriksen
2be946c207
Merge pull request #657 from JonnyWong16/feature/hidden_season
Fix episode parentKey and parentRatingKey when seasons are hidden in Plex
2021-02-07 19:36:39 +01:00
JonnyWong16
3919254427
Workaround #660 for reloading object in mixins tag test 2021-02-07 10:17:29 -08:00
JonnyWong16
a7e5763e78
Merge remote-tracking branch 'upstream/master' into feature/posters 2021-02-07 09:33:15 -08:00
JonnyWong16
76fa9a9bf6
Merge remote-tracking branch 'upstream/master' into mixin 2021-02-07 09:29:54 -08:00
JonnyWong16
6842a8d1da
Fix mixin tag test 2021-02-06 20:35:47 -08:00
JonnyWong16
88e69d4664
Merge branch 'master' into feature/edit_tags 2021-02-06 20:27:34 -08:00