def fill_video(self, video, fields):
        if 'url' in fields:
            with self.browser:
                if not isinstance(video, BaseVideo):
                    video = self.get_video(self, video.id)

                if hasattr(video, '_video_code'):
                    video.url = unicode(self.browser.get_video_url(video._video_code))

        if 'thumbnail' in fields and video and video.thumbnail:
            with self.browser:
                video.thumbnail.data = self.browser.readurl(video.thumbnail.url)
        return video