data: {}
data(): {
return {
goods: [
{
imgSrc: '../dist/cropped-img/img1.png',
title: '«Рождение Венеры» Сандро Боттичелли',
oldPrice: '2 000 000',
newPrice: '1 000 000',
inStock: true
},
{
imgSrc: '../dist/cropped-img/img2.png',
title: '«Тайная вечеря» Леонардо да Винчи',
oldPrice: '',
newPrice: '3 000 000',
inStock: true
},
{
imgSrc: '../dist/cropped-img/img3.png',
title: '«Сотворение Адама» Микеланджело',
oldPrice: '6 000 000',
newPrice: '5 000 000',
inStock: true
},
{
imgSrc: '../dist/cropped-img/img2.png',
title: '«Урок анатомии» Рембрандт',
oldPrice: '',
newPrice: '',
inStock: false
}
],
info: null,
button: 'Купить',
//loading: true
}
}
filteredList() {
return this.info.filter(elem => elem.userName.toLowerCase().indexOf(this.userName.toLowerCase()) !== -1)
}
filteredList() {
return this.info.filter(elem => elem.name.toLowerCase().indexOf(this.userName.toLowerCase()) !== -1)
}
class BooksSummary(DetailView):
model = BookSummary
def get_context_data(self, **kwargs):
context = super(BooksSummary, self).get_context_data(**kwargs)
context['books'] = self.object.book_set.all()
context['series'] = self.object.bookseries_set.all()\
.select_related('series',
'book',
'booksummary')\
.order_by('series')\
.distinct('series')
return context
ffmpeg -i video1.mp4 -c copy -bsf h264_mp4toannexb video1.ts
ffmpeg -i "concat:video1.ts|video2.ts|" -c copy -bsf:a aac_adtstoasc video_done.mp4
ffmpeg -filter_complex aevalsrc=0 -loop 1 -i black.png -t 5 out.mp4
ffmpeg -i in.mp4 -c copy -bsf h264_mp4toannexb out.ts
ffmpeg -i "concat:in1.ts|in2.ts|in3.ts|in4.ts" -c copy -bsf aac_adtstoasc out.mp4