Skip to content

Commit d3b269e

Browse files
authored
Merge pull request scratchfoundation#93 from LLK/paulkaplan-patch-2
Support 3.0 library syntax when fetching assets
2 parents 56f8a27 + aa3c1ab commit d3b269e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/fetchMediaLibraryAssets.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ const collectSimple = function (library, dest, debugLabel = 'Item') {
2323
++md5Count;
2424
dest.add(item.md5);
2525
}
26-
if (item.baseLayerMD5) {
26+
if (item.baseLayerMD5) { // 2.0 library syntax for costumes
2727
++md5Count;
2828
dest.add(item.baseLayerMD5);
2929
}
30+
if (item.md5ext) { // 3.0 library syntax for costumes
31+
++md5Count;
32+
dest.add(item.md5ext);
33+
}
3034
if (md5Count < 1) {
3135
console.warn(`${debugLabel} has no MD5 property:\n${describe(item)}`);
3236
} else if (md5Count > 1) {

0 commit comments

Comments
 (0)