Skip to content

Commit 5d6ef6d

Browse files
committed
Added support for filename field to thumbnail
1 parent 4ef4124 commit 5d6ef6d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/main/java/de/bitzeche/video/transcoding/zencoder/job/ZencoderThumbnail.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class ZencoderThumbnail {
3939
private String size;
4040
private String baseUrl;
4141
private String prefix;
42+
private String filename;
4243
private ZencoderThumbnailFormat format;
4344

4445
/*
@@ -96,6 +97,12 @@ public Element createXML(Document document) {
9697
prefixNode.setTextContent(this.prefix);
9798
root.appendChild(prefixNode);
9899
}
100+
101+
if(this.filename != null) {
102+
Node filenameNode = document.createElement("filename");
103+
filenameNode.setTextContent(this.filename);
104+
root.appendChild(filenameNode);
105+
}
99106

100107
Node publicNode = document.createElement("public");
101108
publicNode.setTextContent(this.isPublic ? "1" : "0");
@@ -143,6 +150,11 @@ public String getBaseUrl() {
143150
public String getPrefix() {
144151
return prefix;
145152
}
153+
154+
public String getFilename() {
155+
return filename;
156+
}
157+
146158
public ZencoderThumbnailFormat getFormat() {
147159
return format;
148160
}
@@ -182,6 +194,10 @@ public void setBaseUrl(String baseUrl) {
182194
public void setPrefix(String prefix) {
183195
this.prefix = prefix;
184196
}
197+
198+
public void setFilename(String filename) {
199+
this.filename = filename;
200+
}
185201

186202
public void setPublic(boolean isPublic) {
187203
this.isPublic = isPublic;

0 commit comments

Comments
 (0)