pdbme / pdbMate

pdbMate supports you organizing your media library by automatic renaming and organizing by media sites.
Apache License 2.0
15 stars 1 forks source link

pdbMate

pdbMate supports you organizing your media library by automatic renaming and organizing by media sites.

pdbMate is a tool with a Command Line Interface (CLI) that performs different tasks to help you handle files downloaded from usenet.

The tool is specialized for adult content and uses an API to gather information about sites, actors, video titles and release names.

We try to avoid any adult related terms in any code and documentation about pdbMate.

Why did we come up with pdbMate: There are no media manager that can sort adult content. pdbMate tries to fill this gap.

Breaking changes

pdbMate has been updated to dotnet6

Install

Download the latest release from releases for your operating system:

https://github.com/pdbme/pdbMate/releases

Install .NET framework 6.0 Runtime

https://dotnet.microsoft.com/en-us/download/dotnet/6.0/runtime

If build from source: Rename the appsettings.Template.json to appsettings.json

Configure appsettings.json to your needs:

define sourcefolders (folders that are recursively searched for videos to rename)
define on targetfolder (your files will be moved to this folder)
get an api key and fill out PdbApi -> ApiKey

CommandLine Usage

You can call the CLI with different functions, for example:

rename files but do not actually change anything (just see what would happen):

pdbMate rename --dryrun

rename files with no turning back:

pdbMate rename

add new downloads to sabnzbd

pdbMate download

add new downloads to nzbget

pdbMate download --client nzbget

rename and download with sabnzbd

pdbMate autopilot

rename and download with nzbget

pdbMate autopilot --client nzbget

The dryrun parameter means no files will be renamed. So you can check the results before renaming and moving your files. The client parameter sets the usenet download client that should be used (sabnzbd or nzbget). Default value for this parameter is sabnzbd.

Rename

Typical use-case: You are downloading adult content from usenet and want to sort your downloads by sites (one folder per adult website) and you want to sort out duplicate files. When downloading from usenet you typically have one release per folder. This is not optimal when using media managers like Plex. You want some kind of sorting in a reasonable folder structure.

Renaming and moving files makes sense when you want to watch videos on your local PC and even when adding content to your media managers. There are no media manager that can sort adult content.

What does the rename function do (Step-By-Step)?

Download

The download option enables you to automatically add nzb files to sabnzbd or nzbget for all newly released videos based on your favorite sites and actors (specified in porndb.me).

What does the download function do (Step-By-Step)?

The major advantage with pdbMate download function in comparison to rss feeds is you do not get duplicates at all and you can specify prefered video qualities (video resolution).

Once you configured pdbMate correctly on your downloading machine, you can manage your favorite sites and stars on porndb.me and the rest is done automatically by pdbMate and your usenet downloader.

Configured correctly you now have an automated download functionality setup for porn from usenet. As far as we know this has never been accompished before. Custom rss feeds where the best option you had until now.

Configuring pdbMate

In the same directory as pbbMate there is a appsettings.Template.json - please rename this file to appsettings.json.

Once renamed, you have to change some settings:

porndb.me API

Most importantly you have to replace --MY-OWN-APIKEY-- with your personal api key at porndb.me.

renaming config

You should specify one or more SourceFolders. Then you should specify the target folder where the renamed files will be moved to. FilenameTemplate and FolderTemplte do not need to be changed, you can edit they to your personal preference if you like.

Examples for FilenameTemplate:

{Video.Site.Sitename} - {Video.Title} - {VideoQuality.SimplifiedName}.{PdbId}{FileExtension}
{Video.ReleasedateShort} - {Video.Title} - {VideoQuality.SimplifiedName}.{PdbId}{FileExtension}
{OriginalFilename}.{VideoQuality.SimplifiedName}.{PdbId}{FileExtension}

Available placeholders:

{Video.Site.Sitename}
{Video.Site.Id}
{Video.Id}
{Video.Title}
{Video.Releasedate}
{Video.ReleasedateShort}
{VideoQuality.SimplifiedName}
{VideoQuality.Name}
{FileExtension}
{PdbId}
{OriginalFilename}

configure download client

You can set connection details to your favorite usenet download client. Both clients can be configured but you determine with your command line call arguments (e.g. --client nzbget) which client is used. The default client is sabnzbd.

configure download settings

In UsenetDownload you can change: