What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

Ideas Anyone played with Unmanic

ch1p2014

Respected Member
This looks very good, wonder if it could be incorporated into the pgblitz project. hats off to developer josh5 looks very good.

Unmanic - Library Optimiser
Unmanic is a simple tool for optimising your video library to a single format. The ultimate goal of Unmanic is to take the complexity out of converting your whole media library. The idea is to simply point Unmanic at your library and let it manage it.
Unmanic provides you with the following main functions:
  • A scheduler built in to scan your whole library for files that do not conform to your configured video presets. Videos found with incorrect formats are then queued for conversion.
  • A folder watchdog. When a video file is modified or a new file is added in your library, Unmanic is able to check that video against your configured video presets. Like the first function, if this video is not formatted correctly it is added to a queue for conversion.
  • A handler to manage multiple file conversion tasks at a time using ffmpeg
  • A Web UI to easily configure your preferred video presets and monitor the progress of your library conversion.
UNMANIC - Library Optimiser

 

Reconos

Junior Member
would it work with Gdrive? I mean, it would have to download the file, convert, and then re-upload?
 

ch1p2014

Respected Member
im sure it would somehow, im hoping one of the boffins adds it to the apps, i wouldnt know were to start :(
 

Sejrup

Respected Member
Here is a working .yml file if you want to give it a try. You might want to change the following two directories in the code depending on your folder structure.

/mnt/downloads/library:/library
/mnt/downloads/tmp/unmanic:/tmp/unmanic

In order to get it to run.
  1. SSH into your server
  2. sudo nano /opt/mycontainers/unmanic.yml
  3. paste below code into the file you just created
  4. save the file
  5. sudo plexguide and install by pressing 5 -> 2 -> 1,
  6. type unmanic, press enter
  7. type deploy, press enter
  8. access the gui via unmanic.example.com

YAML:
#!/bin/bash
#
# Title:      PGBlitz (Reference Title File)
# Author(s):  Admin9705
# URL:        https://pgblitz.com - http://github.pgblitz.com
# GNU:        General Public License v3.0
################################################################################
---
- hosts: localhost
  gather_facts: false
  tasks:
    # FACTS #######################################################################
    - name: 'Set Known Facts'
      set_fact:
        pgrole: 'unmanic'
        intport: '8888'
        extport: '8888'
        image: 'josh5/unmanic:latest'

    # CORE (MANDATORY) ############################################################
    - name: 'Including cron job'
      include_tasks: '/opt/coreapps/apps/_core.yml'

    # LABELS ######################################################################
    - name: 'Adding Traefik'
      set_fact:
        pg_labels:
        pg_labels:
          traefik.enable: 'true'
          traefik.port: '{{intport}}'
          traefik.frontend.auth.forward.address: '{{gauth}}'
          traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'

    - name: 'Setting PG Volumes'
      set_fact:
        pg_volumes:
          - '/opt/appdata/{{pgrole}}:/config'
          - '/mnt/downloads/library:/library'
          - '/mnt/downloads/tmp/unmanic:/tmp/unmanic'
          - '/etc/localtime:/etc/localtime:ro'

    - name: 'Setting PG ENV'
      set_fact:
        pg_env:
          PUID: '1000'
          PGID: '1000'

    # MAIN DEPLOYMENT #############################################################
    - name: 'Deploying {{pgrole}}'
      docker_container:
        name: '{{pgrole}}'
        image: '{{image}}'
        pull: yes
        published_ports:
          - '{{ports.stdout}}{{extport}}:{{intport}}'
        volumes: '{{pg_volumes}}'
        env: '{{pg_env}}'
        restart_policy: always
        networks:
          - name: plexguide
            aliases:
              - '{{pgrole}}'
        state: started
        labels: '{{pg_labels}}'
 

ch1p2014

Respected Member
got it running on webgui, but not sure about the paths im pretty much default so i have a tv gold section,

/mnt/unionfs/tv gold

how would i add this to the unmanic ? when i add the current path it just says Waiting for job

thx
 
M

MrDoob

Guest
Linux is case sensitive

This folder would never work

sudo mkdir -p /mnt/unionfs/tv-gold && chown -cR 1000:1000 /mnt/unionfs/tv-gold

And use this path ;)
 

ch1p2014

