Discussion - Plex top/trending playlists | PlexGuide.com

Discussion Plex top/trending playlists

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now

murkr

Experienced
Original poster
Donor
Nov 5, 2018
99
32
Last edited:
  • Like
Reactions: 1 users

3days

Experienced
Jan 24, 2018
55
6
I'm running this script, pretty straightforward to install manualy if you want it :)
 

murkr

Experienced
Original poster
Donor
Nov 5, 2018
99
32
I'm running this script, pretty straightforward to install manualy if you want it :)
I'm just trying to run it manually, I'm stuck on the bit that asks for '/path/to/symlink/supporting/filesystem/Movies?' in one of the recipes. What do you have?
 

murkr

Experienced
Original poster
Donor
Nov 5, 2018
99
32
Under the new library section?
I want to do a top 50 trending from trakt.

On the config file it wants me to fill in the path to symlink supporting filesystem... doesn't mean anything to me. I assume it isn't unionfs/Movies/
 

3days

Experienced
Jan 24, 2018
55
6
No, it's just a folder on the local HD. I'm pointing it to /mnt/lists/trending

Where the scripts creates a symlink to the gdrive file.

I then in crontab run the script every 24 h like this:

29 3 * * * rm -r /mnt/lists/trending/*
30 3 * * * python /opt/plex_library/plexlibrary movies

So first remove all the symlinks, and then create now and scan the library. Dont know if there is something wrong with the script, but for me it wont remove items that no longer should be on the list.
 

murkr

Experienced
Original poster
Donor
Nov 5, 2018
99
32
No, it's just a folder on the local HD. I'm pointing it to /mnt/lists/trending

Where the scripts creates a symlink to the gdrive file.

I then in crontab run the script every 24 h like this:

29 3 * * * rm -r /mnt/lists/trending/*
30 3 * * * python /opt/plex_library/plexlibrary movies

So first remove all the symlinks, and then create now and scan the library. Dont know if there is something wrong with the script, but for me it wont remove items that no longer should be on the list.
I wonder if it's a permission issue it looks like the first cron job should be doing this.

The other thing was that it mentions 'Copy config-template.yml to config.yml and edit it with your information. I've completed the template, but where exactly does it mean to add this? Is it the one in /plexlibrary ? Do you literally just paste the template into that?

I think that's the last thing I have left to do. I appreciate your help!
 

3days

Experienced
Jan 24, 2018
55
6
I wonder if it's a permission issue it looks like the first cron job should be doing this.

The other thing was that it mentions 'Copy config-template.yml to config.yml and edit it with your information. I've completed the template, but where exactly does it mean to add this? Is it the one in /plexlibrary ? Do you literally just paste the template into that?

I think that's the last thing I have left to do. I appreciate your help!

The cronjob does the trick, so that's fine. But shouldent have to do that. The script it self should remove symlinks that no longer qualify for the trending list on its own. But I did a workaround with the rm cronjob :)

yes, just copy the template .yml file to the recepie folder.
 
M

MrDoob

Guest
Is there any option to Creat list

Like. : in Cinema ( like 4 weeks or 8 weeks )
 

murkr

Experienced
Original poster
Donor
Nov 5, 2018
99
32
The cronjob does the trick, so that's fine. But shouldent have to do that. The script it self should remove symlinks that no longer qualify for the trending list on its own. But I did a workaround with the rm cronjob :)

yes, just copy the template .yml file to the recepie folder.

python plexlibrary movies_trending
Error: No such recipe
Available recipes:


hmmm .... do I need to tell it what libraries are available? I've filled in the info. In the instructions it says use
python plexlibrary -h but it asks me for arguments?
 

murkr

Experienced
Original poster
Donor
Nov 5, 2018
99
32
Is there any option to Creat list

Like. : in Cinema ( like 4 weeks or 8 weeks )
You could probably create a 'recipe' for it. Yes.

Would be amazing to get this option on the install, then we could all share our recipes :)
 

3days

Experienced
Jan 24, 2018
55
6
python plexlibrary movies_trending
Error: No such recipe
Available recipes:


hmmm .... do I need to tell it what libraries are available? I've filled in the info. In the instructions it says use
python plexlibrary -h but it asks me for arguments?
Do you have a movies_trending.yml in the recepie folder? Not the examples folder?
 

3days

Experienced
Jan 24, 2018
55
6
Is there any option to Creat list

Like. : in Cinema ( like 4 weeks or 8 weeks )
If there is a trakt list, that list what movies are in cinema right now. It can auto create a plex library with those movies in it.
 

murkr

Experienced
Original poster
Donor
Nov 5, 2018
99
32
Do you have a movies_trending.yml in the recepie folder? Not the examples folder?
Yea realised after I posted haha...

Tried to create it and I get a python error

Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/opt/python-plexlibrary/plexlibrary/__main__.py", line 3, in <module>
main()
File "plexlibrary/plexlibrary.py", line 60, in main
r = Recipe(args.recipe)
File "plexlibrary/recipe.py", line 33, in __init__
self.config = ConfigParser(config_file)
File "plexlibrary/config.py", line 15, in __init__
super(ConfigParser, self).__init__(filepath)
File "plexlibrary/utils.py", line 27, in __init__
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: '/opt/python-plexlibrary/config.yml'

Will look through the config when I get back home shortly and try and work out where I went wrong. I'm guessing the location perhaps.
 

3days

Experienced
Jan 24, 2018
55
6
Yea realised after I posted haha...

Tried to create it and I get a python error




Will look through the config when I get back home shortly and try and work out where I went wrong. I'm guessing the location perhaps.
Hrm, duno, here is mine:

Code:
# Supported types: movie, tv
library_type: 'movie'

# Source list(s)
# * Experiment with the limits and order of the URLs below
#   to get a different balance.
source_list_urls:
  - 'https://api.trakt.tv/movies/trending?limit=2'
  - 'https://api.trakt.tv/movies/watched/weekly?limit=100'
  - 'https://api.trakt.tv/movies/trending?limit=50'
  - 'https://api.trakt.tv/movies/watched/monthly?limit=150'
  - 'https://api.trakt.tv/movies/watched/yearly?limit=500'

# Source library details
source_libraries:
  - name: '.Movies HD'
    folders:
      - '/unionfs/movies/HD Movies'
     # - '/path/to/More Movies'
#  - name: 'Different Movies'
 #   folders:
     # - '/path/to/Different Movies'

# New library details
new_library:
  name: '.Movies Trending'
  folder: '/mnt/lists/trending'
  sort: yes
  sort_title:
    format: '{number}. {title}'
    visible: yes
    absolute: no  # Skips numbers for missing items
  # Limit the age (in years) of items to be considered
  # * 0 for no limit
  max_age: 3
  # Maximum number of items to keep in the library
  max_count: 30
  # Remove items that no longer exist in the source lists
  remove_from_library: yes

# Weighted sorting (requires TMDb API)
weighted_sorting:
  enabled: yes
  better_release_date: no
  weights:
    # Think of these as percentages,
    # but they don't have to add up to 1.0
    # * Additive
    # * Higher value -> more important
    index: 0.60
    vote: 0.20
    age: 0.15
    random: 0.05
    # Penalize (<0) or reward (>0) certain (TMDb) genres
    # * Final weight is multipled by these values
    genre_bias:
      'Animation': 0.7
 

murkr

Experienced
Original poster
Donor
Nov 5, 2018
99
32
Got it to work woop!!!

Thank you so much :) The issue was that my library is called Films and not Movies
I say that... it seems to be empty. I guess something to do with the sym link
 

murkr

Experienced
Original poster
Donor
Nov 5, 2018
99
32
Hrm, duno, here is mine:

Code:
# Supported types: movie, tv
library_type: 'movie'

# Source list(s)
# * Experiment with the limits and order of the URLs below
#   to get a different balance.
source_list_urls:
  - 'https://api.trakt.tv/movies/trending?limit=2'
  - 'https://api.trakt.tv/movies/watched/weekly?limit=100'
  - 'https://api.trakt.tv/movies/trending?limit=50'
  - 'https://api.trakt.tv/movies/watched/monthly?limit=150'
  - 'https://api.trakt.tv/movies/watched/yearly?limit=500'

# Source library details
source_libraries:
  - name: '.Movies HD'
    folders:
      - '/unionfs/movies/HD Movies'
     # - '/path/to/More Movies'
#  - name: 'Different Movies'
#   folders:
     # - '/path/to/Different Movies'

# New library details
new_library:
  name: '.Movies Trending'
  folder: '/mnt/lists/trending'
  sort: yes
  sort_title:
    format: '{number}. {title}'
    visible: yes
    absolute: no  # Skips numbers for missing items
  # Limit the age (in years) of items to be considered
  # * 0 for no limit
  max_age: 3
  # Maximum number of items to keep in the library
  max_count: 30
  # Remove items that no longer exist in the source lists
  remove_from_library: yes

# Weighted sorting (requires TMDb API)
weighted_sorting:
  enabled: yes
  better_release_date: no
  weights:
    # Think of these as percentages,
    # but they don't have to add up to 1.0
    # * Additive
    # * Higher value -> more important
    index: 0.60
    vote: 0.20
    age: 0.15
    random: 0.05
    # Penalize (<0) or reward (>0) certain (TMDb) genres
    # * Final weight is multipled by these values
    genre_bias:
      'Animation': 0.7
Where does your mount go to? "
mnt/lists/trending"
 

3days

Experienced
Jan 24, 2018
55
6
Where does your mount go to? "
mnt/lists/trending"
No, that's just were the script creates the symlinks.

And it looks for matching movies in plex, and the source: /unionfs/movies/HD Movies

So it creats a symlink in mnt/lists/trending to the file located in /unionfs/movies/HD Movies
 

murkr

Experienced
Original poster
Donor
Nov 5, 2018
99
32
No, that's just were the script creates the symlinks.

And it looks for matching movies in plex, and the source: /unionfs/movies/HD Movies

So it creats a symlink in mnt/lists/trending to the file located in /unionfs/movies/HD Movies
Ok I see what you're saying. I can see the for example '
'Aquaman (2018)'@' in my trending folder. It has created the libraray and pointed in the right place, but it's empty and it seems that I can't edit it. When I try and turn off thumbnails it thinks about it for a while and then it says Your changes could not be saved.

I can't seem to see anything about it in the logs ..
 

Recommend NewsGroups

      Up To a 58% Discount!

Trending