def pdf_file(self): if self.media_process and self.media_process.get('pdf'): pdf_info = self.media_process.get('pdf') page_num = pdf_info.get('page_num') key = pdf_info.get('key') return get_private_url(key) return []
def pdf_file(self): if self.media_process and self.media_process.get('pdf'): pdf_info = self.media_process.get('pdf') page_num = pdf_info.get('page_num') key = pdf_info.get('key') return get_private_url(key) return []
def file(self): return get_private_url(self.qiniu_key)
def file(self): return get_private_url(self.qiniu_key)
def cover(self): if self.content.get('full_video'): video_cover = self.content['full_video'] + '?vframe/jpg/offset/7/w/480/h/360' return get_private_url(video_cover) return 'http://7xn3in.com2.z0.glb.qiniucdn.com/logo-big.jpg'
def qiniu_private_url(key): return get_private_url(key)
def qiniu_private_url(key): return get_private_url(key)