WPIntell

Source evidence

Time

ACF YouTube Picker · support · 2015-07-23T11:01:00+00:00

mixedsentiment
lowseverity
0.56relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 31 rows with source links

16.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

26 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
pro100light resolved
Hi! Can I show a time from my video ? https://wordpress.org/plugins/acf-youtube-picker/ I add this in youtubepicker.php public static function duration ( $vid, $apikey ) { if( $vid = self::is_vid( $vid ) ) { $dur = file_get_contents("https://www.googleapis.com/youtube/v3/videos?part=contentDetails&id=$vid&key=$apikey"); $VidDuration =json_decode($dur, true); foreach ($VidDuration['items'] as $vidTime) { $VidDuration= $vidTime['contentDetails']['duration']; } // convert duration from ISO to M:S $date = new DateTime('2000-01-01'); $date->add(new DateInterval($VidDuration)); return ( $date->format('i:s') ); } } in acf-youtubepicker-v5.php LINE: 537 'duration' => html_entity_decode( youtubepicker::duration( $v['vid'], $field['api_key'] ) ) use like this: $video[‘duration’] Hi pro100light ! Follow the link below with the changes. https://github.com/airesvsg/acf-youtubepicker/commit/6f495d1a215e0585edbfe2a1457886e4ebb3e470 Thanks

Comments

2 shown
pro100light 2015-07-23T13:50:00+00:00

I add this in youtubepicker.php public static function duration ( $vid, $apikey ) { if( $vid = self::is_vid( $vid ) ) { $dur = file_get_contents("https://www.googleapis.com/youtube/v3/videos?part=contentDetails&id=$vid&key=$apikey"); $VidDuration =json_decode($dur, true); foreach ($VidDuration['items'] as $vidTime) { $VidDuration= $vidTime['contentDetails']['duration']; } // convert duration from ISO to M:S $date = new DateTime('2000-01-01'); $date->add(new DateInterval($VidDuration)); return ( $date->format('i:s') ); } } in acf-youtubepicker-v5.php LINE: 537 'duration' => html_entity_decode( youtubepicker::duration( $v['vid'], $field['api_key'] ) ) use like this: $video[‘duration’]

airesvsg 2015-12-06T13:18:00+00:00

Hi pro100light ! Follow the link below with the changes. https://github.com/airesvsg/acf-youtubepicker/commit/6f495d1a215e0585edbfe2a1457886e4ebb3e470 Thanks