#Use PMM to create trakt list

1 messages · Page 1 of 1 (latest)

zinc zinc
#

I read the wiki on using PMM to create a trakt list. What is the method to take a plex collection that I manually created and turn it into a pmm collection? After that I wanted to then use pmm to turn it into a trakt list.

lucid reefBOT
#

Welcome @zinc zinc!

It looks like you have not yet completed #938455615741775902, this will allow us to help you quicker.

Someone from <@&938443185347244033> will assist when they're available.

Including the meta.log from the beginning is a huge help, type !logs for more information.

#

You can press the "Close Post" button above or type /close at any time to close this post.

stone ferry
#

Reference to wiki page please?

gloomy sun
#

What is the method to take a plex collection that I manually created and turn it into a pmm collection?

Depends entirely on what criteria you used to add things to it. There's no one right answer for how to do this.

I have a script that will create a PMM YAML based on a Plex collection, but it's completely naive, and just generates a collection definition that lists the things in the collection. Maybe that's useful.

If your plex collection is a smart collection, just create a PMM collection definition with that same filter or search.

Perhaps whatever other criteria you used can be duplicated in PMM [comedy movies from before 1980 or the like].

zinc zinc
#

The collection was made before I used pmm. I just manually added a tag to each movie.

#

the tag was the name of the collection.

gloomy sun
#

OK

zinc zinc
#

I think I could use that script you mentioned that generates a collection definition that lists the things in the collection. That should be perfect for turning my collection into a pmm collection.

gloomy sun
#

Link in my profile

stone ferry
zinc zinc
#

Still struggling with it.

gloomy sun
zinc zinc
#

Tried to run script and failed. I did not have much time. I will give it a go tonight or tomorrow. My issue is more poor knowledge of python.

hard silo
zinc zinc
#

The issue I am having is I downloaded the file extract_collections. It is a python file correct? I double-click and it seems cmd opens and closes. I am not sure what to do with the file. Sorry.

gloomy sun
#

The required setup is described in the readme.

zinc zinc
#

At Plex-Meta-Manager/extract_collections.py, it says file not url. My limited knowledge of clone repo (#1 above) requires a url not a file.

gloomy sun
#

I have no idea what that means.

#

open a terminal window.

clone the repo:

git clone https://github.com/chazlarson/Media-Scripts.git

go into the directory:

cd Media-Scripts

create a virtual environment:

python3 -m pip venv my-venv

activate the virtual environment:
linux or OS X:

source my-venv/bin/activate

Windows:

.\my-venv\Scripts\activate

Install the requirements:

python -m pip install -r requirements

Go into the Plex-Meta-Manager directory:

cd Plex-Meta-Manager

Copy .env.example to .env

Edit .env

You need to fill in these two things:

PLEX_URL=https://plex.domain.tld             # URL for Plex; can be a domain or IP:PORT
PLEX_TOKEN=PLEX-TOKEN

Then run the script with:

python extract_collections.py
zinc zinc
#

Thanks so much for the detailed instructions. When creating virtual environment I receive an error "Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases." I just installed an updated python3 and checked the creat PATH but still received the same error - "Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases."

gloomy sun
#

No idea; I don't use windows. I did the windows walkthrough in a windows 10 VM and don't have one around to test with. Perhaps a windows user can chime in.

stone ferry
#

Once that was done and a fresh reboot, I downloaded the latest version of python (not windows store) and installed it.

#

On the very first part of the install there is a little checkbox at the bottom of the installer that mentions something about the path. You want to tick that box.

#

After that I was golden

zinc zinc
#

I gave it a good try and uninstalled two versions of python. Rebooted the computer then downloaded python3 from the python website - checked the box to add PATH. Still an error. So let me go about my situation from a different angle. I want to be able to add shows and remove shows to collections that have multiple url adding the shows. In summary I have 3 urls forming my Survival Collection. There are a few movies I do not feel belong in the collection and there some movies I want to add that the three URLs missed. If I manually add them by adding Survival tag to them the next day after I run PMM they are removed. Any ideas how I should try to customize my collection?

hard silo
#

Do the above with PMM. It sounds like you’re still trying to do manual, what could be done with PMM

zinc zinc
#

How do I add the movie love and monsters in survival collection of the attached .yml ? How do I exclude the movie The last of the Mohicans in survival collection of the attached .yml ?

hard silo
#

as far as love and monsters,

  Survival:
    sort_title: 600_1surv
    imdb_list:
      - url:  https://www.imdb.com/list/ls051804359
      - url:  https://www.imdb.com/list/ls021287483
    trakt_list: https://trakt.tv/users/majeed_pk/lists/the-best-survival-movies?sort=rank,asc
    sync_mode: sync
    imdb_id: tt2222042      #Love and Monsters
    radarr_add_missing: false
    summary: A survival movie is a film that depicts the struggle of one or more characters to survive in a hostile environment. The environment can be anything from a deserted island to a post-apocalyptic wasteland.

the above will add Love and Monsters... The only way to exclude Last of the Mohicans is to either find or create a list that doesn't include that movie. If you exclude globally, it will be exluded from all collections

#

@zinc zinc uparrow

gloomy sun
#

You could filter this collection on title.not

gloomy sun
#
  Survival:
    sort_title: 600_1surv
    imdb_list:
      - url:  https://www.imdb.com/list/ls051804359
      - url:  https://www.imdb.com/list/ls021287483
    trakt_list: https://trakt.tv/users/majeed_pk/lists/the-best-survival-movies?sort=rank,asc
    sync_mode: sync
    imdb_id: tt2222042      #Love and Monsters
    filters:
      tmdb_title.not: The Last of the Mohicans
    radarr_add_missing: false
    summary: A survival movie is a film that depicts the struggle of one or more characters to survive in a hostile environment. The environment can be anything from a deserted island to a post-apocalyptic wasteland.
hard silo
#

Ohhh. I saw title.not was not listed as an option in IMDb builders, but didn’t think to check tmdb

gloomy sun
#

It's a filter, not a builder option.

#

I used tmdb_title instead of title to insulate against someone renaming it in Plex.

zinc zinc
#

Sounds great. I will give it a shot.

hard silo
#

oh yeah, duh. thanks carrot

zinc zinc
#

/close

lucid reefBOT
#

Hello @zinc zinc, a user has suggested that this thread has been resolved and can be closed.

Please confirm that you are happy to close this thread by typing /close or by pressing the Close Post button which is pinned to this thread.

zinc zinc
#

Quick question: I have the following that does not seem to remove the titles. Is it incorrect to separate by commas? tmdb_title.not: The Last of the Mohicans, The Beach, Grizzly Man

gloomy sun
#
    filters:
      tmdb_title.not:
        - The Last of the Mohicans
        - The Beach
        - Grizzly Man
zinc zinc
#

Thanks. OK to close.

lucid reefBOT
#

Hello @zinc zinc, a user has suggested that this thread has been resolved and can be closed.

Please confirm that you are happy to close this thread by typing /close or by pressing the Close Post button which is pinned to this thread.