Skip to content

Commit

Permalink
Make sure year is properly recorded for movies.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve committed Mar 5, 2017
1 parent 8750346 commit 142fb9b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core.traktivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ public function publish_event( $args = array() ) {
$taxonomies['trakt_type'] = esc_html__( 'Movie', 'traktivity' );
// Let's capitalize genres.
$taxonomies['trakt_genre'] = array_map( 'ucwords', $event->movie->genres );
$taxonomies['trakt_year'] = esc_html( $event->year );
$taxonomies['trakt_year'] = esc_html( $event->movie->year );

$meta['trakt_movie_id'] = intval( $event->movie->ids->trakt );
$meta['imdb_movie_id'] = esc_html( $event->movie->ids->imdb );
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=== Traktivity ===
Contributors: jeherve
Tags: Trakt.tv, TV, Activity, Track, tmdb, Movies, TV Shows, Trakt, Log
Stable tag: 1.1.2
Stable tag: 1.1.3
Requires at least: 4.7
Tested up to: 4.7
License: GPLv2
Expand Down Expand Up @@ -42,6 +42,11 @@ Do you like that header image? Me too! Credit goes to [Andrew Branch](https://un

== Changelog ==

= 1.1.3 =
Release Date: March 5, 2017

* Make sure Year is properly recorded for movies.

= 1.1.2 =
Release Date: March 5, 2017

Expand Down
4 changes: 2 additions & 2 deletions traktivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://wordpress.org/plugins/traktivity
* Description: Log your activity on Trakt.tv
* Author: Jeremy Herve
* Version: 1.1.2
* Version: 1.1.3
* Author URI: https://jeremy.hu
* License: GPL2+
* Text Domain: traktivity
Expand All @@ -15,7 +15,7 @@

defined( 'ABSPATH' ) or die( 'No script kiddies please!' );

define( 'TRAKTIVITY__VERSION', '1.1.2' );
define( 'TRAKTIVITY__VERSION', '1.1.3' );
define( 'TRAKTIVITY__API_URL', 'https://api.trakt.tv' );
define( 'TRAKTIVITY__API_VERSION', '2' );
define( 'TRAKTIVITY__TMDB_API_URL', 'https://api.themoviedb.org' );
Expand Down

0 comments on commit 142fb9b

Please sign in to comment.