1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-16 06:15:02 -05:00

* make {info.budget} {info.revenue} {info.popularity} available for easy access

This commit is contained in:
Reinhard Pointner 2015-11-06 06:18:22 +00:00
parent 515812f7d1
commit c56fd45d1f

View File

@ -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<String> getGenres() {
return unmodifiableList(asList(genres));
}