straight port of youtube dl fixes for encrypted signatures for the last week.

this will never be stable..