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

Make duration() parse YouTube duration values #622

EricGoldsmith opened this Issue Jan 17, 2018 · 0 comments


None yet
1 participant

EricGoldsmith commented Jan 17, 2018

> duration("11M22S")
[1] "682s (~11.37 minutes)"

is correct

> duration("PT11M22S")
[1] NA

is not.

The latter is the format used by YouTube for video duration, and is a valid notation option per the ISO 8601 spec on durations.

More info on the YT duration format: look for contentDetails.duration on this page.

@vspinu vspinu closed this in 67d9004 Jan 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment