Fix tests:
[fanfix.git] / src / be / nikiroo / fanfix / supported / FimfictionApi.java
index 3319bbeed3a93e0076747adf50607c0447a863a0..6ef8a2cc70d8bb65e7c32b4b94fce81d96f07bea 100644 (file)
@@ -23,7 +23,7 @@ import be.nikiroo.utils.Progress;
  * 
  * @author niki
  */
-class FimfictionApi extends BasicSupport {
+class FimfictionApi extends BasicSupport_Deprecated {
        private String oauth;
        private String storyId;
        private String json;
@@ -128,7 +128,7 @@ class FimfictionApi extends BasicSupport {
                meta.setPublisher(getSourceName());
                meta.setUuid(source.toString());
                meta.setLuid("");
-               meta.setLang("EN");
+               meta.setLang("en");
                meta.setSubject("MLP");
                meta.setType(getType().toString());
                meta.setImageDocument(false);
@@ -254,6 +254,7 @@ class FimfictionApi extends BasicSupport {
                                null, null);
 
                String jsonToken = IOUtils.readSmallStream(in);
+               in.close();
 
                // Extract token type and token from: {
                // token_type = "Bearer",