Advertisement
Kaero

XBMC Script ERROR

May 29th, 2012
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 4.57 KB | None | 0 0
  1. groovy> // PERSONALIZED SETTINGS
  2. groovy> def episodeDir    = "E:/Download/TV Shows & Movies"
  3. groovy> def episodeFormat = "E:/Videos/TV Shows/{n}/{'Season '+s}/{n} - {sxe} - {t}"
  4. groovy> def animeDir      = "E:/Download/Anime"
  5. groovy> def animeFormat   = "E:/Videos/Anime/{n}/{n.space('.')}.S01.E{e.pad(2)}.{t.space('.')}"
  6. groovy> def movieDir      = "E:/Videos/TV Shows & Movies"
  7. groovy> def movieFormat   = "E:/Videos/Movies/{n} [{y}]"
  8. groovy> // ignore chunk, part, par and hidden files
  9. groovy> def incomplete(f) { f.name =~ /[.]incomplete|[.]chunk|[.]par$|[.]dat$/ || f.isHidden() }
  10. groovy> /*
  11. groovy>  * Sort into folders
  12. groovy>  */
  13. groovy> episodeDir.getFolders{ !it.hasFile{ incomplete(it) } && it.hasFile{ it.isVideo() } }.each{ dir ->
  14. groovy>     println "Processing $dir"
  15. groovy>     def files = dir.listFiles{ it.isVideo() }
  16. groovy>      
  17. groovy>     // sort episodes
  18. groovy>     rename(file:files, db:'TVRage', format:episodeFormat)
  19. groovy> }
  20. groovy> animeDir.getFolders{ !it.hasFile{ incomplete(it) } && it.hasFile{ it.isVideo() } }.each{ dir ->
  21. groovy>     println "Processing $dir"
  22. groovy>     def files = dir.listFiles{ it.isVideo() }
  23. groovy>      
  24. groovy>     // sort anime
  25. groovy>     rename(file:files, db:'aniDB', format:animeFormat)
  26. groovy> }
  27. groovy> movieDir.getFolders{ !it.hasFile{ incomplete(it) } && it.hasFile{ it.isVideo() } }.each{ dir ->
  28. groovy>     println "Processing $dir"
  29. groovy>     def files = dir.listFiles{ it.isVideo() }
  30. groovy>      
  31. groovy>     // sort movies
  32. groovy>     rename(file:files, db:'TheMovieDB', format:movieFormat)
  33. groovy> }
  34.  
  35. Exception thrown
  36. May 29, 2012 3:23:35 AM org.codehaus.groovy.runtime.StackTraceUtils sanitize
  37.  
  38. WARNING: Sanitizing stacktrace:
  39.  
  40. groovy.lang.MissingMethodException: No signature of method: java.lang.String.getFolders() is applicable for argument types: (sdkalfdjhf$_run_closure1) values: [sdkalfdjhf$_run_closure1@2ea67]
  41.  
  42.     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55)
  43.  
  44.     at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
  45.  
  46.     at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
  47.  
  48.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
  49.  
  50.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
  51.  
  52.     at sdkalfdjhf.run(sdkalfdjhf.groovy:17)
  53.  
  54.     at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:266)
  55.  
  56.     at groovy.lang.GroovyShell.run(GroovyShell.java:517)
  57.  
  58.     at groovy.lang.GroovyShell.run(GroovyShell.java:172)
  59.  
  60.     at groovy.lang.GroovyShell$run.call(Unknown Source)
  61.  
  62.     at groovy.ui.Console$_runScriptImpl_closure17.doCall(Console.groovy:927)
  63.  
  64.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  65.  
  66.     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  67.  
  68.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  69.  
  70.     at java.lang.reflect.Method.invoke(Unknown Source)
  71.  
  72.     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
  73.  
  74.     at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
  75.  
  76.     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
  77.  
  78.     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
  79.  
  80.     at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
  81.  
  82.     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
  83.  
  84.     at groovy.ui.Console$_runScriptImpl_closure17.doCall(Console.groovy)
  85.  
  86.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  87.  
  88.     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  89.  
  90.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  91.  
  92.     at java.lang.reflect.Method.invoke(Unknown Source)
  93.  
  94.     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
  95.  
  96.     at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
  97.  
  98.     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
  99.  
  100.     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
  101.  
  102.     at groovy.lang.Closure.call(Closure.java:412)
  103.  
  104.     at groovy.lang.Closure.call(Closure.java:406)
  105.  
  106.     at groovy.lang.Closure.run(Closure.java:490)
  107.  
  108.     at java.lang.Thread.run(Unknown Source)
  109.  
  110. groovy.lang.MissingMethodException: No signature of method: java.lang.String.getFolders() is applicable for argument types: (sdkalfdjhf$_run_closure1) values: [sdkalfdjhf$_run_closure1@2ea67]
  111.  
  112.     at sdkalfdjhf.run(sdkalfdjhf.groovy:17)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement