Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-1044

Import Youtube (Music) watch history

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None

      users of youtube (and youtube music) can download their 'watch history' from https://takeout.google.com/

      Here is an excerpt of my watch-history.json:

       

      [{
        "header": "YouTube",
        "title": "Watched Is Sad Music Actually Sad? | Idea Channel | PBS Digital Studios",
        "titleUrl": "https://www.youtube.com/watch?v\u003dbWWYE4eLEfk",
        "subtitles": [{
          "name": "PBS Idea Channel",
          "url": "https://www.youtube.com/channel/UC3LqW4ijMoENQ2Wv17ZrFJA"
        }],
        "time": "2021-02-18T14:03:12.780Z",
        "products": ["YouTube"],
        "activityControls": ["YouTube watch history"]
      },{
        "header": "YouTube Music",
        "title": "Watched Killing In the Name",
        "titleUrl": "https://www.youtube.com/watch?v\u003d2o9aoL0NWpw",
        "subtitles": [{
          "name": "Rage Against the Machine - Topic",
          "url": "https://www.youtube.com/channel/UCg4nBubbzhYXjudOxPi9V7w"
        }],
        "time": "2021-12-18T09:13:36.211Z",
        "products": ["YouTube"],
        "activityControls": ["YouTube watch history"]
      }]

      The first one is a regular Youtube-Video that I wouldn't want to have imported to listenbrainz. The second one is a real music track

      https://music.youtube.com/watch?v=2o9aoL0NWpw

      or

      https://musicbrainz.org/recording/5f64bf87-a18e-4ac0-8a49-dc1d500a8ba5

      unfortunately the JOSN does not contain track and artist name. But it can be queried.

      Is there anything fundamentally in the way of importing {{watch-history.json }}to Listenbrainz?

      Should I write my own script? Is it something that should be offered on: https://listenbrainz.org/import-data/

      I'd provide my personal watch history for testing.

       

            Unassigned Unassigned
            Schmias Schmias
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Version Package