Skip to content
New issue

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

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

Already on GitHub? # to your account

Make duration() parse YouTube duration values #622

Closed
EricGoldsmith opened this issue Jan 17, 2018 · 0 comments
Closed

Make duration() parse YouTube duration values #622

EricGoldsmith opened this issue Jan 17, 2018 · 0 comments

Comments

@EricGoldsmith
Copy link

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 as completed in 67d9004 Jan 28, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant