codemonauts / craft-instagram-feed

Craft CMS plugin to receive Instragram feed data as variable in templates
MIT License
27 stars 7 forks source link

Undefined index: has_audio #49

Closed CharlieGentle closed 3 years ago

CharlieGentle commented 3 years ago

Just updated to 1.0.6 and now getting this:

PHP Notice – yii\base\ErrorException Undefined index: has_audio

/vendor/codemonauts/craft-instagram-feed/src/services/InstagramService.php

307: $item['hasAudio'] = $item['isVideo'] ? (bool)$media['node']['has_audio'] : false;

kringkaste commented 3 years ago

Ok, thats interesting. A video without the audio infomration. Could you tell me the Instagram account to check this?

CharlieGentle commented 3 years ago

I'm pulling through a hashtag if that changes anything. Testing a few and the one that gave me this problem was #dogsofinstagram

kringkaste commented 3 years ago

Thank you! We had not seen this kind of video meta before. I fixed this and released a new version 1.0.7.