python-plexapi
plex_autoscan
python-plexapi | plex_autoscan | |
---|---|---|
57 | 25 | |
1,085 | 381 | |
- | - | |
9.1 | 2.3 | |
7 days ago | almost 2 years ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
python-plexapi
-
Playlists need to be improved.
Oh shit! I never even bothered to look because I asked a long time ago and was given and emphatic no. It looks like there is a playlist class. So I'll have to play with that and see what it can do.
- Remove movie from Recently Added
-
Automating Plexamp: Play a random album from a collection (details in a comment)
I wanted a way to pick a random album from a collection and tell the Plexamp client connected to my speakers to play it. I wrote a detailed post about a simple way and a fancy way to do this using the unofficial Python Plex library.
- Issues using the API and python-PlexAPI
-
Any idea why actors are appearing in Plex twice but under different movies? I only have one library
It is the library agent change this guy was on the right track https://github.com/pkkid/python-plexapi/issues/534
- plex discover universal search by imdb/tvdb/tmdb ID
-
Refresh Metadata daily - Plex API
Sources: https://python-plexapi.readthedocs.io/en/latest/ https://github.com/pkkid/python-plexapi
-
Is there a scan feature like the way car radios work?
There's no in the box option for that, but you can easily make something that can do it with things like the python plex api. Get random movie, send play command with offset for some random point. Sleep some random amount of time. Send a stop command and repeat the previous steps.
-
Plex playlist content to watchlist in bulk
You should look into the python PlexAPI wrapper library. Here is an equivalent script using PlexAPI.
-
Network activity keeps PC Awake
I am not sure if there is an official way most people do this, but I think the best bet would be to use data directly from plex - https://python-plexapi.readthedocs.io/en/latest/modules/server.html#plexapi.server.PlexServer.sessions to loop through every so often and get a list of current sessions (currently playing media). Once that goes empty start a timer for shutdown. If a session starts again end the shutdown, you could even look at to see if something is "paused" and have a different shutdown time for paused vs nothing playing if you really wanted.
plex_autoscan
-
Trying to install autoscan from https://github.com/NiNiyas/autoscan and stuck with no idea what the problem is.
2023-03-06 08:29:39,951 - INFO - CONFIG [140352731267072]: Using default setting --config=config/config.json 2023-03-06 08:29:39,951 - INFO - CONFIG [140352731267072]: Using default setting --logfile=autoscan.log 2023-03-06 08:29:39,951 - INFO - CONFIG [140352731267072]: Using default setting --loglevel=INFO 2023-03-06 08:29:39,951 - INFO - CONFIG [140352731267072]: Using default setting --queuefile=queue.db 2023-03-06 08:29:39,951 - INFO - CONFIG [140352731267072]: Using default setting --cachefile=cache.db 2023-03-06 08:29:39,970 - INFO - CONFIG [140352731267072]: Using default setting --config=config/config.json 2023-03-06 08:29:39,970 - INFO - CONFIG [140352731267072]: Using default setting --logfile=autoscan.log 2023-03-06 08:29:39,970 - INFO - CONFIG [140352731267072]: Using default setting --loglevel=INFO 2023-03-06 08:29:39,971 - INFO - CONFIG [140352731267072]: Using default setting --queuefile=queue.db 2023-03-06 08:29:39,971 - INFO - CONFIG [140352731267072]: Using default setting --cachefile=cache.db ___ __ / | __ __/ /_____ ______________ _____ / /| |/ / / / __/ __ \/ ___/ ___/ __ `/ __ \ / ___ / /_/ / /_/ /_/ (__ ) /__/ /_/ / / / / /_/ |_\__,_/\__/\____/____/\___/\__,_/_/ /_/ 2023-03-06 08:29:40,097 - INFO - AUTOSCAN [140352731267072]: ######################################################################### # Title: Plex Autoscan # # Author: l3uddz # # URL: https://github.com/l3uddz/plex_autoscan # # -- # # Part of the Cloudbox project: https://cloudbox.works # ######################################################################### # GNU General Public License v3.0 # ######################################################################### 2023-03-06 08:29:40,102 - INFO - PLEX [140352731267072]: Requesting section info from Plex... 2023-03-06 08:29:40,119 - ERROR - PLEX [140352731267072]: Issue encountered when attempting to list detailed sections info. Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 444, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.10/http/client.py", line 1374, in getresponse response.begin() File "/usr/lib/python3.10/http/client.py", line 318, in begin version, status, reason = self._read_status() File "/usr/lib/python3.10/http/client.py", line 287, in _read_status raise RemoteDisconnected("Remote end closed connection without" http.client.RemoteDisconnected: Remote end closed connection without response During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 787, in urlopen retries = retries.increment( File "/usr/local/lib/python3.10/dist-packages/urllib3/util/retry.py", line 550, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.10/dist-packages/urllib3/packages/six.py", line 769, in reraise raise value.with_traceback(tb) File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 444, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.10/http/client.py", line 1374, in getresponse response.begin() File "/usr/lib/python3.10/http/client.py", line 318, in begin version, status, reason = self._read_status() File "/usr/lib/python3.10/http/client.py", line 287, in _read_status raise RemoteDisconnected("Remote end closed connection without" urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/autoscan/plex.py", line 25, in show_detailed_sections_info resp = requests.get('%s/library/sections/all?X-Plex-Token=%s' % ( File "/usr/local/lib/python3.10/dist-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 587, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 701, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 547, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
- Plex Autoscan FOR WINDOWS
-
Force Plex XML deep scan refresh?
If possible try to change the name after re encoding, and trigger a partial scan. https://github.com/l3uddz/plex_autoscan
-
Google Drive for Desktop and Plex
If you use sonarr/radarr you can add a post processing script to have plex scan only the updated file - https://github.com/l3uddz/plex_autoscan
-
Users of the Plex_Autoscan github project now that scan/refresh has been deprecated
For those that are using the plex_autoscan python script from Github, the --scan and --refresh commands that are called from the script are deprecated and due to be removed soon.
- Plex suddenly stopped refreshing movie / TV series gallery when adding new content. I need to manually do a scan everytime i add something. This is my library settings since 2 years ago. Anyone knows what could cause this to not work now?
-
64 bit update - changes to functionality
For those that are using the plex_autoscan python script from Github, I modified mine to use the webhook instead of calling the exe directly. Everything else about the script still works as advertised.
- Cannot get my LXC Plex CT based library to autoupdate upon adding new media
- Autorefresh is a script that automate a metadata refresh of a specific content using a webhook
- Updated radarr/sonarr naming format, now my GDrive download quota is exceeded
What are some alternatives?
plex-api - Unofficial Plex API Documentation
autoscan - Autoscan replaces the default Plex and Emby behaviour for picking up changes on the file system.
Tautulli - A Python based monitoring and tracking tool for Plex Media Server.
autoscan - Docker image for the Autoscan Go rewrite.
Tdarr - Tdarr - Distributed transcode automation using FFmpeg/HandBrake + Audio/Video library analytics + video health checking (Windows, macOS, Linux & Docker)
autoscan - Fork of https://github.com/l3uddz/plex_autoscan with Jellyfin and Emby support.
Plex-scripts - Plex, the arr's and tautulli scripts coming from user requests
rclone - "rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Kometa - Python script to update metadata information for items in plex as well as automatically build collections and playlists. The Wiki Documentation is linked below.
Cloudbox - Ansible-based solution for rapidly deploying a Docker containerized cloud media server.
plex-playlist-importer - A simple Mac/iOS/iPad app to create playlists from m3u directly to Plex Server
urllib3 - urllib3 is a user-friendly HTTP client library for Python