core: fix identify of medium files located in the filezcache.

(cherry picked from commit 4e8de676d449c42a5f53f1f4aecce465a18b2471)