New hooks for media.py