[generic plugins] fix parsing media in link