TELEMETA_DOWNLOAD_ENABLED now just rules the display of the download section.
TELEMETA_CACHE_DIR = absolute path to the cache directory that you just created
TELEMETA_GMAP_KEY = your Google Map API key
TELEMETA_DOWNLOAD_ENABLED = True to enable audio data download
+ TELEMETA_STREAMING_FORMATS = tuple of authoized streaming formats. Ex : ('mp3', 'ogg')
TELEMETA_PUBLIC_ACCESS_PERIOD = number of years above which item files are automagically published
EMAIL_HOST = your default SMTP server
DEFAULT_FROM_EMAIL = the default sending email address
item = MediaItem.objects.get(public_id=public_id)
public_access = self.get_public_access(item.public_access, item.recorded_from_date, item.recorded_to_date)
- if (not public_access or not settings.TELEMETA_DOWNLOAD_ENABLED) and not request.user.is_staff:
+ if (not public_access or not extension in settings.TELEMETA_STREAMING_FORMATS) and not request.user.is_staff:
return HttpResponseRedirect('not_allowed/')
for encoder in self.encoders: