Line break here to separate logic into sections would help readability.  Would also prefer old_videolog to be retrieved first, then have a block of setting videolog (personal readability preference)