diff --git a/website/cli.html b/website/cli.html index a1ee2e6c..2bd2b3a2 100644 --- a/website/cli.html +++ b/website/cli.html @@ -300,7 +300,7 @@ - Hosted on sourceforge.net | Creative Commons License: Attribution-NonCommercial-ShareAlike © 2011 + Hosted on sourceforge.net | Creative Commons License: Attribution-NonCommercial-ShareAlike © 2011 diff --git a/website/data/shell/housekeeping.groovy b/website/data/shell/housekeeping.groovy new file mode 100644 index 00000000..69488a3b --- /dev/null +++ b/website/data/shell/housekeeping.groovy @@ -0,0 +1,27 @@ +// filebot -script "http://filebot.sourceforge.net/data/shell/housekeeping.groovy" + +/* +* Watch folder for new tv shows and automatically +* move/rename new episodes into a predefined folder structure +*/ + +// check for new media files once every 5 seconds +def updateFrequency = 5 * 1000; + +// V:/path for windows /usr/home/name/ for unix +def destinationRoot = "{com.sun.jna.Platform.isWindows() ? file.path[0..1] : System.getProperty('user.home')}" + +// V:/TV Shows/Stargate/Season 1/Stargate.S01E01.Pilot +def episodeFormat = destinationRoot + "/TV Shows/{n}{'/Season '+s}/{n.space('.')}.{s00e00}.{t.space('.')}" + +// spawn daemon thread +Thread.startDaemon { + while (sleep(updateFrequency) || true) { + args.eachMediaFolder { + rename(folder:it, db: "thetvdb", format:episodeFormat) + } + } +} + +println "Press ENTER to abort" +console.readLine() // keep script running until aborted by user diff --git a/website/index.html b/website/index.html index 43cd9962..a3e93ad4 100644 --- a/website/index.html +++ b/website/index.html @@ -117,7 +117,7 @@ Rename files - Rename hundreds of media files in a matter of seconds
physically move renaming files requires Java 7 + Rename and move hundreds of media files in a matter of seconds
physically moving files requires Java 7
  • Fetch episode info from TVRage, AniDB, IMDb, TheTVDB or Serienjunkies
  • Accurate and robust and simply awesome file / episode matching logic
  • @@ -211,7 +211,7 @@ - Hosted on sourceforge.net | Creative Commons License: Attribution-NonCommercial-ShareAlike © 2011 + Hosted on sourceforge.net | Creative Commons License: Attribution-NonCommercial-ShareAlike © 2011 diff --git a/website/naming.html b/website/naming.html index 1f2e53b3..624fb8c1 100644 --- a/website/naming.html +++ b/website/naming.html @@ -87,11 +87,10 @@

    Examples

    - {n} - {s}.{e} - {t} - Dark Angel - 3.1 - Labyrinth + {n} - {s00e00} - {t}Dark Angel - S03E01 - Labyrinth

    - {n} - {'S'+s.pad(2)}E{e.pad(2)} - {t}Dark Angel - S03E01 - Labyrinth + V:/TV Shows/{n}/Season {s}/{sxe} - {t}V:\TV Shows\Dark Angel\Season 3\3x01 - Labyrinth

    {n.space('.').lower()}.{s}{e.pad(2)}dark.angel.301 @@ -371,7 +370,7 @@ - Hosted on sourceforge.net | Creative Commons License: Attribution-NonCommercial-ShareAlike © 2011 + Hosted on sourceforge.net | Creative Commons License: Attribution-NonCommercial-ShareAlike © 2011 diff --git a/website/script.html b/website/script.html index ad437af7..b3a6825a 100644 --- a/website/script.html +++ b/website/script.html @@ -235,7 +235,7 @@ - Hosted on sourceforge.net | Creative Commons License: Attribution-NonCommercial-ShareAlike © 2011 + Hosted on sourceforge.net | Creative Commons License: Attribution-NonCommercial-ShareAlike © 2011