Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #77 from LizardByte/nightly
Browse files Browse the repository at this point in the history
v0.1.1
  • Loading branch information
ReenigneArcher authored Jan 20, 2023
2 parents 3417148 + 6c39e36 commit df82d8a
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,38 @@ updates:
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "08:00"
target-branch: "nightly"
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "08:30"
target-branch: "nightly"
open-pull-requests-limit: 10

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "09:00"
target-branch: "nightly"
open-pull-requests-limit: 10

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "09:30"
target-branch: "nightly"
open-pull-requests-limit: 10

- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "10:00"
target-branch: "nightly"
open-pull-requests-limit: 10
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
id: verify_changelog
if: ${{ github.ref == 'refs/heads/master' || github.base_ref == 'master' }}
# base_ref for pull request check, ref for push
uses: LizardByte/actions/verify_changelog@master
uses: LizardByte/.github/actions/verify_changelog@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
outputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issues-stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: Stale Issues / PRs

on:
schedule:
- cron: '00 00 * * *'
- cron: '00 10 * * *'

jobs:
stale:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.1.1] - 2023-01-19
### Fixed
- Fixed `plexapi.utils` import, causing plugin to hang

## [0.1.0] - 2023-01-18
### Added
- Added support for new Plex Movie agent
Expand Down Expand Up @@ -55,3 +59,4 @@
[0.0.7]: https://github.com/lizardbyte/themerr-plex/releases/tag/v0.0.7
[0.0.8]: https://github.com/lizardbyte/themerr-plex/releases/tag/v0.0.8
[0.1.0]: https://github.com/lizardbyte/themerr-plex/releases/tag/v0.1.0
[0.1.1]: https://github.com/lizardbyte/themerr-plex/releases/tag/v0.1.1
12 changes: 6 additions & 6 deletions Contents/Code/plex_api_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
from typing import Optional
import urllib3
from urllib3.exceptions import InsecureRequestWarning
import plexapi.alert
from plexapi.alert import AlertListener
import plexapi.server
import plexapi.utils
from plexapi.utils import reverseSearchType

# local imports
if sys.version_info.major < 3:
Expand Down Expand Up @@ -131,7 +131,7 @@ def plex_listener():
global plex
if not plex:
plex = setup_plexapi()
listener = plexapi.alert.AlertListener(server=plex, callback=plex_listener_handler, callbackError=Log.Error)
listener = AlertListener(server=plex, callback=plex_listener_handler, callbackError=Log.Error)
listener.run()


Expand Down Expand Up @@ -164,9 +164,9 @@ def plex_listener_handler(data):

# known search types:
# https://github.com/pkkid/python-plexapi/blob/8b3235445f6b3051c39ff6d6fc5d49f4e674d576/plexapi/utils.py#L35-L55
if plexapi.utils.reverseSearchType(libtype=entry['type']) == 'movie' \
and entry['state'] == 5 \
and entry['identifier'] == 'com.plexapp.plugins.library':
if (reverseSearchType(libtype=entry['type']) == 'movie'
and entry['state'] == 5
and entry['identifier'] == 'com.plexapp.plugins.library'):
# todo - add themes for collections
# identifier always appears to be `com.plexapp.plugins.library` for updating library metadata
# entry['title'] = movie title
Expand Down
26 changes: 26 additions & 0 deletions docs/source/about/troubleshooting.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
:github_url: https://github.com/LizardByte/Themerr-plex/tree/nightly/docs/source/about/troubleshooting.rst

Troubleshooting
===============

Plugin Logs
-----------

See `Plugin Log Files <https://support.plex.tv/articles/201106148-channel-log-files/>`_ for the plugin
log directory.

Plex uses rolling logs. There will be six log files available. The newest log file will be named
``dev.lizardbyte.themerr-plex.log``. There will be additional log files with the same name, appended with a `1-5`.

It is best to replicate the issue you are experiencing, then review the latest log file. The information in the log
file may seem cryptic. If so it would be best to reach out for `support <https://app.lizardbyte.dev/support>`_.

.. Attention:: Before uploading logs, it would be wise to review the data in the log file. Plex does not filter
the masked settings (e.g. credentials) out of the log file.

Plex Media Server Logs
----------------------

If you have a more severe problem, you may need to troubleshoot an issue beyond the plugin itself. See
`Plex Media Server Logs <https://support.plex.tv/articles/200250417-plex-media-server-log-files/>`_
for more information.
1 change: 1 addition & 0 deletions docs/source/toc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
about/installation
about/docker
about/usage
about/troubleshooting

.. toctree::
:maxdepth: 2
Expand Down

0 comments on commit df82d8a

Please sign in to comment.