Git Product home page Git Product logo

plex-scripts's Introduction

Plex-scripts

This repository is a collection of scripts that I made targeted at applications like Plex, the arr's and Tautulli. It is inspired by the JBOPS repo. The scripts were made after requests, made by other people, in this reddit post. The target of most scripts is to expand the functionality of the applications. These scripts often fulfill a request for a feature made by many users of the applications a long time ago.

Info about the use case of every script can be found at the top inside the file. Info about how to setup the scripts can be found in the wiki. Eventhough it all started with making requests using comments under a reddit post, now we make requests using GitHub issues for which you can find info here.

Favourites

A few of my personal favourites:

  1. audio_sub_changer.py: change audio/subtitle streams based on desired language for an episode, season, series, movie or complete library
  2. plex_sync.py, keep two plex instances synced where you can sync collections, posters (e.g. custom posters set for media), intro markers, watch history and playlists. You can select, for the last two, which users you want to sync it for as those are user specific.
  3. stream_upgrader.py: upgrade the stream's video (resolution) or audio (channel count) when there is a better one available wherever it may be (e.g. you start streaming a 1080p movie but you have a 4k version in a different library so the script will change the stream to that version).
  4. plex_exporter_importer.py: export metadata of plex media and save it in one big database file. Then you can do the reverse with importing, where the databasefile is read and the values are applied to the plex item. This way you can "carry" custom metadata between plex servers (supporting metadata, advanced metadata, watched status, posters, arts (backgrounds), collections, playlists, intro markers, chapter thumbnails and server settings).
  5. advanced_playlists.py: create playlists containing (multiple) series in custom orders like shuffled, semi-shuffled (series sequential but episodes shuffled) and staggered.

Great scripts, but why?

I've noticed that plex, the arr's and tautulli all are great applications but they have their flaws. Often, people say "Plex is great, but..." or "Sonarr is cool but I hate that...". Now ofcourse software can't be perfect for everyone as everyone want's to do something different, but the amount of but's that these applications have is a little too much.

I have quite a bit of experience, working with these applications and thus I thought "why not help out?" I know their api's well, what is possible and not, etc. So I started the reddit thread found above where people could tell their but's and I would fix them in the form of a script. This repository is the result of that post (and a few scripts made after my own but's). I just want everyone to enjoy these great applications to their fullest. It's also great practise for me as I'm learning new languages and this ofcourse helps me getting comfortable in them.

BASH

There are a few scripts in the repository that are written in BASH. I'm slowly converting all those scripts to python scripts.

Donations

I don't accept money. I'm literally 16. You can "pay" me by sharing the repository with other people.

Browse around and take a look! Happy "but's"-removing

plex-scripts's People

Contributors

aelfa avatar casvt avatar robdplatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plex-scripts's Issues

Qbittorrent Script: Change/Set category based on tag

I have a third party program that tags certain torrents. What i'd like the script to do, is change/set the category of any torrents with that specific tag. So something like:

if [ tag = xyz ];

then

[ change category to ABC ]

I assume this would use qbit's mechanism of "Run external program on torrent completion" but if there's another/better way, i'm all ears for that, too. Thanks in advance!

Random files using label

Currently i'm using a batch script to empty a folder and copy 3 movies that are chosen randomly from my media directory to this folder that is set as library for "Choice of the day".

Basically this could be used in addition to the virtual library script to make it better with no need to copy/delete files every day.
Ability to auto add/remove label, chose number of files to pick, number of days, and bypass files/folders are what come to my mind...

A bit of work here, sorry

Plex Virtual Library (bat script) for TV Shows

There’s an old bat script from a few years ago that would make hardlinks of your movie folders if a specific sharing tag was on it in Plex, and put them in a corresponding library folder that you could then point a new Plex library too. Great for syphoning out kid movies. It was called Plex Virtual Library. Worked in SQLite. I’m a total noob to this stuff so it took me a little to get it to work but once I did, it worked flawlessly for movies, I even figure out how to change the syntax for the tag. Problem is, it doesn’t work for shows as tags are applied to the show and not the individual episode/file. I’ve opened up the Plex database with a SQL viewer to try and map out metadata IDs but I can’t get it to work. Would love to see this for shows.

https://github.com/jayrox/PlexVirtualLib

plex_loadbalancer.sh not working

I loaded plex_loadbalancer.sh on my backup server for testing, as it runs unRAID. My primary server is Windows.

Here's my config (again, note that in this case "main" is my backup server, and "backup" is my primary server)

main_plex_ip=192.168.1.69
main_plex_port=32400
main_plex_token=***

main_tautulli_ip=192.168.1.69
main_tautulli_port=8181
main_tautulli_token=***

backup_plex_ip=192.168.1.4
backup_plex_port=32400
backup_plex_token=***

backup_tautulli_ip=192.168.1.4
backup_tautulli_port=8181
backup_tautulli_token=***

I already had 2 streams running on Primary (backup for this script) when I started the 5 streams on the Backup (main for this script) server.

image

Here's a snip from the Tautulli logs... it does seem like the script is executing. Just not sure what to do about the errors yet. Tautulli and Plex are both run in dockers on my unRAID server.

image

Media should be matched using guids instead of rating key

Only one feature should be requested per issue. Please make multiple issues if you have multiple feature requests

In what file should the feature be added?
plex_exporter_importer.py

What is the feature request?
When exporting, instead of saving the ratingkey, the script should save the guid/title of the media. Then when importing, it should find the match for this guid/title. This allows for cross-server exporting and importing. Right now you can only import on the server that you exported from (metadata backup).

Alternate Order Playlist not working for a show

In which file is the bug?

alternate_ordering_playlist.py

Describe the setup (arguments and their values, how it was run, etc.):

Tried to run it for an anime show, to get a playlist with the chronological order built, but I think because of the way its mapped to one season, where the normal show is mapped across two seasons, it may be causing some issues. The command to run it is:

/usr/bin/python3 /scripts/plex/create_plex_playlist_for_alternate_tvdb_ordering.py -s "The Melancholy of Haruhi Suzumiya" -o "2009 Series" --NoWatched

I use the exact command with the -s -o args changed for other shows, and it works great on those. Just this one seems to be causing some issues.

Describe what the bug is:

Creates an empty playlist, instead of one following the alternate order of '2009 series'. The show is completely unplayed

find_missing_episodes.py: Script can't handle when series doesn't have "All seasons" link

In which file is the bug?
find_missing_episodes.py
Describe the setup (arguments and their values, how it was run, etc.):
Normal run on a show library
Describe what the bug is:
If the series doesn't have a "All seasons" link on the tvdb, it crashes.
Describe what should be happening:
The link isn't there when there's only one season. Script should grab link of season instead then. See alternative_order_playlist.py for solution.

plex_sync: Sync settings of collections and playlists

Only one feature should be requested per issue. Please make multiple issues if you have multiple feature requests

In what file should the feature be added?
plex_sync.py

What is the feature request?
When syncing playlists and/or collections, not only should the content, title and poster by synced, but also the description and any settings.

TV Show Missing episodes

Hi, it will be really useful to be able to "mark" or report the missing episodes from a TV Show. Maybe a red dot in the cover?
It's easy to miss an episode and it's aawful when you need to stop your favourite TV show night marathon 'cause you missed one.

Thanks for your effort.

Plex_sync + Plex_exporter_importer: Support for intro markers

Only one feature should be requested per issue. Please make multiple issues if you have multiple feature requests

In what file should the feature be added?
Plex_sync.py

What is the feature request?
In addition to syncing watch history, sync intro markers across plexes. Requesting that a flag be introduced to isolate as well. E.g. only sync intro markers or only sync watch history in the event you don't want both. Thanks in advance for your consideration!

TBA refresh script

With Sonarr, comes a lot of TBA episodes. Would be ideal to search them and refresh metadata only for them

plex_library_sync.py: Media items not found in other library

In which file is the bug? plex_library_sync.py

Describe the setup (arguments and their values, how it was run, etc.): running -s SOURCELIBRARYNAME -t TARGETLIBRARYNAME -S collections

Describe what the bug is: When the script gets to a collection that doesn't have any poster, it errors out and cancels.

Describe what should be happening: I would expect it to skip that collection and move on to the next.

Use a tag from Radarr to maintain a Collection or Genre in Plex

I use this script (https://github.com/Adman1020/Elsewherr) to tag my movies with wether they are available on streaming services. I would like to have this information displayed in Plex in a very obvious way.

My initial thinking was maybe a custom genre, or a collection. But if there's a better way then that would be great. The aim is that when opening up any movie on any device the user would be able to see that it's available on a streaming service from the information page. This is for when my local movie is broke or poor for any reason and I can go "ah, it's ok, we will watch it on Netflix instead".

Movies can be on multiple streaming services so must be able to have multiple tags/genres/collections. They also move on and off of services (which the Elsewherr script handles) so tags/genres/collections need to be able to be updated.

It would also be nice to customise the text displayed in Plex as the Elsewherr tags on Radarr are not particularly friendly (i.e. "elsewherr_disney_plus" as a tag on Radarr shows as "Disney+" or something nice in Plex.

list_to_collection: add support for tmdb lists

Only one feature should be requested per issue. Please make multiple issues if you have multiple feature requests

In what file should the feature be added?
list_to_collection.py
What is the feature request?
Currently only IMDb lists can be "imported". Also support TMDb lists to be imported.

plex_loadbalancer.sh - jq: command not found

So after realizing you wrote the script in bash and not python, I switched to my unRAID instance to install & test.

I configured the script to treat my "backup" server, as the main (same with tautulli as I have a local instance of tautulli for that instance of plex).

  • At first it wouldn't execute... chmod 777
  • Then it couldn't find the script... recreated the sh file in Linux as it had windows encoding that was causing issues
  • Now I get an error when I run a "test" in Tautulli.

Tautulli Notifiers :: Script error:
/config/scripts/plex_loadbalancer.sh: line 103: jq: command not found
/config/scripts/plex_loadbalancer.sh: line 107: jq: command not found
(23) Failed writing body

I manually executed one of those lines:

curl -sL "http://192.168.1.69:8181/api/v2?apikey=********&cmd=get_activity" | jq -rM '.response.data.sessions | length'

and got the output "1" as there was only 1 session streaming at the moment. So from bash the script does appear to work. Just not via Tautulli.

The script clearly executes so the location & permissions are correct. The only thing I think it might be is "jq" exists in /usr/bin which my docker container probably doesn't have access to.

If you have any ideas, I'm all ears. Otherwise, I'll update if I get this to work.

Only json files extracting

In which file is the bug?
Plex_export_import.py
Describe the setup (arguments and their values, how it was run, etc.):
running with the new --AllMovie and outputting to a log file
Describe what the bug is:
Only the _metadata.json files are extracting, none of the regular media files extract
Describe what should be happening:
all expected data should be extracted

Plex_exporter_importer:by date

Only one feature should be requested per issue. Please make multiple issues if you have multiple feature requests

In what file should the feature be added? Plex_exporter_importer

What is the feature request?
For a large set of libraries, this script can run for a while. That is to be expected the first time but the next time it is run, it would be great to be able to have it only extract info on items that have been added or updated since "x" date (in whatever format is needed) or in the last x days (which would be nice for automating a script to run every week or something.

Plex_exporter_importer:Music Libraries

Only one feature should be requested per issue. Please make multiple issues if you have multiple feature requests

In what file should the feature be added? Plex_exporter_importer

What is the feature request?
Add support to gather all of the pertinent info from Music libraries (album and artist pictures and play info)

Do not go to next track unless current track is rated in Plex

I would like to set a rating for all of my songs in Plex.

so what i would like is for the player to pause playback if progress is at 99% if the currently playing song is unrated, but i would like for it to keep autoplaying the next song if the current song is rated.

so like a conditional autoplay depending on the rating of the currently playing song.

I use Plexamp windows if that matters

Remove/clean unused artwork

With the addition of rating overlays through Plex Meta Manager, a lot of posters are being created. Overtime this inflates the size of Plex's assets considerably.

It would be great to have a script that could clean/remove all unused/unselected artwork (posters mainly, but why not backgrounds as well).

I came across This script but that's not easily executable on all platforms. Having a Python version would be great

old FindMedia tool from the Webtools plugin

Just a script that does what the old webtools plugin FindMedia tool did. Which in turn was based on https://github.com/srazer/FindMissing.bundle

Compare a library in Plex with its base folders and find media not imported to Plex. This could be because of corrupt files, incorrect naming, wrong permissions, or just a plex hiccup.

if you feel ambitious you might be able to show the reason why the media was not imported into plex if you read the scanner logs though i'm not sure if that info is made explicitly available.

Plex_exporter_importer:playlists

Only one feature should be requested per issue. Please make multiple issues if you have multiple feature requests

In what file should the feature be added? Plex_exporter_importer

What is the feature request?
Add playlist data extraction with all pertinent info and media objects.

Rename Unknown language to English

Hi, loving your scripts.

Maybe its too much to ask but is it possible to rename audio to English where its displayed as Unknown?

I have media on cloud so I cannot use any conversion software like mkvedit or tdarr.

I hope you might be able to come up with something.

Let me know please if you need more information.

Thank you

Push Playlists

The ability to push playlists from the owner to users.

Owner creates playlists, syncs to all users.
User creates playlists, does NOT sync to other users or owner.

Export and import user data in un-linked way

I have a couple of managed users that are now old enough to have their own account. If I have them create a new account, is there a way to have a script copy all of their watched information (and anything else that is important) to their new "regular" account?

Delete files and unmonitor based on tag

My proposal:

I have a two instances setup (1080p and 4K). I use plex-meta-manager to tag (“4K”) the movies in 1080p that I get in 4K, and then I want to delete the 1080p movies, but keep the movie in radarr, as unmonitored.

To do so, I filter all the movies in radarr with “4K” tag… and… ooops! I can delete all movies from radarr, but that would remove the whole entry, not just the files. So I have to painstakingly go movie by movie and delete the files one at a time

So my dream script would delete all files in all movies with a given tag (and additionally unmonitor them!)

Script to Limit remote stream bitrate

Hi there,

Thanks heaps once again for what you're doing!

I would like a script to monitor the amount of streams currently running then adjust the "Limit remote stream bitrate" in Plex.
For example - Once 8 streams are running, then all future streams are limited to 4Mbps.

Attached screenshot for reference.
Screen Shot 2022-05-21 at 9 46 49 pm

Thanks heaps once again.

Unable to get intro_skipper working

First off, thanks for all the work here. I have been enjoying your scripts.

As the title says, I cannot get the intro_skipper.py to work. I have been attempting to do a little debugging of my own and found that neither Chapter nor Marker are in media_output[data['PlaySessionStateNotification'][0]['ratingKey']]['MediaContainer']['Metadata'][0].keys().

My stream does get recognized as 'playing' and media_output[data['PlaySessionStateNotification'][0]['ratingKey']] = json.loads(requests.get('http://' + plex_ip + ':' + str(plex_port) + data['PlaySessionStateNotification'][0]['key'], params={'X-Plex-Token': plex_api_token}, headers={'Accept': 'application/json'}).text) is assigning data to media_output variable.

Is this something that Plex recently changed and broke the script? Or am I just goofing something up?

Argument --AllShows not working with -P arg

In which file is the bug?
Plex_exporter_importer
Describe the setup (arguments and their values, how it was run, etc.):
python3 plex_exporter_importer.py -t export --AllShows -P
Describe what the bug is:
The terminal window flew past (1,000 TV Shows in about 15 seconds) with all of the show names and libraries but nothing actually updated (no media, no jsons)
Describe what should be happening:
All posters, etc., and the metadata should be exported (but no episode posters)

Plex_exporter_importer:Collections

Only one feature should be requested per issue. Please make multiple issues if you have multiple feature requests

In what file should the feature be added? Plex_exporter_importer

What is the feature request?
Add support to gather all of the info for collections. Realizing that collections have their own posters, members of the collection (which can cross data directories, libraries, etc) and that members of a collection can be in multiple collections. Knowing if the members of that collection are viewable outside of the collection is also helpful.

Script to delete Movies without subs on Bazarr

Hey Im pretty new at this but Im from Guatemala so my library is mostly dual audio (english and spanish) however before finding good sites to download dual audio content I used radarr/sonarr to download most of my content so I have several movies which bazarr cant find any subtitles in spanish and I would like to get a list of all those from bazarr and delete those movies from my library so I can replace them with a dual audio version however in order to delete them I have to look at my bazarr to know which ones dont have subs and then go to delete the file, if there could be a script that can do that it would be great

poster_exporter_importer.py: Allow only exporting/importing posters

Hello :-D

This is about music librarys and album art shown in Plex Clients. (maybe Movie/TV libraries can adopt this request later too)

The problem:
Short: Very often, when adding new music to Plex, the wrong cover-art is added to an album.

Long: As we know (me, at least, and a lot of Users at Plex Forum) Plex sucks at adding album art for music albums (embedded in the files or locally stored inside the album folder as cover.jpg).
If a mp3 file has frontcover and backcover embedded, PMS would chose the backcover in 40% instead of the frontcover (which mostly is preferred by the user).
Also, if a cover.jpg is included in the folder, where the mp3 files resist, PMS still adds the backcover (or even disc-artwork, if embedded).
If so, the user has to correct the album art manually, which is a lot of work for large libraries.

The solution:
A script which checks each album folder for a cover.jpg and adds/changes the album art to that cover.jpg

The result:
Locally stored cover.jpg is used as album art for each album, instead of PMS chosen (wrong) album art.

Thank you for reading this and thinking about it :-D

P.S.
Actually, this SHOULD be done by PMS itself, but it is not. A lot of threads exist in the Plex forum, but unfortunately, they did not fix the bugs...

list_to_collection: add support for tvdb lists

Only one feature should be requested per issue. Please make multiple issues if you have multiple feature requests

In what file should the feature be added?
list_to_collection.py
What is the feature request?
Currently, only TMDb lists are supported to "import". Add support for The TVDB lists too.

IMDB keywords to Plex genre

Here's my idea- The user creates a list of keywords. The script then scrapes IMDB keywords for each movie in the library and any matching the user's list are added to the genre field in Plex.

For example:
The script has the keywords "Robot, Dinosaurs, Tragedy, Time Travel, Espionage"
The Terminator original genre field contains "Action, Thriller, Science Fiction" as these are the listed genres on TMDB
The script finds Robot and Time Travel within the Terminator keywords on IMDB
The Terminator genre field now contains "Action, Thriller, Science Fiction, Robot, Time Travel"

The user created list of keywords is necessary, otherwise each movie could end up with potentially hundreds of genres.

Great work! Thanks for everything.

Extra target selectors regarding libraries

Only one feature should be requested per issue. Please make multiple issues if you have multiple feature requests

In what file should the feature be added?
plex_exporter_importer.py

What is the feature request?
Add the arguments '--AllMovies','--AllShows' and, once music is supported, '--AllMusic' to target all [type] libraries. It's an argument set that targets between --All and --LibraryName.

This request was made by @RBeatse

Connection from IMDb list

Title says it all. User provides a list ID for IMDb, and the script automatically creates a collection for that list using the items in the library that are also on the list. Bonus if it works with TMDb and TVDB as well.

Possible for auto_audiochannels.py to be more selective?

Hey mate, thank you so much for this collection of scripts, they are VERY useful. Particularly the auto_audiochannels script.

My issue is I have 2160p Remuxes and due to Plex not being able to Direct Play TrueHD 7.1 audio (particularly on Apple TVs) if it is the default audio track then Plex will transcode and not direct play my movies. So I am using this to change the default audio within the movies to a 6 channel track rather than the 8 channel true HD. I have two questions that you can hopefully assist with:

First of all for this to be useful it would need to change the audio for everyone I am sharing my Plex server with; As I do not want my family to be transcoding 4k content, will this script change the default audio track for everyone with access to my plex server (since I am providing the API token) or is it just for me?

Second, if the above is true and it changes the default audio for everyone, is it possible for me to modify the script to be a bit more selective? For example, DTS-HD MA 7.1 audio will direct play to Apple TV without transcoding even though it is an 8 channel audio like TrueHD which will not direct play; Can I modify the script to select audio formats if they are available? Like if an audio track exists containing 8 channels and DTS in the name then select that as default (DTS-HD MA 7.1), else if track exists containing 6 channels and contains DTS in the name select that (DTS-HD MA 5.1),, else if track exists containing 6 channels and has AC3 5.1 in the name select that (EAC3 5.1), etc?

I'm really hoping this script can affect all users else I'll have to just set up a separate 4k library/replace my 4k content with 1080p Remuxes as they don't contain TrueHD for the most part.

Thanks again for all your work and I look forward to a reply!

Import/Overwrite “CleanTitle, The” in Radarr/Sonarr Media Management

Currently in Radarr and Sonarr Media Management (I’ll focus on Radarr for simplicity), in the Movie Naming Sections “Standard Movie Format” and “Movie Folder Format”, you can structure the naming formats to have a “CleanTitle” or a “Title, The” format, but not both. CleanTitle removes non uniform characters, but it still misses a lot. “Title, The” puts the ‘The’ after the rest of the title of the movie.

For instance, CleanTitle names ‘¡Three Amigos!’ ‘Three Amigos!’ but misses Amélie, whereas it doesn’t remove the é. So it’s like 60%-75% solid

“Movie, The” works as intended but cannot be combined with the aforementioned “CleanTitle”. So if a movie is called “The Höuse” it could only be imported as “Höuse, The” or “ The House”, but not “House, The”.

Per your Reddit comment, it would be more robust than just renaming a folder based off the file or visa versa because I, and I’m sure many others, use different naming structures for the movie file and the folder it sits in. For instance my structure for folders is “Title, The (year) (IMDb code). And my files are “ CleanTitle (Year) (Edition Tag) (Video Quality) (Video Codec) (Audio Codec) (Audip Channels) (Release Group) (IMDb ID)”. This is done so that the folder always stays the same after upgrades, and files have in-depth info in their title.

So basically it comes down to how Radarr and Sonarr create the folder and import the files, and if there’s a way to intercept it. Or at least fix it after it’s done. As always, no sweat if this isn’t possible! Thanks!

Plex Users Default to Remote Stream 1080p (8mbps)

Plex for some unknown reason (has been complained about for many years from what I've seen) defaults "remote stream" to 720p, so all users need to go into their settings and amend their remote stream to a higher res/original manually.

I wondered if a script could be made to default make users remote stream be set to 8mbps. I mention this specifically due to my upload plus amount of users I have, 8mbps is best for me.

Much appreciated dude! No rush though.

unmonitor sonarr script issue (and feature resquest)

Hi there,

seem to be having an issue trying to run the unmonitor_downloaded_episodes.py script on

sonarr
Version
3.0.7.1477
Package Version
3.0.7.1477-ls141 by linuxserver.io
Mono Version
5.20.1.34

via container on unraid.

ui errors out with the following:

Script exited with code: 1
Testing will execute the script with the EventType set to Test, ensure your script handles this correctly

Screen Shot 2022-04-13 at 1 11 34 PM

The relevant log entries are:
13:11:20.6|Error|unmonitor_downloaded_episodes.py|Traceback (most recent call last):
13:11:20.6|Error|unmonitor_downloaded_episodes.py| File "/config/scripts/unmonitor_downloaded_episodes.py", line 19, in
13:11:20.6|Error|unmonitor_downloaded_episodes.py| import requests
13:11:20.6|Error|unmonitor_downloaded_episodes.py|ModuleNotFoundError: No module named 'requests'
13:11:20.6|Warn|SonarrErrorPipeline|Invalid request Validation failed:
-- : Script exited with code: 1

Just to make sure i haven't missed anything, i've got the script located in the appdata folder mapped to /config/scripts/, and made executable with chmod +x. Only changes made were to the "setup section" - here's my data entry on the script:
Screen Shot 2022-04-13 at 1 26 40 PM

Looks like a great script, hopefully there' an easy fix for it. Also worth noting, the sonarr custom script options have changed slightly and now say "on download" instead of "on import".

As a small question / feature request, is there an easy, more automated way to install python3 in these sonarr containers without having to do a manual install each time the container changes? Thanks in advance, happy to help troubleshoot this if you need anything!

Script to set TV shows "auto delete after watching" under the series advanced settings

Script to automatically set the "delete after 1 week" option under each TV series advanced settings. Script should be able to be easily edited for each of the options listed. To delete after x amount of days/week.

This wasnt originally my idea but from someone else on reddit . I like the idea and I've been trying to figure out a simple way to do this. Because it sucks having to go through and set this setting in plex everytime a new series is added. I always have to go through and check all my series to make sure this option is checked.

plex_exporter_importer: Add reset option

Only one feature should be requested per issue. Please make multiple issues if you have multiple feature requests

In what file should the feature be added?
plex_exporter_importer.py
What is the feature request?
An argument should be added, -r/--Reset, that doesn't import or export, but unlocks all the metadata in the targeted list. This way, on metadata refresh, you've un-imported the metadata.

Plex_sync: Mismatching media on source and target server

In which file is the bug?
plex_sync.py

Describe the setup (arguments and their values, how it was run, etc.):
Any setup that requires matching media on the source server to the target server. aka finding the ratingkey of the media on the target server.

Describe what the bug is:
Matching the media sometimes leads to a mismatch. With season posters, sometimes season x posters from other series are "matched". Or episodes of series aren't sync in watched status because they weren't found on target (even though it was there).

Describe what should be happening:
The matching should happen correctly or the media should be skipped but not mismatching and continuing.

plex_loadbalancer.sh - Not failing over

Here's my config, note the 192.168.1.4 is windows and 192.168.1.69 is unRAID.

main_plex_ip=192.168.1.69
main_plex_port=32400
main_plex_token=******

main_tautulli_ip=192.168.1.69
main_tautulli_port=8181
main_tautulli_token=******

backup_plex_ip=192.168.1.4
backup_plex_port=32400
backup_plex_token=******

backup_tautulli_ip=192.168.1.4
backup_tautulli_port=8181
backup_tautulli_token=******

  • Started a stream on main_plex_ip, paused the Plex docker to take it "offline" (though would love a separate method to put it in maintenance mode so I can work on it while other streams are moved)
  • Paused Plex docker
  • Let buffer run out

The result is stuck buffering.

Not sure where to go from here. Logs haven't proved useful outside of testing to make sure the script executes.

How do I go about troubleshooting?

Also, instructions say to enable Triggers & Arguments for Playback Start & Stop, nothing regarding Playback Error and Plex Server Down, which I would have thought would be useful... Look forward to your reply.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.