Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soundcloud thumbnail 404 #23773

Open
sweetpopcorn opened this issue Jan 18, 2020 · 1 comment
Open

Soundcloud thumbnail 404 #23773

sweetpopcorn opened this issue Jan 18, 2020 · 1 comment

Comments

@sweetpopcorn
Copy link

@sweetpopcorn sweetpopcorn commented Jan 18, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.01.15
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--embed-thumbnail', u'--add-metadata', u'https://soundcloud.com/moeshop/pure-pure-intro']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.01.15
[debug] Python version 2.7.17 (CPython) - Linux-5.3.0-26-generic-x86_64-with-Ubuntu-19.10-eoan
[debug] exe versions: ffmpeg 4.1.4-1build2, ffprobe 4.1.4-1build2, phantomjs 5, rtmpdump 2.4
[debug] Proxy map: {}
[soundcloud] moeshop/pure-pure-intro: Downloading info JSON
[soundcloud] 218608459: Downloading JSON metadata
[soundcloud] 218608459: Downloading JSON metadata
[soundcloud] 218608459: Downloading JSON metadata
[debug] Default format spec: bestvideo+bestaudio/best
[soundcloud] 218608459: Downloading thumbnail ...
WARNING: Unable to download thumbnail "https://i1.sndcdn.com/artworks-000125923770-ozlgcz-original.jpg": HTTP Error 404: Not Found
[debug] Invoking downloader on u'https://cf-media.sndcdn.com/Cg3g6eHHbUOt.128.mp3?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vQ2czZzZlSEhiVU90LjEyOC5tcDMiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1NzkzNTE1Mjl9fX1dfQ__&Signature=Dq20AMY9s6MQmsp8WrmiuFb7p0yJK9VOgwfbGHCwHIshh717YwwDV8X6SjkRjtdHoajpC62D9n~Tv-RoeYd08NMcGC-ITbO5AvHegYDqqN7L4DAuaqlW4kWG84BR6UfELunkaiGHJbsqnK3vws4oRcUKu2wdUjcajBmwQQKlXdoAne3Clrps9i2NHIEpHC00rOk8tdLTgpTvhdQQtZvM6F7Ur09knnC~php5VxkVtvq92W~hDFxbKgd-Ln03O44Hza1ABd9AcO9BhmxVaNM7ZT1IcavETnGC9Bnw-HXtcdLJeT9FTYDSq5vZyWp0PEnVleW-D91bJ4hFRxLQegsZXw__&Key-Pair-Id=APKAI6TU7MMXM5DG6EPQ'
[download] Destination: Intro-218608459.mp3
[download] 100% of 265.30KiB in 00:00
[ffmpeg] Adding metadata to 'Intro-218608459.mp3'
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:Intro-218608459.mp3' -c copy -metadata 'comment=' -metadata 'description=' -metadata 'artist=Moe Shop' -metadata 'title=Intro' -metadata 'genre=Future Funk' -metadata 'date=20150810' -metadata 'purl=https://soundcloud.com/moeshop/pure-pure-intro' 'file:Intro-218608459.temp.mp3'
WARNING: Skipping embedding the thumbnail because the file is missing.

Description

Some songs have png thumbnails instead of jpg ones. youtube-dl tries to download https://i1.sndcdn.com/artworks-000125923770-ozlgcz-original.jpg but the thumbnail is located on https://i1.sndcdn.com/artworks-000125923770-ozlgcz-original.png in this case.

@probablykasper
Copy link

@probablykasper probablykasper commented Feb 10, 2020

Would probably be a good idea to fallback to a lower quality thumbnail if there's a 404 for a high quality one. In that case you'd at least get a 500x500 cover rather than an error.

SoundCloud doesn't really mention the existance of original artwork urls in their API docs, so I'm guessing that's why it's not always a jpg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.