Filebot | PlexGuide.com

Filebot

  • 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
M

MrDoob

Guest
I write actually 1 script for filebot.
With NO-GUI and auto sorted by Qualiti.
 
M

MrDoob

Guest
You can try it :


Only what do is

mkdir -p /mnt/complete/{tv,movies,anime,musik}

Move the complete files in this Folder and test it.

bash -x pgrenamer.sh > pgrenamer.log

More infos about failes can Help me to fix it.

You need the filebot folder in
/mnt/

FILEBOT >> filebot.tar

https://drive.google.com/folderview?id=1u0u8TsmbvSO4zQpdfWogrvM1eZEqI43-

Edit Link Change!!!



Bash:
#!/bin/bash
###############################################################################
# Title: PlexGuide ( filebot renamer )
#
# Coder : MrDoob - freelance Coder
# URL:  https://pgblitz.com - http://github.pgblitz.com
# GNU: General Public License v3.0E
#
################################################################################

#main function

AC=find
NM=-name
MD=-maxdepth
EP=-empty
# folders for execude

DIR=/mnt/complete
OUT=/mnt/move/
FBOT=/mnt/filebot

##############################################################################

# unpack the folder

 $AC $DIR $MD 8 $NM "*.rar" -execdir unrar x -o- {} \;
 $AC $DIR $MD 8 $NM "*.sfv" -exec rm -f \{\} \;
 $AC $DIR $MD 8 $NM "*.txt" -exec rm -f \{\} \;
 $AC $DIR $MD 8 $NM "*.xml" -exec rm -f \{\} \;
 $AC $DIR $MD 8 $NM "Sample" -exec rm -rf {} \;
 $AC $DIR $MD 8 $NM "Proof" -type d -exec rm -rf \{} \;
 $AC $DIR $MD 8 $NM "Screens" -type d -exec rm -rf \{} \;
 $AC $DIR $MD 8 $NM "Cover" -type d -exec rm -rf \{} \;
 $AC $DIR $MD 8 $NM "Subs" -type d -exec rm -rf \{} \;
 $AC $DIR $MD 8 $NM "*jpg" -exec rm -f \{\} \;
 $AC $DIR $MD 8 $NM "*jpeg" -exec rm -f \{\} \;
 $AC $DIR $MD 8 $NM "*-sample.mkv" -exec rm -f \{\} \;
 $AC $DIR $MD 8 $NM "*sample" -exec rm -rf \{} \;
 $AC $DIR $MD 8 $NM "Screens*" -exec rm -rf \{} \;
 $AC $DIR $MD 8 $NM "Covers*" -exec rm -rf \{} \;
 $AC $DIR $MD 8 $NM "*.nfo" -exec rm -rf \{} \;
 $AC $DIR $MD 8 $NM "Sample*" -exec rm -f \{} \;
 $AC $DIR $MD 8 $NM "*sample*" -exec rm -f \{} \;
 $AC $DIR $MD 8 $NM "*samp*" -exec rm -f \{} \;
 $AC $DIR $MD 8 $NM "*.png" -exec rm -f \{} \;
 $AC $DIR $MD 8 $NM "*.r[a0-9][r0-9]" -type f -exec rm -rf \{} \;
 $AC $DIR $MD 8 $NM "*.nfo" -type f -exec rm -rf \{} \;

 $AC $DIR -mindepth 2 -type d $EP -exec rmdir \{} \;

############################################################################

##filebot-running

#Tv-Shows
bash $FBOT/filebot.sh -script $FBOT/scripts/renall.groovy "$DIR/tv/" -non-strict --conflict auto --format "$OUT/{plex}" --db TheTVDB

#Anime

bash $FBOT/filebot.sh -script $FBOT/scripts/renall.groovy "$DIR/anime/" -non-strict --conflict override --format "$OUT/{plex}" --db AniDB

#movies
bash $FBOT/filebot.sh -script $FBOT/scripts/renall.groovy "$DIR/movies/" -non-strict --conflict override --format "OUT/{plex}" --db TheMovieDB

#musik
bash $FBOT/filebot.sh -script $FBOT/scripts/renall.groovy "$DIR/musik/" -non-strict --conflict override --format "$OUT/musik/{media.genres}/{media.performer}/{media.album}/{media.track}" --db ID3 

#######

sudo chown -cR 1000:1000 $OUT
sudo chmod -R 755 $OUT

exit 0
 
  • Like
Reactions: 2 users
M

MrDoob

Guest
Please if you use it.

Push this thread if you have fails.

Name of the File :
Quality :

and the log.
cat pgrenamer.log

copy & past.

This would help me to rule out possible variants and variables
 

Trasher

Experienced
Original poster
Jan 23, 2018
97
39
It's a little bit out of my know-how, so maybe someone else could assist?
 

zNOOPy

Citizen
Jan 23, 2019
11
0
Hi and thanks for the guide, i get the .sh file to work in the command line but i cant get Deluge to execute a command a call it, any ideas ?
 

maksim789

Noobz
Apr 29, 2019
2
1
Hello, i would like to setup the auto renaming of my downloaded files, but i have an problem with the permissions of the created folders. The Script is doing its job, but my Plex Client do not recognize the ranamed /moved files.

