Commit graph

2514 commits

Author SHA1 Message Date
JonnyWong16
bbe3e8e49f
Improve reload performance (#1451)
* Change default includes to false

* Update isFullObject() check

* Fix checkFiles in tests
2024-08-17 14:00:22 -07:00
ReenigneArcher
d5604670d5
ci(coverge): upload coverage if tests fail (#1442) 2024-08-05 17:05:40 -07:00
ReenigneArcher
c28c7bf384
ci(pytest): add colored output (#1441) 2024-08-05 17:05:26 -07:00
JonnyWong16
d88f14e271
Release 4.15.15 2024-07-06 10:51:16 -07:00
dependabot[bot]
9ae34c6fef
Bump pillow from 10.3.0 to 10.4.0 (#1436)
Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.3.0 to 10.4.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/10.3.0...10.4.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-06 10:00:54 -07:00
Mike Di Nicola
c7f4388137
add searchProviders parameter to searchDiscover method (#1437)
* add searchProviders parameter to searchDiscover method

* fix trailing whitespace

* rename parameter
2024-07-06 10:00:38 -07:00
JonnyWong16
ec969a177c
Release 4.15.14 2024-06-22 14:43:10 -07:00
dependabot[bot]
f5e760e4f2
Bump flake8 from 7.0.0 to 7.1.0 (#1431)
Bumps [flake8](https://github.com/pycqa/flake8) from 7.0.0 to 7.1.0.
- [Commits](https://github.com/pycqa/flake8/compare/7.0.0...7.1.0)

---
updated-dependencies:
- dependency-name: flake8
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-22 11:45:44 -07:00
dependabot[bot]
ec1ec97929
Bump pytest from 8.2.0 to 8.2.2 (#1424)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.2.0 to 8.2.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.2.0...8.2.2)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-22 11:45:35 -07:00
dependabot[bot]
cf9b0bb7e9
Bump requests from 2.31.0 to 2.32.3 (#1423)
Bumps [requests](https://github.com/psf/requests) from 2.31.0 to 2.32.3.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.31.0...v2.32.3)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-22 11:45:25 -07:00
JonnyWong16
ffbbf59757
Add script to create dummy media files (#1432) 2024-06-22 11:29:14 -07:00
JonnyWong16
185696e87e
Register LyricStream as a PlexObject (#1434) 2024-06-22 11:18:40 -07:00
Thomas Montague
f1c3d3adff
Fix: Set media and part indexes when generating stream url (#1428)
Fixes #1427
2024-06-22 11:13:55 -07:00
JonnyWong16
a4e6ec67ef
Allow getting client by machine identifier (#1418) 2024-06-22 11:13:14 -07:00
JonnyWong16
dd80deb18f
Release 4.15.13 2024-05-18 13:43:46 -07:00
dependabot[bot]
ce472a7ec7
Bump coveralls from 3.3.1 to 4.0.1 (#1415)
Bumps [coveralls](https://github.com/TheKevJames/coveralls-python) from 3.3.1 to 4.0.1.
- [Release notes](https://github.com/TheKevJames/coveralls-python/releases)
- [Changelog](https://github.com/TheKevJames/coveralls-python/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TheKevJames/coveralls-python/compare/3.3.1...4.0.1)

---
updated-dependencies:
- dependency-name: coveralls
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-18 12:28:26 -07:00
dependabot[bot]
26a920d372
Bump tqdm from 4.66.2 to 4.66.4 (#1410)
Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.66.2 to 4.66.4.
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](https://github.com/tqdm/tqdm/compare/v4.66.2...v4.66.4)

---
updated-dependencies:
- dependency-name: tqdm
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-18 12:28:18 -07:00
dependabot[bot]
5a6ab1aa28
Bump pytest from 8.1.1 to 8.2.0 (#1407)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.1.1 to 8.2.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.1.1...8.2.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-18 12:20:52 -07:00
dependabot[bot]
e08b3f030c
Bump websocket-client from 1.7.0 to 1.8.0 (#1406)
Bumps [websocket-client](https://github.com/websocket-client/websocket-client) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/websocket-client/websocket-client/releases)
- [Changelog](https://github.com/websocket-client/websocket-client/blob/master/ChangeLog)
- [Commits](https://github.com/websocket-client/websocket-client/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: websocket-client
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-18 12:20:45 -07:00
JonnyWong16
2142514955
Add support for editing audience ratings and critic ratings (#1417)
* Add support for editing audience ratings and critic ratings

* Note: Not all types of ratings are supported/shown in the Plex UIs. However they can be edited/updated and stored in the Plex Media Server database.

* Add tests for editing audience rating and critic rating
2024-05-18 12:16:49 -07:00
JonnyWong16
7b317ef822
Update default language for library add (#1416)
* Update default language for library add

* Add explicit photo library language to bootstrap server
2024-05-18 12:16:18 -07:00
Jam
5e6db51f53
(Temporary Fix) Changed friends route to the v2 sharings route (#1413) 2024-05-18 11:50:29 -07:00
JonnyWong16
bbdb238583
Allow adding items from different server to playlist (#1411) 2024-05-11 09:37:22 -07:00
JonnyWong16
4f6723c072
Increase on-demand subtitles test timeout (#1405) 2024-04-22 21:29:31 -07:00
jjlawren
76ca35219a
Fix escape sequence in docstring regex (#1404) 2024-04-22 20:57:49 -07:00
JonnyWong16
39e0223c84
Release 4.15.12 2024-04-19 13:19:08 -07:00
JonnyWong16
7f589c24dd
Test for NotFound exception when adding to watchlist (#1403) 2024-04-19 12:56:28 -07:00
Dr.Blank
25fa930c61
Fix: Bug introduced in #1373 list has not attr tag (#1396)
* regression test for https://github.com/Taxel/PlexTraktSync/discussions/1901

* bugfix https://github.com/Taxel/PlexTraktSync/discussions/1901
2024-04-19 12:42:16 -07:00
zhu0823
0108c95bd8
feat: Add params parameter to request (#1395)
* feat: Add params parameter to request

* Update plexapi/base.py

Co-authored-by: Dr.Blank <64108942+Dr-Blank@users.noreply.github.com>

---------

Co-authored-by: 朱校明 <zhuxiaoming@dstcar.com>
Co-authored-by: Dr.Blank <64108942+Dr-Blank@users.noreply.github.com>
2024-04-19 12:00:24 -07:00
JonnyWong16
d9be0e6f06
Revert "addToWatchlist raise NotFound exception for invalid media (#1401)" (#1402)
This reverts commit bf925c60e1.
2024-04-19 11:18:25 -07:00
Touchstone64
3e752d5f27
Fix: stop maxresults from overwriting previous results #1393 (#1394)
* Fix: stop maxresults from overwriting previous results

* Added test for use of maxresults in fetchItems #1393

* Removed the need for last_container_size #1393

* Renamed collections to better represen what is being tested

* Renamed collections to better represent what is being tested #1393

* Update tests/test_library.py with cleaner test

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

---------

Co-authored-by: Graham Thompson <graham.c.thompson@gmail.com>
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
2024-04-19 10:57:54 -07:00
JonnyWong16
bf925c60e1
addToWatchlist raise NotFound exception for invalid media (#1401) 2024-04-19 10:52:19 -07:00
JonnyWong16
f5126a7ff1
Fix library timeline test (#1400) 2024-04-19 10:38:26 -07:00
dependabot[bot]
24f07fd94a
Bump pillow from 10.2.0 to 10.3.0 (#1391)
Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.2.0 to 10.3.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/10.2.0...10.3.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-19 09:53:42 -07:00
JonnyWong16
991c5e303e
Release 4.15.11 2024-03-31 16:00:48 -07:00
Dr.Blank
b836d24226
MediaContainer class is now a list (#1373)
* MediaContainer class is now a list

- can now support totalSize as returned from server

* add tests for media container

* Update MediaContainer attributes if previously None when extending
2024-03-31 15:48:24 -07:00
blacktwin
5b5d4c66ab
Fix Library.add() method to properly apply advanced settings (#1384)
* Fixing how advanced settings params are set and adding a prefix & when appending advanced settings. Update parts append to use f-string

* Adding basic test to include Advanced settings.

* lint fix

* fix failing test

* lint fix in test

* Update test_library.py

Add section deletion after testing
2024-03-31 15:40:17 -07:00
dependabot[bot]
d51022d683
Bump codecov/codecov-action from 3 to 4 (#1351)
* Bump codecov/codecov-action from 3 to 4

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add CODECOV_TOKEN to CI workflow

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
2024-03-31 09:31:10 -07:00
dependabot[bot]
0e9f87e311
Bump requests-mock from 1.11.0 to 1.12.1 (#1390)
Bumps [requests-mock](https://github.com/jamielennox/requests-mock) from 1.11.0 to 1.12.1.
- [Release notes](https://github.com/jamielennox/requests-mock/releases)
- [Commits](https://github.com/jamielennox/requests-mock/compare/1.11.0...1.12.1)

---
updated-dependencies:
- dependency-name: requests-mock
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-30 16:29:33 -07:00
dependabot[bot]
ddf19e004e
Bump pytest-cov from 4.1.0 to 5.0.0 (#1387)
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 4.1.0 to 5.0.0.
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v4.1.0...v5.0.0)

---
updated-dependencies:
- dependency-name: pytest-cov
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-30 16:29:25 -07:00
dependabot[bot]
b482a5a1e3
Bump pytest-mock from 3.12.0 to 3.14.0 (#1386)
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 3.12.0 to 3.14.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases)
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.12.0...v3.14.0)

---
updated-dependencies:
- dependency-name: pytest-mock
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-30 16:20:05 -07:00
dependabot[bot]
387d8c8e60
Bump pytest from 8.0.0 to 8.1.1 (#1382)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.0.0 to 8.1.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.0.0...8.1.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-30 16:19:53 -07:00
Fletcher
b7f2913fbc
Fix typo in getGuid docstring cache example (#1381) 2024-03-16 15:18:25 -07:00
JonnyWong16
642ba8ba12
Allow exclude parameters in reload kwargs (#1378)
* Allow exclude parameters in reload

* Add test for reload kwargs
2024-03-16 15:18:14 -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
97faf3ccce
Disable sonic analysis task on bootstrap test server (#1371) 2024-03-16 15:04:03 -07:00
JonnyWong16
f779ed76e8
Fix escape characters in fetchItems doc string (#1370) 2024-03-16 15:03:55 -07:00
JonnyWong16
0601aaa40e
Add helper object to retrieve PlexObject (#1369) 2024-03-16 15:03:44 -07:00
Dr.Blank
7802b79d30
feat: Add sonicAdventure method to MusicSection (#1361)
* Add sonicAdventure method to MusicSection

* satisfy flake8

* sonicAdventure accepts Track as param

* test with both types for sonicAdventure

* Add authentication to recently added music test

* Fix test_library.py to include missing newline character

* Add sonicAdventure method to Track class

* fix doc as suggested

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

* fix bound on sonicAdventure method

- add type to docstr

* Apply suggestions from code review

- pass in plexpass account to tests

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

* make tests pass on bootstrap

- still asserts it is an iterable
- still checks all elements are tracks
- in case no adventure found, does not fail

---------

Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
2024-03-16 15:03:36 -07:00
JonnyWong16
da033aa7d0
Update history tests (#1374)
* Update history tests

* Update episode directors attribute test
2024-03-15 20:21:23 -07:00