Fixing possible infinite loop with YouTube links