+ obj = self.get_object()
+ yt = obj.project.youtube
+ yt.update_data(obj)
+ return redirect(reverse('file', args=[pk]))
+
+
+@method_decorator(permission_required('archive.change_audiobook'), name='dispatch')
+class UpdateThumbnail(SingleObjectMixin, View):
+ model = Audiobook
+
+ def post(self, request, pk):
+ obj = self.get_object()
+ yt = obj.project.youtube
+ yt.update_thumbnail(obj)