Casvt / Plex-scripts

Plex, the arr's and tautulli scripts coming from user requests
GNU General Public License v3.0
338 stars 30 forks source link

Unlock all metadata fields #174

Closed JPH71 closed 11 months ago

JPH71 commented 1 year ago

I was hoping you can code a script to unlock all the metadata items for a single film in a library. Kind regards

JPH71 commented 1 year ago

Bump... :-)

Casvt commented 1 year ago

Kapowarr and MIND are taking up so much of my time, I just don't have a moment to work on Plex-scripts.

JPH71 commented 1 year ago

Ok man... thanks for letting me know

On Thu, 3 Aug 2023, 21:00 Casvt, @.***> wrote:

Kapowarr and MIND are taking up so much of my time, I just don't have a moment to work on Plex-scripts.

— Reply to this email directly, view it on GitHub https://github.com/Casvt/Plex-scripts/issues/174#issuecomment-1664481698, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI3AKMLKU2YB3TP37ZXY6LXTPYN7ANCNFSM6AAAAAASXNJTZA . You are receiving this because you authored the thread.Message ID: @.***>

Casvt commented 11 months ago
from requests import put

plex_ip = ''
plex_port = ''
plex_api_token = ''

# ENTER ID OF LIBRARY HERE
library_id = -1
# ENTER ID OF MOVIE HERE
movie_id = -1

put(
    f'http://{plex_ip}:{plex_port}/library/sections/{library_id}/all',
    params={
        'X-Plex-Token': plex_api_token,
        'type': 1,
        'id': movie_id,
        'title.locked': 0,
        'titleSort.locked': 0,
        'originalTitle.locked': 0,
        'editionTitle.locked': 0,
        'originallyAvailableAt.locked': 0,
        'contentRating.locked': 0,
        'studio.locked': 0,
        'tagline.locked': 0,
        'summary.locked': 0,
        'genre.locked': 0,
        'writer.locked': 0,
        'producer.locked': 0,
        'collection.locked': 0,
        'art.locked': 0,
        'thumb.locked': 0,
    }
)