Implement get the up-to-date media id.

TODO:
 * implement check updating mechanism