Avoid:
HTML page URLs must end with a slash
when the script doesn't recognize a video URL as a cacheable page. It
looks like this bug snuck in way back in
ebd0292d (Allow gallery.py to
serve original images, 2012-08-25).
#!/usr/bin/env python
#
-# Copyright (C) 2010-2013 W. Trevor King <wking@tremily.us>
+# Copyright (C) 2010-2015 W. Trevor King <wking@tremily.us>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
return False
def is_video(filename):
- for extension in IMAGE_EXTENSIONS:
+ for extension in VIDEO_EXTENSIONS:
if filename.lower().endswith(extension):
return True
return False