Skip to content

Commit

Permalink
Update badges and build status
Browse files Browse the repository at this point in the history
  • Loading branch information
Omertron committed May 26, 2015
1 parent 3657882 commit f34cbbf
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ This is an java implementation of the IMDb JSON API.
For use by clients authorized in writing by IMDb.
Authors and users of unauthorized clients accept full legal exposure/liability for their actions.

[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=Omertron&url=https://github.com/Omertron/api-imdb&title=IMDB API&language=&tags=github&category=software)

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/Omertron/api-imdb/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

[![Build Status](http://jenkins.omertron.com/job/API-IMDB/badge/icon)](http://jenkins.omertron.com/job/API-IMDB)

Project Documentation
---------------------
Expand Down
29 changes: 29 additions & 0 deletions src/main/java/com/omertron/imdbapi/ImdbApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -509,4 +509,33 @@ public List<ImdbChartStarmeter> getChartStarmeter() {
return wrapper.getData().getChartStarmeter();
}
}

/**
* Get the TV Tonight
*
* @param date
* @return
*/
public URL getTvTonight(Date date) {
Map<String, String> args = new HashMap<>();

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
args.put("date", sdf.format(date));
return ApiBuilder.buildUrl("tv/tonight", args);
}

/**
* Get the TV Tonight
*
* @param date
* @return
*/
public URL getTvRecap(Date date) {
Map<String, String> args = new HashMap<>();

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
args.put("date", sdf.format(date));
return ApiBuilder.buildUrl("tv/recap", args);
}

}

0 comments on commit f34cbbf

Please sign in to comment.