def refreshVideoDetailURL(url, user): log(obj={'url': url}) filterOperation('refreshVideoDetailURL', user, url) json_str = dumps({ 'url': url, 'tags': [], 'dst_copy': '', 'dst_playlist': '', 'dst_rank': -1, 'other_copies': [], 'user': user, 'playlist_ordered': None, 'update_video_detail': True, 'event_id': getEventID() }) postTask(json_str)
def refreshVideoDetail(vid, user): log(obj={'vid': vid}) filterOperation('refreshVideoDetail', user, vid) filterSingleVideo(vid, user) item = tagdb.retrive_item(vid) if item is None: raise UserError('ITEM_NOT_EXIST') json_str = dumps({ 'url': item['item']['url'], 'tags': [], 'dst_copy': '', 'dst_playlist': '', 'dst_rank': -1, 'other_copies': [], 'user': user, 'playlist_ordered': None, 'update_video_detail': True, 'event_id': getEventID() }) postTask(json_str)