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

Jamendo "WARNING: unable to extract duration" #18565

Closed
kousu opened this issue Dec 17, 2018 · 1 comment
Closed

Jamendo "WARNING: unable to extract duration" #18565

kousu opened this issue Dec 17, 2018 · 1 comment

Comments

@kousu
Copy link

@kousu kousu commented Dec 17, 2018

Checklist

  • I've verified and I assure that I'm running youtube-dl 2018.12.17
  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Output

$ youtube-dl -v https://www.jamendo.com/track/592180/winter-dreams
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.jamendo.com/track/592180/winter-dreams']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.12.09
[debug] Python version 3.7.1 (CPython) - Darwin-18.2.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1
[debug] Proxy map: {}
[Jamendo] winter-dreams: Downloading webpage
WARNING: unable to extract duration; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://flac.jamendo.com/?trackid=592180&format=flac&from=app-97dab294'
[download] Vladimir Sterzer - Winter Dreams-592180.flac has already been downloaded
[download] 100% of 12.62MiB
$ youtube-dl -v -g https://www.jamendo.com/track/592180/winter-dreams
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-g', 'https://www.jamendo.com/track/592180/winter-dreams']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.12.09
[debug] Python version 3.7.1 (CPython) - Darwin-18.2.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1
[debug] Proxy map: {}
WARNING: unable to extract duration; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[debug] Default format spec: bestvideo+bestaudio/best
https://flac.jamendo.com/?trackid=592180&format=flac&from=app-97dab294

Description of your issue, suggested solution and other information

youtube-dl is warning me that it can't find a duration. It still manages to download the file and show its URL.

@matthias4217
Copy link

@matthias4217 matthias4217 commented Jun 12, 2019

I guess I've fixed it in 615b019, however it's my first contribution to youtube-dl and I'm not sure what I did is perfect (but tests pass)
Note that the duration could also be found in a json in the webpage. However I've encountered issue with this.

I've tested two songs (one of them was already in the youtube-dl tests), and the relevant variable in the json was PT0.21S for the one lasting 210s, and PT0.141S for the other, lasting 141s. This seem very inconsistent and I don't really understand what's going on. It may be a problem internal to Jamendo.

However, the duration is also in another place in the page, in a more convenient format (210 or 141 for example) and I've decided to use this instead.

I'm writing this in case the duration extraction break again.

@remitamine remitamine closed this in e452345 Nov 4, 2019
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.