Moving folders nested inside Movie folders with scripts

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
stephen147
Donor
Posts: 131
Joined: 01 Sep 2015, 22:40

Moving folders nested inside Movie folders with scripts

Post by stephen147 »

I have a Theme folder located in a Movie folder.

The folder tree is like so:

Code: Select all

├───Movie Name
│   │   clearart.png
│   │   disc.png
│   │   fanart.jpg
│   │   folder.jpg
│   │   imdb.url
│   │   Movie Name.mkv
│   │   logo.png
│   │   movie.nfo
│   │   poster.jpg
│   │   tmdb.url
│   │
│   ├───extrafanart
│   │       fanart1.jpg
│   │       fanart2.jpg
│   │
│   └───Theme
│           Theme.mp3
Problem is with my script the folder Theme does not get moved along with the other files.

How can this be done. Thanks.

Here's my bat code:

Code: Select all

@echo off
color 5F
mode con:cols=310 lines=80

goto BEGIN_MAIN_FN

:BEGIN_MAIN_FN
filebot -script fn:amc --output "Z:/Movies & TV/_TO DO/_DONE" ^
--action move --conflict auto -non-strict "Z:/Movies & TV/_TO DO/_TO DO" ^
--def excludeList="Z:/Movies & TV/_TO DO/_AMC Log Files/amc_excludelist.groovy" ^
--def animeFormat=@"Z:/Movies & TV/_TO DO/Anime Format.groovy" ^
--def movieFormat=@"Z:/Movies & TV/_TO DO/Movie Format.groovy" ^
--def seriesFormat=@"Z:/Movies & TV/_TO DO/TV Format.groovy" ^
--def artwork=n ^
--def target=folder ^
--def clean=y ^
--def deleteAfterExtract=y ^
--def extras=n ^
--def skipExtract=n ^
--def storeReport=y ^
--def unsorted=y ^
--def kodi=169.254.146.80:8080 ^
--log-file "Z:/Movies & TV/_TO DO/_AMC Log Files/amc.log"
goto PROCESS_COMPLETE

:PROCESS_COMPLETE
rem echo:
echo:--------------------------------------------
color 0E
echo:
echo:   PROCESS COMPLETE
echo:
echo:--------------------------------------------
@echo off
timeout /T 3
@pause
EXIT
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Moving folders nested inside Movie folders with scripts

Post by rednoah »

Do any of the other extras get moved?

FileBot generally does not support re-organizing / importing existing structures, and just identifying and processing video files. Probably not impossible, but probably somewhat tricky, requiring custom scripting, and the amc script probably isn't your friend for this use case.

It's probably easiest to use the history script to get all the old paths / new paths, and then have your own script import all the extras from the old folder to the new folder.
:idea: Please read the FAQ and How to Request Help.
stephen147
Donor
Posts: 131
Joined: 01 Sep 2015, 22:40

Re: Moving folders nested inside Movie folders with scripts

Post by stephen147 »

Thanks. Would it be possible to have a switch such as:

Code: Select all

--def movefolderextras=y
So it handles cases like this?
rednoah wrote: 15 Apr 2019, 15:52 Do any of the other extras get moved?
No they get left behind or deleted.
rednoah wrote: 15 Apr 2019, 15:52 It's probably easiest to use the history script to get all the old paths / new paths, and then have your own script import all the extras from the old folder to the new folder.
Sorry, I haven't the foggiest idea of how this could be done.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Moving folders nested inside Movie folders with scripts

Post by rednoah »

Sorry, support for this use case is not planned. The amc script can already generate most of the extras, so there's no pressing need to be able to recognize and correctly import existing ones.
:idea: Please read the FAQ and How to Request Help.
stephen147
Donor
Posts: 131
Joined: 01 Sep 2015, 22:40

Re: Moving folders nested inside Movie folders with scripts

Post by stephen147 »

rednoah wrote: 15 Apr 2019, 19:04 Sorry, support for this use case is not planned. The amc script can already generate most of the extras, so there's no pressing need to be able to recognize and correctly import existing ones.
Okay, no problem. It's just the Themes are something that I've accumulated myself and I thought the script could handle such cases.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Moving folders nested inside Movie folders with scripts

Post by rednoah »

If there's was a website where I could look up theme music, e.g. via TheTVDB ID, then support for generating theme songs could be added.
:idea: Please read the FAQ and How to Request Help.
stephen147
Donor
Posts: 131
Joined: 01 Sep 2015, 22:40

Re: Moving folders nested inside Movie folders with scripts

Post by stephen147 »

In Kodi I use a plugin for that which parses various websites for that info. It's not offically supported by Kodi devs though found here:https://forum.kodi.tv/showthread.php?tid=173799

This site:
https://www.televisiontunes.com

And Plex has it's own database also which is picked by staff:
https://support.plex.tv/articles/201572 ... ons/#toc-0

Submitted files will be previewed by the Plex team and the best background music will be chosen to be used by the Metadata Agent
Theme music is quite popular with Kodi users: https://forum.kodi.tv/showthread.php?tid=332890
Post Reply