Format:
{ fn.removeAll(/\(.+?\)/) }
Format:
{ fn.removeAll(/\[.+?\]/) }
Statistics: Posted by rednoah — 26 Mar 2024, 06:54
Statistics: Posted by rednoah — 23 Mar 2024, 04:38
Statistics: Posted by rednoah — 19 Mar 2024, 18:03
Statistics: Posted by rednoah — 19 Mar 2024, 18:02
Groovy:
{ source, target, metadata -> def fileName = target.nameWithoutExtension target.dir.listFiles { file -> file != target && file.video && file.nameWithoutExtension == fileName }.each { fileToDelete -> trash(fileToDelete) }}
Console Output:
Lookup via [Westworld] [Westworld]Fetching episode data for [Westworld]* Westworld [296762] | 36 episodes | 1x01-10 .. 2x01-10 .. 3x01-08 .. 4x01-08[MOVE] from [/library/downloads/complete/Westworld.S04.1080p.BluRay.x265-RARBG/Westworld.S04E01.1080p.BluRay.x265-RARBG.mp4] to [/library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E01 - The Auguries.mp4][MOVE] from [/library/downloads/complete/Westworld.S04.1080p.BluRay.x265-RARBG/Westworld.S04E02.1080p.BluRay.x265-RARBG.mp4] to [/library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E02 - Well Enough Alone.mp4][MOVE] from [/library/downloads/complete/Westworld.S04.1080p.BluRay.x265-RARBG/Westworld.S04E03.1080p.BluRay.x265-RARBG.mp4] to [/library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E03 - Années Folles.mp4][MOVE] from [/library/downloads/complete/Westworld.S04.1080p.BluRay.x265-RARBG/Westworld.S04E04.1080p.BluRay.x265-RARBG.mp4] to [/library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E04 - Generation Loss.mp4][MOVE] from [/library/downloads/complete/Westworld.S04.1080p.BluRay.x265-RARBG/Westworld.S04E05.1080p.BluRay.x265-RARBG.mp4] to [/library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E05 - Zhuangzi.mp4][MOVE] from [/library/downloads/complete/Westworld.S04.1080p.BluRay.x265-RARBG/Westworld.S04E06.1080p.BluRay.x265-RARBG.mp4] to [/library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E06 - Fidelity.mp4][MOVE] from [/library/downloads/complete/Westworld.S04.1080p.BluRay.x265-RARBG/Westworld.S04E07.1080p.BluRay.x265-RARBG.mp4] to [/library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E07 - Metanoia.mp4][MOVE] from [/library/downloads/complete/Westworld.S04.1080p.BluRay.x265-RARBG/Westworld.S04E08.1080p.BluRay.x265-RARBG.mp4] to [/library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E08 - Que Será, Será.mp4][CLEAN] Delete clutter files (/library/downloads/complete/Westworld.S04.1080p.BluRay.x265-RARBG)[SCRIPT] Run Script (remove-duplicates.groovy)[SCRIPT] TRASH /library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E01 - The Auguries.mkv (remove-duplicates.groovy)[SCRIPT] TRASH /library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E02 - Well Enough Alone.mkv (remove-duplicates.groovy)[SCRIPT] TRASH /library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E03 - Années Folles.mkv (remove-duplicates.groovy)[SCRIPT] TRASH /library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E04 - Generation Loss.mkv (remove-duplicates.groovy)[SCRIPT] TRASH /library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E05 - Zhuangzi.mkv (remove-duplicates.groovy)[SCRIPT] TRASH /library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E06 - Fidelity.mkv (remove-duplicates.groovy)[SCRIPT] TRASH /library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E07 - Metanoia.mkv (remove-duplicates.groovy)[SCRIPT] TRASH /library/library/shows/Westworld (2016)/Season 04/Westworld (2016) - S04E08 - Que Será, Será.mkv (remove-duplicates.groovy)Processed 8 files
Statistics: Posted by crunchypancake — 19 Mar 2024, 17:32
Console Output:
$ filebot -list --q 11811 --db TheMovieDB --format "{genre}/{ny}"Horror/Leprechaun (1993)
Statistics: Posted by rednoah — 17 Mar 2024, 04:47
e.g. mirror file structures for different naming schemes:Console Output:
$ filebot -rename -r Plex --db xattr --action hardlink --output Kodi --format "{kodi}"[HARDLINK] from [Plex/Movies/Avatar (2009)/Avatar (2009).mp4] to [Kodi/Movies/Avatar (2009)/Avatar (2009).mp4][HARDLINK] from [Plex/TV Shows/Alias/Season 01/Alias - S01E01 - Truth Be Told.mp4] to [Kodi/TV Shows/Alias/Season 1/Alias - 1x01 - Truth Be Told.mp4]$ filebot -rename -r Plex --db xattr --action hardlink --output Emby --format "{emby}"[HARDLINK] from [Plex/Movies/Avatar (2009)/Avatar (2009).mp4] to [Emby/Movies/Avatar (2009)/Avatar (2009).mp4][HARDLINK] from [Plex/TV Shows/Alias/Season 01/Alias - S01E01 - Truth Be Told.mp4] to [Emby/TV Shows/Alias (2001)/Season 01/Alias (2001) - S01E01 - Truth Be Told.mp4]
We use hardlinks because that will allow us to have 2 or more files that share the same data on disk, thus we can have the same file multiple times at different file paths. We get all the benefits of copying files without any of the disadvantages such as wasting disk space or having to physically copy bits on disk.
Statistics: Posted by obi — 17 Mar 2024, 04:43
e.g. mirror file structures for different naming schemes:Console Output:
$ filebot -rename -r Plex --db xattr --action hardlink --output Kodi --format "{kodi}"[HARDLINK] from [Plex/Movies/Avatar (2009)/Avatar (2009).mp4] to [Kodi/Movies/Avatar (2009)/Avatar (2009).mp4][HARDLINK] from [Plex/TV Shows/Alias/Season 01/Alias - S01E01 - Truth Be Told.mp4] to [Kodi/TV Shows/Alias/Season 1/Alias - 1x01 - Truth Be Told.mp4]$ filebot -rename -r Plex --db xattr --action hardlink --output Emby --format "{emby}"[HARDLINK] from [Plex/Movies/Avatar (2009)/Avatar (2009).mp4] to [Emby/Movies/Avatar (2009)/Avatar (2009).mp4][HARDLINK] from [Plex/TV Shows/Alias/Season 01/Alias - S01E01 - Truth Be Told.mp4] to [Emby/TV Shows/Alias (2001)/Season 01/Alias (2001) - S01E01 - Truth Be Told.mp4]
We use hardlinks because that will allow us to have 2 or more files that share the same data on disk, thus we can have the same file multiple times at different file paths. We get all the benefits of copying files without any of the disadvantages such as wasting disk space or having to physically copy bits on disk.
Statistics: Posted by rednoah — 16 Mar 2024, 16:09
Statistics: Posted by obi — 16 Mar 2024, 15:35
Statistics: Posted by rednoah — 13 Mar 2024, 17:44