|
@@ -116,6 +116,7 @@ function submitted() {
|
116
|
116
|
}
|
117
|
117
|
|
118
|
118
|
function poll(id) {
|
|
119
|
+ var identifier = preview.caption().replace(/\s+/g, '_').replace(/\'|\"|\.|\?|\!/g, '').toLowerCase().slice(0, 20);
|
119
|
120
|
|
120
|
121
|
setTimeout(function(){
|
121
|
122
|
$.ajax({
|
|
@@ -124,7 +125,7 @@ function poll(id) {
|
124
|
125
|
dataType: "json",
|
125
|
126
|
success: function(result){
|
126
|
127
|
if (result && result.status && result.status === "ready" && result.url) {
|
127
|
|
- video.update(result.url, preview.theme().name);
|
|
128
|
+ video.update(result.url, identifier);
|
128
|
129
|
setClass("rendered");
|
129
|
130
|
} else if (result.status === "error") {
|
130
|
131
|
error(result.error);
|