mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-04 08:25:03 -05:00
* fixed caching bug
This commit is contained in:
parent
5bb45541a8
commit
04ac7f934e
@ -32,11 +32,29 @@ public class Episode implements Serializable {
|
||||
}
|
||||
|
||||
|
||||
public Integer getEpisodeNumber() {
|
||||
try {
|
||||
return new Integer(episode);
|
||||
} catch (NumberFormatException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public String getSeason() {
|
||||
return season;
|
||||
}
|
||||
|
||||
|
||||
public Integer getSeasonNumber() {
|
||||
try {
|
||||
return new Integer(season);
|
||||
} catch (NumberFormatException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public String getSeriesName() {
|
||||
return seriesName;
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ public class TheTVDBClient implements EpisodeListProvider {
|
||||
|
||||
|
||||
public void putEpisodeList(int seriesId, Locale language, List<Episode> episodes) {
|
||||
cache.put(new Element(key(host, seriesId, language, "EpisodeList"), episodes));
|
||||
cache.put(new Element(key(host, seriesId, language.getLanguage(), "EpisodeList"), episodes));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user