Add stat to media before saving so media can be used in a playlist

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>