@gen.coroutine
def UpdateEpisode(client, obj_store, user_id, device_id, request):
 (yield Activity.VerifyActivityId(client, user_id, device_id, request['activity']['activity_id']))
 headers = request.pop('headers')
 activity = request.pop('activity')
 request = {'headers': headers, 'user_id': user_id, 'activity': activity, 'episode': request}
 (yield gen.Task(Operation.CreateAndExecute, client, user_id, device_id, 'UpdateEpisodeOperation.Execute', request))
 logging.info(('UPDATE EPISODE: user: %d, device: %d, episode: %s' % (user_id, device_id, request['episode']['episode_id'])))
 raise gen.Return({})

@ gen . coroutine def UpdateEpisode ( client , obj_store , user_id , device_id , request ) : ( yield Activity . VerifyActivityId ( client , user_id , device_id , request [ 'activity' ] [ 'activity_id' ] ) ) headers = request . pop ( 'headers' ) activity = request . pop ( 'activity' ) request = { 'headers' : headers , 'user_id' : user_id , 'activity' : activity , 'episode' : request } ( yield gen . Task ( Operation . CreateAndExecute , client , user_id , device_id , 'UpdateEpisodeOperation.Execute' , request ) ) logging . info ( ( 'UPDATE EPISODE: user: %d, device: %d, episode: %s' % ( user_id , device_id , request [ 'episode' ] [ 'episode_id' ] ) ) ) raise gen . Return ( { } )
updates episode metadata .