get_post_type is always post

Post type and post format are different. Try get_post_format().

In your code, this would be:

if ( 'video' === get_post_format() ) {
...

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)