yt-dlp / yt-dlp

A feature-rich command-line audio/video downloader
https://discord.gg/H5MNcFW63r
The Unlicense
76.27k stars 6k forks source link

Freesound - "Unable to extract song url" #9887

Open atom-smasher opened 1 month ago

atom-smasher commented 1 month ago

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

Checklist

Region

No response

Provide a description that is worded well enough to be understood

Just getting an error - "Unable to extract song url"

Command:

yt-dlp --ignore-config -vU https://freesound.org/people/Sami_Hiltunen/sounds/703362/

Provide verbose output that clearly demonstrates the problem

Complete Verbose Output

[debug] Command-line config: ['--ignore-config', '-vU', 'https://freesound.org/people/Sami_Hiltunen/sounds/703362/']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version master@2024.05.05.231549 from yt-dlp/yt-dlp-master-builds [5904853ae] (zip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-105-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg 4.4.2 (setts), ffprobe 4.4.2, phantomjs 2.1.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.11.0, certifi-2020.06.20, mutagen-1.45.1, pyxattr-0.7.2, requests-2.25.1, secretstorage-3.3.1, sqlite3-3.37.2, urllib3-1.26.5
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Extractor Plugins: Youtube_AgeGateBypassIE
[debug] Loaded 1811 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-master-builds/releases/latest
Latest version: master@2024.05.05.231549 from yt-dlp/yt-dlp-master-builds
yt-dlp is up to date (master@2024.05.05.231549 from yt-dlp/yt-dlp-master-builds)
[Freesound] Extracting URL: https://freesound.org/people/Sami_Hiltunen/sounds/703362/
[Freesound] 703362: Downloading webpage
ERROR: [Freesound] 703362: Unable to extract song url; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/home/atom/bin/yt-dlp/yt_dlp/extractor/common.py", line 734, in extract
    ie_result = self._real_extract(url)
  File "/home/atom/bin/yt-dlp/yt_dlp/extractor/freesound.py", line 34, in _real_extract
    audio_url = self._og_search_property('audio', webpage, 'song url')
  File "/home/atom/bin/yt-dlp/yt_dlp/extractor/common.py", line 1449, in _og_search_property
    escaped = self._search_regex(og_regexes, html, name, flags=re.DOTALL, **kargs)
  File "/home/atom/bin/yt-dlp/yt_dlp/extractor/common.py", line 1321, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
dirkf commented 1 month ago

This site has changed its page structure and the extractor code needs to be revised. A forthcoming upstream PR will address this.