Skip to content

Commit

Permalink
Merge pull request #100 from jasonadkison/media-video-views
Browse files Browse the repository at this point in the history
fixes mapping to media videoViews
  • Loading branch information
raiym authored Apr 19, 2017
2 parents 5b9f699 + 75f380a commit 35938ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/InstagramScraper/Model/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static function fromMediaPage($mediaArray)
if ($mediaArray['is_video']) {
$instance->type = 'video';
$instance->videoStandardResolutionUrl = $mediaArray['video_url'];
$instance->videoViews = $mediaArray['video_views'];
$instance->videoViews = $mediaArray['video_view_count'];
}
if (isset($mediaArray['caption_is_edited'])) {
$instance->captionIsEdited = $mediaArray['caption_is_edited'];
Expand Down Expand Up @@ -186,4 +186,4 @@ public static function getCodeFromId($id)
};
return $code;
}
}
}

0 comments on commit 35938ff

Please sign in to comment.