Page 1 of 1
Updating Filebot 4.7.9 on Ubuntu 16.04 Server
Posted: 17 May 2019, 12:00
by Cyb3rGh05t
Hi Team
I need some help to update my filebot installation tothe latest version on my Ubuntu server.
I have a Liscense.
I am currently on 4.7.9.
I installed Filebot in
and my folder structure look like this
when i try the update.sh i get errors like
The script i am using to rename my files on server is:
Code: Select all
#############################################
#Filebot renaming
#############################################
#Shows
bash $FBOT/filebot.sh -script $FBOT/scripts/renall.groovy "$DIR1/shows/" -non-strict --conflict override --format "$OUT/shows/{n}/Season {s}/{n} - {s00e00} - {t} - {vf}{subt}" --db TheTVDB >> /var/plexguide/moveto.log
#Anime
bash $FBOT/filebot.sh -script $FBOT/scripts/renall.groovy "$DIR1/anime/" -non-strict --conflict override --format "$OUT/anime/{n}/Season {s}/{n} - {s00e00} - {t}{subt}" --db AniDB >> /var/plexguide/moveto.log
#Movies
bash $FBOT/filebot.sh -script $FBOT/scripts/renall.groovy "$DIR1/movies/" -non-strict --conflict override --format "$OUT/movies/{n} ({y})/{n} ({y}) - {vf}{subt} " --db TheMovieDB >> /var/plexguide/moveto.log
#Music
bash $FBOT/filebot.sh -script $FBOT/scripts/renall.groovy "$DIR1/music/" -non-strict --conflict override --format "$OUT/music/{media.genres}/{media.performer}/{media.album}/{media.track}" --db ID3 >> /var/plexguide/moveto.log
can sombody help me out please
thanks
Re: Updating Filebot 4.7.9 on Ubuntu 16.04 Server
Posted: 17 May 2019, 12:32
by rednoah
Here are the installation instructions for Ubuntu or any other Debian-based machine:
viewtopic.php?f=11&t=6028

