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

Support for Ubuntu and other Desktop Linux distributions
Post Reply
User avatar
bonelifer
Power User
Posts: 83
Joined: 23 Mar 2013, 18:27

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

Post 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"
User avatar
rednoah
The Source
Posts: 23055
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
User avatar
bonelifer
Power User
Posts: 83
Joined: 23 Mar 2013, 18:27

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

Post 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.
User avatar
rednoah
The Source
Posts: 23055
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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
:idea: Please read the FAQ and How to Request Help.
Post Reply