Skip to content

Error while collecting sources feeds for Spotify track even with YouTube Music equivalent source #755

@DeltaCream

Description

@DeltaCream

I wanted to try downloading this song from Spotify called Sleep Away by Bob Acri, which had this URL:

https://open.spotify.com/track/5YHPH0wpc5IMqNNrbN3JMm

Using freyr urify returns spotify:track:5YHPH0wpc5IMqNNrbN3JMm which is the correct behavior.

However, when I tried running freyr spotify:track:5YHPH0wpc5IMqNNrbN3JMm, it returns an "Unable to collect source feeds" error.

Digging into it a little further, I found too that there is a URL for Sleep Away on YouTube Music, which is where freyr (from my understanding) retrieves its audio feeds.

URL for Sleep Away on YouTube Music: https://music.youtube.com/watch?v=lHjXY6EuCc4

Commands I tried:

SHOW_DEBUG_STACK=1 freyr spotify:track:5YHPH0wpc5IMqNNrbN3JMm
    ____
   / __/_______  __  _______
  / /_/ ___/ _ \/ / / / ___/
 / __/ /  /  __/ /_/ / /
/_/ /_/   \___/\__, /_/
              /____/ v0.10.3

freyr - (c) Miraculous Owonubi <omiraculous@gmail.com>
------------------------------------------------------
Checking directory permissions...[done]
[spotify:track:5YHPH0wpc5IMqNNrbN3JMm]
 [•] Identifying service...[Spotify]
 [•] Checking authentication...[authenticated]
 Detected [track]
 Obtaining track metadata...[done]
  ➤ Title: Sleep Away
  ➤ Album: Bob Acri
  ➤ Artist: Bob Acri
  ➤ Year: 2009
  ➤ Playtime: 03:21
 [•] Collating...
 • [08 Sleep Away]
    | ➤ Collating sources...
    |  ➤ [•] YouTube Music...(failed: [YouTubeSearchError: Response code 404 (Not Found)
    at file:///home/cream/.local/share/pnpm/global/5/.pnpm/freyr@0.10.3/node_modules/freyr/src/services/youtube.js:93:11
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async YouTubeMusic.request (file:///home/cream/.local/share/pnpm/global/5/.pnpm/freyr@0.10.3/node_modules/freyr/src/services/youtube.js:89:22)
    at async YouTubeMusic.search (file:///home/cream/.local/share/pnpm/global/5/.pnpm/freyr@0.10.3/node_modules/freyr/src/services/youtube.js:133:22)
    at async YouTubeMusic.search (file:///home/cream/.local/share/pnpm/global/5/.pnpm/freyr@0.10.3/node_modules/freyr/src/services/youtube.js:296:21) {
  status: 'ERR_NON_2XX_3XX_RESPONSE',
  statusCode: 404,
  body: {
    error: {
      code: 404,
      message: 'Requested entity was not found.',
      errors: [Array],
      status: 'NOT_FOUND'
    }
  }
}])
    |  ➤ [•] YouTube...[success, found 27 sources]
    | ➤ Awaiting audiofeeds...[Unable to collect source feeds]
 [•] Download Complete
 [•] Embedding Metadata...
  • [✕] 08 Sleep Away [spotify:track:5YHPH0wpc5IMqNNrbN3JMm] (failed: Error while collecting sources feeds)
[•] Collation Complete
============ Stats ============
 [•] Runtime: [2.3s]
 [•] Total queries: [01]
 [•] Total tracks: [01]
     » Skipped: [00]
     ✓ Passed:  [00]
     ✕ Failed:  [01]
 [•] Output directory: [.]
 [•] Total Output size: 0.00 B
 [•] Total Network Usage: 0.00 B
     ♫ Media: 0.00 B
     ➤ Album Art: 0.00 B
 [•] Output bitrate: 320k
===============================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions