filter-history.sh 264 B

123456
  1. #!/bin/bash
  2. # take all playlist export files, retrieve videos marked as "to save"
  3. jq -s 'map(.playbackHistory | to_entries | map(select(.value.tags | index("to save"))) | map({videoId: .key, title: .value.title})) | add | unique_by(.videoId)' playlists-export-*