fix cache getStory
[fanfix.git] / src / be / nikiroo / fanfix / library / LocalLibrary.java
index d0bf61a44b30453f0972bb3c6c9b99d2588df161..bd9fe07cf7d720aae04cb04da884695e9a01e41d 100644 (file)
@@ -410,9 +410,25 @@ public class LocalLibrary extends BasicLibrary {
                if (meta != null && meta.isImageDocument()) {
                        return image;
                }
-
+               
                return text;
        }
+       
+       /**
+        * Return the default {@link OutputType} for this kind of {@link Story}.
+        * 
+        * @param imageDocument
+        *           TRUE for images document, FALSE for text documents                   
+        * 
+        * @return the type
+        */
+       public String getOutputType(boolean imageDocument) {
+               if (imageDocument) {
+                       return image.toString();
+               }
+
+               return text.toString();
+       }
 
        /**
         * Get the target {@link File} related to the given <tt>.info</tt>