Code Monkey home page Code Monkey logo

plex-utills's Introduction

plex-utills

Description

Hide-4k Files

The plex streaming brain has come on a long way and I believe it's no longer necessary to separate your 4k files into a separate library.

There is still the risk, when keeping all your media in a single library, of having a film where the only copy is 4k. In this case running the hide-4k script will add an 'Untranscodable' tag to these items.

If you add a lower resolution to your library it will remove the tag.

You will need to set the restrictions in your users profile to exclude the 'Untranscodable' label.

Run this script on a regular basis to keep on top of your library.

4klibrary

I don't like the idea of having two separate libraries for 4k and 1080p films, the whole process seems like a lot of extra work when it comes to watching movies. I have to rember if I have a 4k version or not. I prefer to have a single library to scroll though, when I want to watch a film I want to just select a film and watch, I don't want to have to remember whether or not I have a 4k version and if someone else selects I want them to select the best quality by default.

Running this script assumes you have a single library with all your films, collections enabled and set to hide items that are in a collection.

When you run the script it will scan your library, it will find all of the films with both a 4k and non 4k version. (For this to work best, it is better to leave your library to its default behaviour of combining the resolutions into a single item in the library.)

Once it has found films with both 4k and non 4k versions it will split the file into two separate library items, add both items to a collection with the same name. It then tags all of your films with sharing labels. For all the highest resolution version of your film it gives it the tag 'Best' This includes 1080p and 4k versions. For all of your non4k files it also adds the tag 'Transcodable'. With these tags you can restrict your users to only be able to see the trascodable films, so they will never see the 4k versions but will see the rest of your library. Where as the server admin can see everything, all in one single library.

Disney collection

This is a script to find all films in your library with a studio with Disney in the studio's title, e.g. Walt Disney Pictures or Disney animation. It then adds all of these films into a collection named Disney.

Install

Requirements

Python3 python3-pip

sudo apt install python3 python3-pip

Instructions

Clone to your machine sudo git clone https://github.com/jkirkcaldy/plex-utills.git

Cd into the folder cd plex-utills

install the requirements sudo pip3 install -r requirements.txt

Edit the config.ini file, change the plex url and the plex token and select your film library.

Run the script. python3 4klibrary.py

Optional

Set cron job to run the script daily to automatically run the script and organise your library

Profit.

Modified from this script by u/spazatk

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.