Skip to content

Instantly share code, notes, and snippets.

View ariel-devsar's full-sized avatar

Ariel Argañaraz ariel-devsar

View GitHub Profile
from __future__ import unicode_literals
import logging
from django.core.exceptions import PermissionDenied
from django.shortcuts import get_object_or_404, get_list_or_404
from rest_framework.generics import RetrieveUpdateDestroyAPIView
from apps.common.permissions import is_tagger_admin
from rest_framework.response import Response
from rest_framework.filters import OrderingFilter
from django.http import JsonResponse
from django.views.decorators.http import require_POST
from django.shortcuts import get_object_or_404
from core.decorators import api_endpoint
from encoder.forms import VideoForm, VideoStorageOptionsForm
from encoder.models import Video, VideoChunkedUpload
from encoder.tasks import encode_video
from encoder.progress_utils.progress import get_uploading_progress
from django.conf import settings
import boto3
from utils.files import get_related_filename
from utils.files import get_fragments_list
from utils.files import get_fragments_list_no_intro
from utils.files import get_m3u8_files
from utils.aws_templates.templates import distribution_config
import time
'use strict';
angular.module('mpList', []);
// This service is useful to mark items as selected, SelectAll, unselectAll,etc
// The service requieres that items must have a SID identifier property.
//
angular.module('mpList').factory('Selection',
function () {
var vm = {
allSelected: false, // Boolean: True if all items are selected, other case is False.