ytsubs: rewrite to use API