Skip to content

Commit

Permalink
Only use the episode title as post title.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve committed Mar 5, 2017
1 parent 72d91e8 commit 5f509d4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions core.traktivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,16 +457,7 @@ public function publish_event( $args = array() ) {
if ( 'movie' === $event->type ) {
$title = $event->movie->title;
} elseif ( 'episode' === $event->type ) {
/**
* For TV Shows, it might be best to append the show's name to the episode name.
* This way, slugs won't conflict when 2 shows have an episode that has the same name.
* (think common episode names like "Pilot" for example.)
*/
$title = sprintf(
'%1$s -- %2$s',
$event->episode->title,
$event->show->title
);
$title = $event->episode->title;
} else {
continue;
}
Expand Down

0 comments on commit 5f509d4

Please sign in to comment.