port Youtube fixes from gPodder

Ported changes:
a628d073566957472c152d923ec139ed47f5b91c
fb5c62e5c977da0c46ad17c784692331e093476d
724467a1a771523507d823e6bf6d1cb6ab001297