Fix id generation for media items extracted from web pages