Unverified Commit 77d04caf by Gregory Martin Committed by GitHub

Merge pull request #55 from edx/yro/xuetang_migrations

Eliminate XuetangX, Add Migrations
parents a7acb2bd 93d26e00
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
"encode_bitdepth": "27", "encode_bitdepth": "27",
"encode_resolution": "720", "encode_resolution": "720",
"product_spec": "desktop_mp4", "product_spec": "desktop_mp4",
"xuetang_proc": true
} }
}, },
{ {
...@@ -35,7 +34,6 @@ ...@@ -35,7 +34,6 @@
"encode_bitdepth": "0", "encode_bitdepth": "0",
"encode_resolution": "0", "encode_resolution": "0",
"product_spec": "hls", "product_spec": "hls",
"xuetang_proc": false
} }
}, },
{ {
...@@ -50,7 +48,6 @@ ...@@ -50,7 +48,6 @@
"encode_bitdepth": "27", "encode_bitdepth": "27",
"encode_resolution": "360", "encode_resolution": "360",
"product_spec": "mobile_low", "product_spec": "mobile_low",
"xuetang_proc": false
} }
}, },
{ {
...@@ -68,7 +65,6 @@ ...@@ -68,7 +65,6 @@
"s3_proc": true, "s3_proc": true,
"xue": true, "xue": true,
"local_storedir": "course-v1:VEDA+VEDA201+2015_T1", "local_storedir": "course-v1:VEDA+VEDA201+2015_T1",
"xuetang_proc": false,
"studio_hex": "xxxx" "studio_hex": "xxxx"
} }
} }
......
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-10-24 20:03
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('VEDA_OS01', '0002_auto_20171016_1211'),
]
operations = [
migrations.RemoveField(
model_name='course',
name='xuetang_proc',
),
migrations.RemoveField(
model_name='encode',
name='xuetang_proc',
),
migrations.RemoveField(
model_name='url',
name='md5_sum',
),
migrations.RemoveField(
model_name='url',
name='xuetang_input',
),
]
...@@ -378,7 +378,6 @@ class Course(models.Model): ...@@ -378,7 +378,6 @@ class Course(models.Model):
max_length=5000, max_length=5000,
null=True, blank=True null=True, blank=True
) )
xuetang_proc = models.BooleanField('Submit to XuetangX', default=True)
sg_projID = models.IntegerField('Shotgun Project ID', default=0) sg_projID = models.IntegerField('Shotgun Project ID', default=0)
studio_hex = models.CharField( studio_hex = models.CharField(
'Studio Hex ID', 'Studio Hex ID',
...@@ -578,7 +577,6 @@ class Encode(models.Model): ...@@ -578,7 +577,6 @@ class Encode(models.Model):
'VAL Profile Name', 'VAL Profile Name',
max_length=300, max_length=300,
null=True, blank=True) null=True, blank=True)
xuetang_proc = models.BooleanField('Submit to XuetangX', default=False)
def __unicode__(self): def __unicode__(self):
return u'{encode_profile}'.format(encode_profile=self.encode_name) return u'{encode_profile}'.format(encode_profile=self.encode_name)
...@@ -600,8 +598,6 @@ class URL(models.Model): ...@@ -600,8 +598,6 @@ class URL(models.Model):
) )
encode_size = models.IntegerField('File Size (bytes)', default="0", null=True, blank=True) encode_size = models.IntegerField('File Size (bytes)', default="0", null=True, blank=True)
val_input = models.BooleanField('Inputted to EDX-VAL?', default=False) val_input = models.BooleanField('Inputted to EDX-VAL?', default=False)
xuetang_input = models.BooleanField('Inputted to XuetangX?', default=False)
md5_sum = models.CharField('MD5 Sum', max_length=100, null=True, blank=True)
class Meta: class Meta:
get_latest_by = 'url_date' get_latest_by = 'url_date'
......
...@@ -186,7 +186,6 @@ class EncodeSerializer(serializers.ModelSerializer): ...@@ -186,7 +186,6 @@ class EncodeSerializer(serializers.ModelSerializer):
'encode_bitdepth', 'encode_bitdepth',
'encode_resolution', 'encode_resolution',
'product_spec', 'product_spec',
'xuetang_proc',
) )
...@@ -204,8 +203,6 @@ class URLSerializer(serializers.ModelSerializer): ...@@ -204,8 +203,6 @@ class URLSerializer(serializers.ModelSerializer):
'encode_bitdepth', 'encode_bitdepth',
'encode_size', 'encode_size',
'val_input', 'val_input',
'xuetang_input',
'md5_sum',
) )
def create(self, validated_data): def create(self, validated_data):
......
...@@ -116,13 +116,10 @@ class VedaDelivery: ...@@ -116,13 +116,10 @@ class VedaDelivery:
u1.encode_duration = self.video_proto.duration u1.encode_duration = self.video_proto.duration
u1.encode_bitdepth = self.video_proto.bitrate u1.encode_bitdepth = self.video_proto.bitrate
u1.encode_size = self.video_proto.filesize u1.encode_size = self.video_proto.filesize
u1.md5_sum = self.video_proto.hash_sum
u1.save() u1.save()
self.status = self._DETERMINE_STATUS() self.status = self._DETERMINE_STATUS()
self._UPDATE_DATA() self._UPDATE_DATA()
self._CLEANUP() self._CLEANUP()
# Transcription Process # Transcription Process
...@@ -611,11 +608,3 @@ class VedaDelivery: ...@@ -611,11 +608,3 @@ class VedaDelivery:
encode_profile=self.encode_profile encode_profile=self.encode_profile
) )
DY.upload() DY.upload()
def main():
pass
if __name__ == '__main__':
sys.exit(main())
...@@ -81,7 +81,6 @@ class VideoProto(): ...@@ -81,7 +81,6 @@ class VideoProto():
self.bitrate = None self.bitrate = None
self.resolution = None self.resolution = None
self.veda_id = None self.veda_id = None
self.hash_sum = None
class VedaIngest: class VedaIngest:
...@@ -183,10 +182,6 @@ class VedaIngest: ...@@ -183,10 +182,6 @@ class VedaIngest:
""" """
self.video_proto.filesize = os.stat(self.full_filename).st_size self.video_proto.filesize = os.stat(self.full_filename).st_size
self.video_proto.hash_sum = hashlib.md5(
open(self.full_filename, 'rb').read()
).hexdigest()
ff_command = ' '.join(( ff_command = ' '.join((
FFPROBE, FFPROBE,
"\'" + self.full_filename + "\'" "\'" + self.full_filename + "\'"
......
...@@ -215,7 +215,6 @@ class VideoProto(): ...@@ -215,7 +215,6 @@ class VideoProto():
self.resolution = None self.resolution = None
self.veda_id = kwargs.get('veda_id', None) self.veda_id = kwargs.get('veda_id', None)
self.val_id = kwargs.get('val_id', None) self.val_id = kwargs.get('val_id', None)
self.hash_sum = None
class Metadata(): class Metadata():
...@@ -245,10 +244,6 @@ class Metadata(): ...@@ -245,10 +244,6 @@ class Metadata():
""" """
self.video_proto.filesize = os.stat(self.full_filename).st_size self.video_proto.filesize = os.stat(self.full_filename).st_size
self.video_proto.hash_sum = hashlib.md5(
open(self.full_filename, 'rb').read()
).hexdigest()
ff_command = ' '.join(( ff_command = ' '.join((
FFPROBE, FFPROBE,
"\'" + self.full_filename + "\'" "\'" + self.full_filename + "\'"
......
...@@ -26,7 +26,6 @@ bools: ...@@ -26,7 +26,6 @@ bools:
- c24_proc - c24_proc
- s3_proc - s3_proc
- xue - xue
- xuetang_proc
# dropdown boxes # dropdown boxes
dropdowns: dropdowns:
...@@ -56,7 +55,6 @@ organizational: ...@@ -56,7 +55,6 @@ organizational:
review_proc: encode review_proc: encode
proc_loc: encode proc_loc: encode
xue: encode xue: encode
xuetang_proc: encode
yt_logon: encode yt_logon: encode
tp_proc: transcribe tp_proc: transcribe
......
...@@ -136,8 +136,6 @@ sg_script_key: ...@@ -136,8 +136,6 @@ sg_script_key:
# Endpoints # Endpoints
# --- # ---
threeplay_ftphost: threeplay_ftphost:
xuetang_api_url:
xuetang_api_shared_secret:
## Encoding Config ## Encoding Config
ffmpeg_compiled: "ffmpeg" ffmpeg_compiled: "ffmpeg"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment