analyzers = timeside.core.processor.processors(timeside.core.api.IAnalyzer)
value_analyzers = timeside.core.processor.processors(timeside.core.api.IValueAnalyzer)
-
-
export_enabled = getattr(settings, 'TELEMETA_DOWNLOAD_ENABLED', True)
export_formats = getattr(settings, 'TELEMETA_DOWNLOAD_FORMATS', ('mp3', 'wav'))
default_grapher_id = getattr(settings, 'TIMESIDE_DEFAULT_GRAPHER_ID', ('waveform_simple'))
mime_type = 'image/png'
source, source_type = item.get_source()
- if source:
- ts_item, c = ts.models.Item.objects.get_or_create(**{source_type: source})
- if c:
- ts_item.title = item.title
- ts_item.save()
-
- ts_grapher, c = ts.models.Processor.objects.get_or_create(pid=grapher_id)
- ts_preset, c = ts.models.Preset.objects.get_or_create(processor=ts_grapher,
- parameters={'width': width, 'height': height})
- ts_experience = ts_preset.get_single_experience()
- ts_selection = ts_item.get_single_selection()
- ts_task, c = ts.models.Task.objects.get_or_create(experience=ts_experience,
- selection=ts_selection)
- ts_task.run()
+ # if source:
+ # ts_item, c = ts.models.Item.objects.get_or_create(**{source_type: source})
+ # if c:
+ # ts_item.title = item.title
+ # ts_item.save()
+ #
+ # ts_grapher, c = ts.models.Processor.objects.get_or_create(pid=grapher_id)
+ # ts_preset, c = ts.models.Preset.objects.get_or_create(processor=ts_grapher,
+ # parameters={'width': width, 'height': height})
+ # ts_experience = ts_preset.get_single_experience()
+ # ts_selection = ts_item.get_single_selection()
+ # ts_task, c = ts.models.Task.objects.get_or_create(experience=ts_experience,
+ # selection=ts_selection)
+ # ts_task.run()
grapher = self.get_grapher(grapher_id)
# Corresponding TimeSide Item
source, source_type = item.get_source()
- if source:
- ts_item, c = ts.models.Item.objects.get_or_create(**{source_type: source})
- if c:
- ts_item.title = item.title
- ts_item.save()
+ # if source:
+ # ts_item, c = ts.models.Item.objects.get_or_create(**{source_type: source})
+ # if c:
+ # ts_item.title = item.title
+ # ts_item.save()
self.item_analyze(item)
context['format'] = item_format
context['private_extra_types'] = private_extra_types.values()
context['site'] = 'http://' + Site.objects.all()[0].name
- if ts_item:
- context['ts_item_id'] = ts_item.pk
- else:
- context['ts_item_id'] = None
+ # if ts_item:
+ # context['ts_item_id'] = ts_item.pk
+ # else:
+ # context['ts_item_id'] = None
return context