The
update-filebot.sh you might find in older versions of the portable package is defunct. It was typically only used for minor revision updates
(e.g. for testing) within the same major release.
Re: Updating Filebot 4.7.9 on Ubuntu 16.04 Server
Posted: 17 May 2019, 12:43
by Cyb3rGh05t
thank you
but can i then use filebot like i do it now?
i mean how will then look the command for this rename format :
shows
Code: Select all
{n}/Season {s}/{n} - {s00e00} - {t} - {vf}{subt}
movies
sorry but i am new to coding an stuff..
thanks again
Re: Updating Filebot 4.7.9 on Ubuntu 16.04 Server
Posted: 17 May 2019, 12:48
by rednoah
IDK. Your script looks pretty weird.
I recommend sticking to clean standard commands. More like this:
Code: Select all
filebot -rename -r /path/to/input --output /path/to/output --db TheTVDB --format '{plex.derive{" - $vf"}}' -non-strict --conflict override --log-file /path/to/log.txt
Re: Updating Filebot 4.7.9 on Ubuntu 16.04 Server
Posted: 17 May 2019, 12:56
by Cyb3rGh05t
i mean how will then look the command for this rename format :
shows
Code: Select all
{n}/Season {s}/{n} - {s00e00} - {t} - {vf}{subt}
movies
sorry but i am new to coding an stuff..
thanks again
Re: Updating Filebot 4.7.9 on Ubuntu 16.04 Server
Posted: 17 May 2019, 12:58
by Cyb3rGh05t
this is my script for filebot i use:
Code: Select all
#!/bin/bash
while [ 1 ]; do
rm /var/plexguide/moveto.log
echo "" >> /var/plexguide/moveto.log
echo "----------------------------" >> /var/plexguide/moveto.log
echo "RcloneMover / FilebotRenamer / GdriveUploader" >> /var/plexguide/moveto.log
#############################################
#RClone - File Transfer
#############################################
rclone moveto "/mnt/down/jdown/movies/" "/mnt/complete/movies/" \
--log-file=/var/plexguide/moveto.log \
--log-level INFO --stats 5s --stats-file-name-length 0 \
--ignore-existing \
--transfers 6 \
--min-age 3h \
--use-server-modtime
rclone moveto "/mnt/down/jdown/shows/" "/mnt/complete/shows/" \
--log-file=/var/plexguide/moveto.log \
--log-level INFO --stats 5s --stats-file-name-length 0 \
--ignore-existing \
--transfers 6 \
--min-age 3h \
--use-server-modtime
rclone moveto "/mnt/down/jdown/anime/" "/mnt/complete/anime/" \
--log-file=/var/plexguide/moveto.log \
--log-level INFO --stats 5s --stats-file-name-length 0 \
--ignore-existing \
--transfers 6 \
--min-age 3h \
--use-server-modtime
rclone moveto "/mnt/down/jdown/music/" "/mnt/complete/music/" \
--log-file=/var/plexguide/moveto.log \
--log-level INFO --stats 5s --stats-file-name-length 0 \
--ignore-existing \
--transfers 6 \
--min-age 3h \
--use-server-modtime
echo "Cycle - Sleeping for 3 hours " >> /var/plexguide/moveto.log
sleep 30
#############################################
#Functions
#############################################
AC=find
NM=-name
MD=-maxdepth
EP=-empty
#############################################
#Folders
#############################################
DIR=/mnt/down/jdown
DIR1=/mnt/complete
OUT=/mnt/renamed
FBOT=/mnt/filebot
#############################################
#Package Clean-Up
#############################################
$AC $DIR1 $MD 8 $NM "*.rar" -exec rm -f \{\} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "*.sfv" -exec rm -f \{\} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "*.txt" -exec rm -f \{\} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "*.url" -exec rm -f \{\} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "*.org" -exec rm -f \{\} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "*.html" -exec rm -f \{\} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "*.xml" -exec rm -f \{\} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "Sample" -exec rm -rf {} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "Proof" -type d -exec rm -rf \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "Screens" -type d -exec rm -rf \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "Kristallprinz" -type d -exec rm -rf \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "Cover" -type d -exec rm -rf \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "Subs" -type d -exec rm -rf \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "*.jpg" -exec rm -f \{\} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "*.jpeg" -exec rm -f \{\} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "*-sample.mkv" -exec rm -f \{\} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "*sample" -exec rm -rf \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "Screens*" -exec rm -rf \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "Covers*" -exec rm -rf \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "Sample*" -exec rm -f \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "*sample*" -exec rm -f \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "*samp*" -exec rm -f \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "*.png" -exec rm -f \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 15 -mindepth 1 $NM "*.r[a0-9][r0-9]" -type f -exec rm -rf \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 $NM "subs" -type d -exec rm -rf \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 $MD 8 "#" -exec -type -f -exec rm -rf \{} \; >> /var/plexguide/moveto.log
#############################################
#NFO Clean
#############################################
#$AC $DIR1 $MD 15 $NM "*.nfo" -type f -exec rm -rf \{} \; >> /var/plexguide/moveto.log
#$AC $DIR1 -mindepth 2 -type d $EP -exec rmdir \{} \; >> /var/plexguide/moveto.log
#$AC /mnt/down/ -mindepth 2 -type d $EP -exec rmdir \{} \; >> /var/plexguide/moveto.log
#$AC /mnt/cache/ -mindepth 2 -type d $EP -exec rmdir \{} \; >> /var/plexguide/moveto.log
#############################################
#Set Rights
#############################################
sudo chown -cR plexuser:plexuser $DIR1 >> /var/plexguide/moveto.log
sudo chmod -R 755 $DIR1 >> /var/plexguide/moveto.log
#############################################
#Filebot renaming
#############################################
#Shows
bash $FBOT/filebot.sh -script $FBOT/scripts/renall.groovy "$DIR1/shows/" -non-strict --conflict override --format "$OUT/shows/{n}/Season {s}/{n} - {s00e00} - {t} - {vf}{subt}" --db TheTVDB >> /var/plexguide/moveto.log
#Anime
bash $FBOT/filebot.sh -script $FBOT/scripts/renall.groovy "$DIR1/anime/" -non-strict --conflict override --format "$OUT/anime/{n}/Season {s}/{n} - {s00e00} - {t}{subt}" --db AniDB >> /var/plexguide/moveto.log
#Movies
bash $FBOT/filebot.sh -script $FBOT/scripts/renall.groovy "$DIR1/movies/" -non-strict --conflict override --format "$OUT/movies/{n} ({y})/{n} ({y}) - {vf}{subt} " --db TheMovieDB >> /var/plexguide/moveto.log
#Music
bash $FBOT/filebot.sh -script $FBOT/scripts/renall.groovy "$DIR1/music/" -non-strict --conflict override --format "$OUT/music/{media.genres}/{media.performer}/{media.album}/{media.track}" --db ID3 >> /var/plexguide/moveto.log
#############################################
#Set Rights
#############################################
chown -cR plexuser:plexuser /mnt/renamed >> /var/plexguide/moveto.log
chmod -R 755 /mnt/renamed >> /var/plexguide/moveto.log
#############################################
#Rclone - Gdrive Upload
#############################################
rclone moveto "/mnt/renamed/movies/" "/mnt/move/PlexMedia/Movies/NewMovies/CPL/" \
--log-file=/var/plexguide/moveto.log \
--log-level INFO --stats 5s --stats-file-name-length 0 \
--ignore-existing \
--transfers 6 \
--min-age 3h \
--use-server-modtime
rclone moveto "/mnt/renamed/shows/" "/mnt/move/PlexMedia/TVShows/" \
--log-file=/var/plexguide/moveto.log \
--log-level INFO --stats 5s --stats-file-name-length 0 \
--ignore-existing \
--transfers 6 \
--min-age 3h \
--use-server-modtime
#################################
#Delete Folders
#################################
$AC $DIR -mindepth 2 -type d $EP -exec rmdir \{} \; >> /var/plexguide/moveto.log
$AC $DIR1 -mindepth 2 -type d $EP -exec rmdir \{} \; >> /var/plexguide/moveto.log
$AC $OUT -mindepth 2 -type d $EP -exec rmdir \{} \; >> /var/plexguide/moveto.log
#############################################
#Recreate Folders
#############################################
mkdir $OUT/{movies,shows,anime,music} >> /var/plexguide/moveto.log
mkdir $DIR1/{movies,shows,anime,music} >> /var/plexguide/moveto.log
mkdir $DIR/{movies,shows,anime,music} >> /var/plexguide/moveto.log
#############################################
#Set Rights
#############################################
chown -cR plexuser:plexuser $OUT/{movies,shows,anime,music} >> /var/plexguide/moveto.log
chmod -R 755 $OUT/{movies,shows,anime,music} >> /var/plexguide/moveto.log
chown -cR plexuser:plexuser $DIR1/{movies,shows,anime,music} >> /var/plexguide/moveto.log
chmod -R 755 $DIR1/{movies,shows,anime,music} >> /var/plexguide/moveto.log
chown -cR plexuser:plexuser $DIR/{movies,shows,anime,music} >> /var/plexguide/moveto.log
chmod -R 755 $DIR/{movies,shows,anime,music} >> /var/plexguide/moveto.log
sleep 3h
#exit 0
done
Re: Updating Filebot 4.7.9 on Ubuntu 16.04 Server
Posted: 17 May 2019, 13:26
by rednoah
1.
The
{plex} binding does what you want, except better and easier:
viewtopic.php?f=5&t=4116
e.g. This is the
{plex} format, except it adds the 1080p part, at the end, before the subtitle language, and it works for all anime / tv shows / movies all the same:
You can play with custom formats in the GUI:
https://www.filebot.net/naming.html

You can do things your way. If it works for you, it works for you. I'm just showing you how I'd do it, since you asked.
2.
I see no reason why anyone would run FileBot in a separate sub-shell:

Why not use
filebot ...?
3.
I see no reason why anyone would use the renall script for simple rename tasks, especially not a local copy that you can maintain yourself:
Code: Select all
-script $FBOT/scripts/renall.groovy

Why not use
-rename -r?
4.
You're redirecting standard output BUT NOT error output, so if something goes wrong, any error message will be discarded immediately, so your logs will be pretty useless and confusing if you're trying to figure out why something might not work:
viewtopic.php?f=4&t=3067
Re: Updating Filebot 4.7.9 on Ubuntu 16.04 Server
Posted: 17 May 2019, 13:53
by Cyb3rGh05t
thank you very much
you made my day
i appreciate that you took some time to help me out
