From 4f32fc4ff17c52b5a581934963b5213a51080dd0 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 14 May 2016 01:50:48 +0800 Subject: [PATCH] + TODO support for default language [SHOWSTOPPER] --- source/net/filebot/web/TheTVDBClient.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/net/filebot/web/TheTVDBClient.java b/source/net/filebot/web/TheTVDBClient.java index 4be1a3da..f793668f 100644 --- a/source/net/filebot/web/TheTVDBClient.java +++ b/source/net/filebot/web/TheTVDBClient.java @@ -70,11 +70,14 @@ public class TheTVDBClient extends AbstractEpisodeListProvider implements Artwor private Map getRequestHeader(Locale locale) { Map header = new LinkedHashMap(3); + + // TODO support for default language => https://trello.com/c/dyEhtfky/16-handle-multiple-languages-in-the-accept-language-header if (locale != null && locale != Locale.ROOT) { header.put("Accept-Language", locale.getLanguage()); } header.put("Accept", "application/json"); header.put("Authorization", "Bearer " + getAuthorizationToken()); + return header; }