"""P(?:(?P<years>\\d+)Y)?(?:(?P<months>\\d+)M)?(?:(?P<weeks>\\d+)W)?(?:(?P<days>\\d+)D)?(?:T(?:(?P<hours>\\d+)H)?(?:(?P<minutes>\\d+)M)?(?:(?P<seconds>\\d+)S)?)?"""
How to convert YouTube API duration to seconds?