3 if(doc.doc_type == "EpisodeUserState")
5 for(var n in doc.actions)
7 var action = doc.actions[n];
10 podcast: doc.podcast_ref_url,
12 action: action.action,
13 timestamp: action.timestamp.slice(0, action.timestamp.length-1),
16 if(action.device != null)
18 action_obj["device_id"] = action.device;
20 if(action.started != null)
22 action_obj["started"] = action.started;
24 if(action.playmark != null)
26 action_obj["position"] = action.playmark;
28 if(action.total != null)
30 action_obj["total"] = action.total;
37 action.upload_timestamp,