From c56fd45d1fd3bd2901079e1fecb158efdd7c14e4 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 6 Nov 2015 06:18:22 +0000 Subject: [PATCH] * make {info.budget} {info.revenue} {info.popularity} available for easy access --- source/net/filebot/web/TMDbClient.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/source/net/filebot/web/TMDbClient.java b/source/net/filebot/web/TMDbClient.java index c37053f4..37c38991 100644 --- a/source/net/filebot/web/TMDbClient.java +++ b/source/net/filebot/web/TMDbClient.java @@ -568,6 +568,30 @@ public class TMDbClient implements MovieIdentificationService { return get(MovieProperty.runtime); } + public Long getBudget() { + try { + return new Long(get(MovieProperty.budget)); + } catch (Exception e) { + return null; + } + } + + public Long getRevenue() { + try { + return new Long(get(MovieProperty.revenue)); + } catch (Exception e) { + return null; + } + } + + public Double getPopularity() { + try { + return new Double(get(MovieProperty.popularity)); + } catch (Exception e) { + return null; + } + } + public List getGenres() { return unmodifiableList(asList(genres)); }