I am using SABnzbd for downloading the files on my VPS running Ubuntu. The Downloads are Stored in the Downloads folder. For Tv its for example (Downloads/tv)
After an sucessfull download, SABnzbd is running an Script for renaming the files and moving them to the Plex folder. (Plex/TV Shows)
Like i said before, the Script is doing its job great. It renames the files and moves them to the Plex folder.
The Problem is when i open my Plex Client on my TV, i do see the new created Folder but i do not see the movies.
I came around that the "created" Files from filebot only have permissions for the owner of the folder. You can see it at the picture.
Since Plex is not the owner of the folder, plex does not see the files.

If i run the Script manually over the Command Line, everything works perfect. The Script adds the correct permisions for the folder/files and i see them in Plex.

Would be nice if someone could help me with this issue. Maybe someone has an idea why filebot creates the files with not enought permissions when started by SABnzbd.

I am sorry for my bad english.



 
M

MrDoob

Guest
Von
Bash:
chown -cR 1000:1000 $OUT
Auf

Bash:
sudo chown -cR 1000:1000 $OUT

sudo chmod  755 $OUT
Ändere die recht im script auf 755 statt auf 700 !.
Der rest past , stell Plex auf alle 6h Bibliothek scannen und schon hast ruhe.
 
Last edited by a moderator:
  • Like
Reactions: 1 user

Admin9705

Administrator
Project Manager
Donor
Jan 17, 2018
5,151
2,120
Ya das ist gut
 
  • Like
Reactions: 1 users

Admin9705

Administrator
Project Manager
Donor
Jan 17, 2018
5,151
2,120
Bumping a old thread, really love to see this being added.
It's not that. It's the complexity of being added that's the problem.
 

maksim789

Noobz
Apr 29, 2019
2
1
Ändere die recht im script auf 755 statt auf 700 !.
Der rest past , stell Plex auf alle 6h Bibliothek scannen und schon hast ruhe.
Vielen Dank für die schnelle Hilfe. Leider ist mein Problem noch nicht ganz gelöst. Das .mkv File wird jetzt zwar mit den 755 Rechten erstellt, jedoch erhält der Order selbst immer noch 700 Rechte.
Habe mal bereits den Order z.b "Suits" komplett gelöscht damit dieser vom Filebot neu erstellt wird, aber dieser wird dann erneut mit den 700 Rechten erstellt. :/
Wenn ich nun per File Explorer hingehe und nur das .mkv File in den "Main" Serien Order verschiebe, dann wird diese nun direkt von Plex erkannt. Das Problem liegt nur noch in den Ordnern, welche vom Filebot erstellt werden.
Vielleicht eine Idee an was das liegen könnte?


Vielen Dank im Voraus

Der Script endet nun folgendermaßen.

#######

sudo chown -cR 1000:1000 $OUT

sudo chmod 755 $OUT

exit 0

Edit: Habe es hinbekommen, indem ich die vorletzte Zeile nochmal bearbeitet habe. Mit dem Befehl sudo chmod -R 755 $OUT funktioniert es nun.
Dankeschön!

 
Last edited:
  • Like
Reactions: 1 user
M

MrDoob

Guest
Mit dem Befehl sudo chmod -R 755 $OUT
Danke für die Suche des Fehlers..

Werde das main script beantworten.
Damit alle was davon haben !

Gr33tz ..

Wenn du S4S machen willst oder sonst das brauchst melde dich.
 
M

MrDoob

Guest
There is a docker done with alpine linux, i used it on unraid when i was still using physical storage. Will this make adding it easier?

Jlesage page
1.) cd /opt/mycontainers/

2.) nano filebot.yml

3.) paste the lines below

here the yml.file

Bash:
#!/bin/bash
#
# Title:      PGBlitz (jlesage/filebot)
# Author(s):  MrDoob
# 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: 'filebot'
        intport: '5800'
        extport: '5803'
        intport2: '5900'
        extport2: '5903'
        image: 'jlesage/filebot'

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

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

    - name: 'Setting PG Volumes'
      set_fact:
        pg_volumes:
          - '/opt/appdata/{{pgrole}}:/config'
          - '{{path.stdout}}:{{path.stdout}}'
          - '/mnt:/storage:rw'
          - '/etc/localtime:/etc/localtime:ro'

    - name: 'Setting PG ENV'
      set_fact:
        pg_env:
          PUID: '1000'
          PGID: '1000'
          TZ: '${TZ}'
          
    # MAIN DEPLOYMENT #############################################################
    - name: 'Deploying {{pgrole}}'
      docker_container:
        name: '{{pgrole}}'
        image: '{{image}}'
        pull: yes
        published_ports:
          - '{{ports.stdout}}{{extport}}:{{intport}}'
          - '{{ports.stdout}}{{extport2}}:{{intport2}}'
        volumes: '{{pg_volumes}}'
        env: '{{pg_env}}'
        restart_policy: unless-stopped
        networks:
          - name: plexguide
            aliases:
              - '{{pgrole}}'
        state: started
        labels: '{{pg_labels}}'
4.) pgblitz

5.) 5 - 2 - 1 - filebot - deploy

6.) https://filebot.yourdomain.anyelse
 
Last edited by a moderator:
  • Like
Reactions: 1 users

Recommend NewsGroups

      Up To a 58% Discount!

Trending