I learned a while back to put the short, fail cases first (`if not youtube_id:`), because the short distance between the if and else makes it easier to remember about the else.  I find it makes things easier to read for me; thought I'd mention it once to you, in case you're interested to follow that as well!