def Merge(self, first, second):
    if first is None: return second
    if second is None: return first

    # Make first the most recent object, and second the least recent:
    if first.Get("type").age < second.Get("type").age:
      first, second = second, first

    # Merge the attributes together.
    for k, v in second.synced_attributes.iteritems():
      first.synced_attributes.setdefault(k, []).extend(v)

    for k, v in second.new_attributes.iteritems():
      first.new_attributes.setdefault(k, []).extend(v)

    return first
Content ID of current playing media.
dataset/ETHPy150Open google/grr/grr/lib/aff4.py/Factory.Merge--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/__init__.py/MediaPlayerDevice.media_content_id