ignore timestamp extraction for instagram videos

This commit is contained in:
Dima Gerasimov 2019-04-03 22:59:37 +01:00
parent c35a4acb7d
commit e8b18b6a74

View file

@ -180,7 +180,9 @@ def _try_photo(photo: str, mtype: str, dgeo: Optional[LatLon]) -> Optional[Photo
lon = convert(meta[LON], meta[LON_REF])
geo = (lat, lon)
if dt is None:
# TODO eh. perhaps ignore all of instagram videos? they are also too behind in past...
if 'Instagram/VID_' in photo:
logger.warning('ignoring timestamp extraction for %s, they are stupid for Instagram videos', photo)
else:
try:
edt = dt_from_path(photo) # ok, last try..
except Exception as e: