FIX: website/myspass.lua:63: bad argument #3 to format
This commit fixes the:
myspass.lua:63: bad argument #3 to format (number expected, got string)
This is caused by MySpass.getMetadataValue returning an empty string
value (""). Check for what we assume to be an expired video (all
metadata fields are empty).
Other:
* Apply correct code indentation convention
See, <http://quvi.sourceforge.net/contrib.html#indent> for 0.4
convention.
* Do not set self.metadata in MySpass.getMetadataValue
Instead, fetch it to a local variable and pass that to the function.
This saves us a (repeated) if-then check without polluting the `self'
table.
Signed-off-by: Toni Gundogdu <legatvs@gmail.com>