Page 1 of 1

Used chatGPT to do this, so wanted to make sure it..

Posted: 29 Apr 2024, 22:57
by bonelifer
Should use the preset specified via amc to rename files and folders.

Shell: Select all

#!/bin/bash

# FileBot script to process newly created music files using a specified preset

# Directory containing the music files to be processed
input_dir="/media/william/NewData/music/CURRENT/"

# Preset to be used for processing music files (replace 'music_preset' with the name of your music preset)
music_preset="ALTERNATIVE2"

# Log file to store processing information
log_file="/media/william/NewData/music/logs/file.log"

# Run FileBot on newly created music files in input directory
filebot -script fn:amc --conflict skip -non-strict --log-file "$log_file" "$input_dir"

Re: Used chatGPT to do this, so wanted to make sure it..

Posted: 30 Apr 2024, 05:44
by rednoah
:?: What are you trying to do?


:idea: The bash script above is a very simple (many recommended options are missing) amc script call. Made unnecessarily complicated by defining variables that are then not used, or only used once.


:arrow: I recommend the Automated Media Center › Run from the command-line example to get started.

Re: Used chatGPT to do this, so wanted to make sure it..

Posted: 30 Apr 2024, 21:05
by bonelifer
i missed that. Is there a command to use a preset? I'm using arr-scripts with LIdarr. They implement using deezer as the downloader. I tried specifiying the format i wanted but it seems not to do it. So I wanted to use filebot to apply my current MUSIC file formatting.

Re: Used chatGPT to do this, so wanted to make sure it..

Posted: 30 Apr 2024, 21:50
by rednoah
You can rename music files like so:

Console Output: Select all

$ filebot -rename *.flac --db ID3 --format '{artist} - {t}'
Rename music using [ID3 Tags]
[MOVE] from [14. James Horner - I See You (Theme from Avatar).flac] to [Leona Lewis - I See You (Theme from Avatar).flac]
Processed 1 file
:arrow: https://www.filebot.net/cli.html