rivenmedia / riven

Handle your Media Library with ease!
https://rivenmedia.github.io/wiki/
GNU General Public License v3.0
396 stars 54 forks source link

Feature: Custom libraries/filters for symlinks #877

Open MYETRO opened 1 week ago

MYETRO commented 1 week ago

Hi, the Anime TV library folder works. Can we implement custom libraries?

Here's the idea I had. I’m not a developer, so I’m not sure if it’s fully doable, but it goes like this:

  1. User-Defined Custom Filters: Allow users to create their own filters with fields like:

    • filter_name: A name for the filter (e.g., kids_movies).
    • filter_genre: Genre to filter by (e.g., Animation).
    • filter_restriction: Age restriction (e.g., "U", "PG").
    • filter_path: Path for the custom library (e.g., library/kids_movies).
    • filter_duplicate_main_library: Option to duplicate items in the main library (yes/no).
  2. Save and Update Filter Data:

    • After the user creates and saves a filter, make an API call to TMDb to retrieve a list of items matching the filter criteria.
    • Save this list in the database with fields like filter_name_id, filter_path, and the tmdb or imdb ID.
    • Schedule the filter to refresh daily to keep it up-to-date.
  3. Check and Symlink Items:

    • When processing items for symlinking, check the queue to see if any item matches an entry in the filter_table.
    • If a match is found, use the filter_path from the filter to create a symlink in that location.