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:
parent
515812f7d1
commit
c56fd45d1f
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user