fixing syntax errors in media app

@icewind1991 please review - this should fix the syntax errors as reported by Jenkins:
https://ci.tmit.eu/job/ownCloud-apps%28master%29/709/console