Trying to enable video thumbnails/previews

I’ve seen many posts that say to install ffmpeg, and append some lines your config.php. These are the last 10 lines of my config.php. Everything works fine.

‘mail_from_address’ => ‘asdfasdf’,
‘mail_domain’ => ‘asdfasdf’,
‘mail_smtpauthtype’ => ‘LOGIN’,
‘mail_smtpauth’ => 1,
‘mail_smtphost’ => ‘asdfasdf’,
‘mail_smtpport’ => ‘465’,
‘mail_smtpname’ => ‘asdfasdf’,
‘mail_smtppassword’ => ‘asdfasdf’,
‘maintenance’ => false,
);

Following instructions I’ve seen on many posts, I append this to my config.php

‘enable_previews’ => true, <–Line 43
‘enabledPreviewProviders’ =>
array (
0 => ‘OC\Preview\TXT’,
1 => ‘OC\Preview\MarkDown’,
2 => ‘OC\Preview\PDF’,
3 => ‘OC\Preview\MP3’,
4 => ‘OC\Preview\Movie’,
5 => ‘OC\Preview\MKV’,
6 => ‘OC\Preview\MP4’,
7 => ‘OC\Preview\AVI’,
),
); ← I WAS MISSING THIS!!!

Then it breaks, with “Internal Server Error” and I get this: “PHP message: PHP Parse error: syntax error, unexpected token “,” in /config/www/nextcloud/config/config.php on line 43”

I’ve tried tweaking spaces, commas, semi-colons. What am I missing? Am I going about this the wrong way? Please help.

EDIT: I figured it out. See above.

1 Like