Respected Member
thx for the advise, have you got this running and converting buddy ? im not having much luck just says Waiting for job :(
Is there anything else that requires adjustments please
 

Sejrup

Respected Member
You need two paths in order to get it to work.

First path contains the files you want to have converted.
Second path will contain the converted files once done.

So replace this line
- '/mnt/downloads/library:/library'
with
- '/mnt/unionfs/tv-gold :/library'

And then you want to create a new folder which is used while conversion is taking place.
 

ch1p2014

Respected Member
hmm been playing with this for ages now added the tv-gold folder and got some tv stuff in there,
here is my log :-

2019-06-23T00:13:25:INFO:Unmanic - Starting PostProcessor
2019-06-23T00:13:25:INFO:Unmanic.PostProcessor - [FORMATTED] - Starting PostProcessor Monitor loop...
2019-06-23T00:13:25:INFO:Unmanic - Starting Workers
2019-06-23T00:13:25:INFO:Unmanic.Worker - [FORMATTED] - Starting Worker Monitor loop...
2019-06-23T00:13:25:INFO:Unmanic - Starting TaskHandler
2019-06-23T00:13:25:INFO:Unmanic - Starting TaskHandler Monitor loop...
2019-06-23T00:13:25:INFO:Unmanic - Starting UI Server
2019-06-23T00:13:25:INFO:Unmanic.UIServer - [FORMATTED] - Settings up UIServer event loop...
2019-06-23T00:13:25:INFO:Unmanic - Starting LibraryScanner
2019-06-23T00:13:25:INFO:Unmanic.LibraryScanner - [FORMATTED] - Starting LibraryScanner schedule to scan every 1 mins...
2019-06-23T00:13:25:INFO:Unmanic - Starting EventProcessor
2019-06-23T00:13:25:INFO:Unmanic.LibraryScanner - [FORMATTED] - Running LibraryScanner on start
2019-06-23T00:13:25:INFO:Unmanic.LibraryScanner - [FORMATTED] - Running full library scan
2019-06-23T00:13:25:INFO:Unmanic.LibraryScanner - [FORMATTED] - /mnt/unionfs/tv-gold :/library
2019-06-23T00:13:25:INFO:Unmanic.UIServer - [FORMATTED] - Listening on port 8888
2019-06-23T00:13:25:INFO:Unmanic.UIServer - [FORMATTED] - /app/lib/../webserver/assets
2019-06-23T00:13:26:INFO:Unmanic.Worker - [FORMATTED] - Worker Threads under the configured limit. Spawning more...
2019-06-23T00:13:26:INFO:Unmanic.Worker-0 - [FORMATTED] - Starting Worker-0
2019-06-23T00:13:26:INFO:Unmanic.Worker-1 - [FORMATTED] - Starting Worker-1

All i get is IDLE - WORKER 0 waiting for job.

in settings i have

Library path /mnt/unionfs/tv-gold :/library
Cache path /tmp/unmanic

really stuck here so any help appreciated
cheers
 

timekills

Legendary Member
Staff
Donor
hmm been playing with this for ages now added the tv-gold folder and got some tv stuff in there,
here is my log :-

*snip*

All i get is IDLE - WORKER 0 waiting for job.

in settings i have

Library path /mnt/unionfs/tv-gold :/library
Cache path /tmp/unmanic

really stuck here so any help appreciated
cheers
If you used the Library path EXACTLY as you have it posted, then that may be the problem.
In the .yml file there shouldn't be a space between /mnt/unionfs/tv-gold and :/library

So instead of /mnt/unionfs/tv-gold :/library
you want
/mnt/unionfs/tv-gold:/library

Also, I assume the files are actually in the /mnt/unionfs/tv-gold directory? Per the instructions you created the new directory, but did you move the files from "tv gold" to "tv-gold"?
 

ch1p2014

Respected Member
i tried it that way @timekills, there is stuff in the tv-gold folder that should convert.

only way i can get it to do something is if i add my files to /mnt/downloads/library which i assume is default.

in gui / settings /general / library path default is /library and cache path /tmp/unmanic but it doesnt seem to matter what ever i put in the gui path settings
 

timekills

Legendary Member
Staff
Donor
i tried it that way @timekills, there is stuff in the tv-gold folder that should convert.

only way i can get it to do something is if i add my files to /mnt/downloads/library which i assume is default.

in gui / settings /general / library path default is /library and cache path /tmp/unmanic but it doesnt seem to matter what ever i put in the gui path settings
Can you copy and past the entire .yml from your VPS/computer here?
We can look at it and see what the issue might be.

This sort of program will be easier to implement once v9 comes online, as it really could use a script during install where the user enters his/her folder location.
 

ch1p2014

Respected Member
ok had another play, setup the correct path in docker and now running :)

so in PENDING TASKS its showing stuff ready to convert - converting but in completed tasks empty.
also the original file doesnt get updated with new one :(

could this be folder permissions ? ive read this needs adding to docker but im not sure

o: "username=XXXXXX,password=XXXXX,vers=3.0,uid=XXXX,gid=XXX"

thx guys
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads


Development Donations

 

Top NZB NewsGroups!

Members - Up To a 58% Discount!

Trending

Online statistics

Members online
9
Guests online
515
Total visitors
524
Top