Commit graph

101 commits

Author SHA1 Message Date
JonnyWong16
99205d3b86
Set correct server instance for playlist items (#1463) 2024-11-16 13:58:16 -08:00
JonnyWong16
bbdb238583
Allow adding items from different server to playlist (#1411) 2024-05-11 09:37:22 -07:00
Elan Ruusamäe
b494e8e2f1
Fix: Raise an exception when trying to create a smart collection/playlist with items (#1377)
* Disallow using smart playlist with items

* Change exception message

Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>

* Also check for state when creating collections

---------

Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
2024-03-16 15:17:40 -07:00
JonnyWong16
556b4b3da4
Use edit mixins for Playlists (#1284)
* Use mixins to edit playlists

* Add titleSort attribute to Playlists

* Update Playlists edit tests

* Fix deprecation warning stacklevel

* Fix edit title for m3u playlist
2023-11-13 10:29:03 -08:00
ReenigneArcher
a6b6ebfbff
style: lint all python files (#1228) 2023-08-28 20:29:39 -07:00
JonnyWong16
b98b6050fe
Add properties to return the Plex Media Server data metadata paths (#1207)
* Add property to return the Plex Media Server data metadata path

* Add property to return the filepath for a resource

* Add tests for metadataDirectory and resourceFilepath
2023-08-27 12:59:53 -07:00
JonnyWong16
644bb3a057
Allow using MyPlexUser object for switchUser (#1154) 2023-05-24 13:55:36 -07:00
JonnyWong16
be42435ed3
Factor out playQueue() method to PlexPartialObject (#1058)
* Factor out `playQueue` to `PlexPartialObject`

* Update `PlayQueue.create()`

* Fix playqueue tests
2022-12-21 11:43:26 -08:00
JonnyWong16
9dbb2e5169
Create music playlist from m3u file (#1055)
* Create music playlists from m3u files

* Add test for playlist m3u import

* Add createCollection examples
2022-12-21 11:32:43 -08:00
JonnyWong16
020a32f2b8
Update PlexAPI to f-strings (#1000)
* Update plexapi to f-strings

* Update tests to f-strings
2022-08-27 22:56:01 -07:00
JonnyWong16
c8854c64c9
Add return self to various methods to support chaining (#986)
* Add return self to various methods to support chaining

* Fix runButlerTask test
2022-08-26 14:44:50 -07:00
JonnyWong16
59638dc714
Add new methods to edit object fields (#876)
* Update Collection.edit() method

* Add new EditFieldMixin and subclasses

* Add EditFieldMixin to Plex objects

* Update PlexPartialObject.edit() doc string

* Cast Track parentIndex to int

* Add base _searchTypes property

* Add kwargs to editField

* Editing album title also requires the artist ratingKey

* Add tests for editing fields

* Deprecate Collection.edit()

* Make editing fields chainable

* Add chaining example to doc string

* Add batch editing mode

* Add test for batchEdits

* Clean up mixins imports

* Reorder mixins

* Fix tests for batch edit
2022-02-26 21:40:51 -08:00
ReenigneArcher
3917b335ca
Fix various typos (#880)
* Fix various typos

* Fix various typos in tests

* Fix typos in `tests`

* Fix more typos

* Fix hasScalingMatrix test

Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
2022-02-26 19:26:08 -08:00
jjlawren
570742cff8
Support for Artist radio stations (#870)
* Initial support of artist radio stations

* Fix docstring

* Change to a singular optional station

* Change to a property

* Revert property

* Explicitly set librarySectionID

Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>

Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
2022-01-23 20:39:35 -08: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
49ce2f9bb4
Refactor getWebURL 2021-09-26 15:23:35 -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
9483e4d9c9
Add custom Plex Web URL override for track, photo, and playlist 2021-08-25 18:10:11 -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
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
b7e8b37b3e
Add method to move items in a collection 2021-06-29 20:08:19 -07:00
JonnyWong16
dd0e3789f6
Add SmartFilterMixin to collections and playlists 2021-06-18 14:26:48 -07:00
JonnyWong16
a353df1f56 Fix keyword arguments for playlist copyToUser 2021-06-07 12:00:49 -07:00
JonnyWong16
7e8c93dcc7
Merge remote-tracking branch 'upstream/master' into bugfix/cleanup_findItems 2021-06-06 14:50:39 -07:00
JonnyWong16
38114b62ba
Check item exists in playlist before removing or moving 2021-06-02 09:23:39 -07:00
JonnyWong16
c84215df7a
Move _uriRoot() to PlexServer 2021-05-29 18:22:27 -07:00
JonnyWong16
06da110203
Clean up doc strings 2021-05-29 17:58:55 -07:00
JonnyWong16
04c25953fe
Fix collection and playlist edit for blank values 2021-05-29 16:57:42 -07:00
JonnyWong16
95c1be28bc
Add PlexServer.createCollection() method 2021-05-29 16:57:41 -07:00
JonnyWong16
94fb9783fe
Add limit to the playlist uri instead of query param 2021-05-29 16:57:40 -07:00
JonnyWong16
0ed9240909
Reorganize playlist dunder methods 2021-05-29 16:57:39 -07:00
JonnyWong16
00be05f17b
Add doc strings to playlist properties 2021-05-29 16:57:38 -07:00
JonnyWong16
2af15e2d73
Add method to update smart playlist filters 2021-05-29 16:57:38 -07:00
JonnyWong16
4c9964db1b
Add method to retrieve playlist section 2021-05-29 16:57:37 -07:00
JonnyWong16
3edec52e2e
Update playlist add, remove, move, and edit methods 2021-05-29 16:57:37 -07:00
JonnyWong16
be2293ad30
Update playlist attributes for smart playlists 2021-05-29 16:57:37 -07:00
JonnyWong16
a131482cdc
Update creating smart playlist using search filters 2021-05-29 16:57:36 -07:00
JonnyWong16
0095e83f75
Cleanup utils imports 2021-05-26 19:45:12 -07:00
JonnyWong16
1fcd7aa31a
Update Playlist.copyToUser with switchUser 2021-05-11 17:10:39 -07:00
JonnyWong16
42163b85e2
Fix smart playlist listFilterChoices 2021-03-11 13:28:25 -08:00
JonnyWong16
b0780aaec8
Add Playlist thumb alias to composite 2021-02-14 19:58:03 -08:00
JonnyWong16
68b77b67b8
Separate art and poster mixin 2021-02-06 20:19:11 -08:00
JonnyWong16
5a4d564fd3
Move poster and art to a mixin 2021-01-24 15:29:20 -08:00
JonnyWong16
13325a50ba
Remove poster and art methods from collections and playlists
* Methods are already defined in PlexPartialObject
2021-01-24 11:12:02 -08:00
Steffen Fredriksen
ed0532c040
Merge pull request #535 from nwithan8/patch-2
Playlist creation - check items are included, raise exception
2021-01-11 23:13:18 +01:00
JonnyWong16
eeda5dfd67
Fix exception doc strings 2021-01-02 16:44:18 -08:00
JonnyWong16
810c5566c3
Fix playlist tests 2020-12-24 09:21:29 -08:00
JonnyWong16
c1a1d1616b
Add Playlist.item() method 2020-12-23 22:32:48 -08:00
JonnyWong16
b7f813aacd
Add Playlist attributes doc string 2020-12-23 22:25:10 -08:00
JonnyWong16
b451b22bb8
Fix doc building 2020-11-23 12:20:56 -08:00