Move files automatically based on filename?

Support for Ubuntu and other Desktop Linux distributions
Post Reply
Finarijes
Posts: 1
Joined: 28 Feb 2019, 13:01

Move files automatically based on filename?

Post by Finarijes »

I'm trying to find a way to automatically move files in a folder (recursively and not recursively depending on the path) based upon their names into files.

The files are like "Name 01x01 Episode Title.mkv." I'd like them to be moved to a folder tree like ./Name/Season 01/ where 01 comes from 01x.

Any thoughts on how to do this? I'd be running it following an automated filebot command:

Code:

Code: Select all

filebot -rename /media/storage2/videos/ --db TheTVDB non-strict --lang en --action move --conflict skip --def music=n --def artwork=y --def xbmc=104.248.58.126
Thanks, Gabriel.
https://loveandkissespetsitting.net/a-guide-to-hiking-and-traveling-with-your-dog/
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Move files automatically based on filename?

Post by rednoah »

1.
These options are specific to the amc script and have no effect whatsoever in this particular filebot call:

Code: Select all

--def music=n --def artwork=y --def xbmc=104.248.58.126

2.
You can use the -r option to process all files in the input folder recursively.

Code: Select all

-r

3.
You can organize files into a folder structure by passing in a format that describes the path you want.

e.g.

Code: Select all

--output "/media/storage2/media" --format "{plex}"
:arrow: viewtopic.php?f=5&t=4116
:idea: Please read the FAQ and How to Request Help.
Post Reply