|
6 | 6 | import sys |
7 | 7 | import tarfile |
8 | 8 |
|
9 | | -RELEASE_PATH = "uixr-assets-cc0-1.1.tar" |
| 9 | +RELEASE_PATH = "uixr-assets-le-1.2.tar" |
10 | 10 | ASSET_PATH = "../../../Private" |
11 | 11 |
|
12 | 12 |
|
@@ -34,7 +34,8 @@ def either(c): |
34 | 34 | additional_assets = [] |
35 | 35 | print("Gathering assets: ") |
36 | 36 | for row in uixr_data: |
37 | | - if row.get('license').lower() == 'cc0': |
| 37 | + row_license = row.get('license').lower() |
| 38 | + if row_license == 'cc0' or row_license == 'cc-by' or row_license == 'cc-by-nc': |
38 | 39 | sys.stdout.write("\033[K") |
39 | 40 | sys.stdout.write(next(spinner)) |
40 | 41 | sys.stdout.write(" [{0}]".format(row.get('asset'))) |
@@ -85,9 +86,12 @@ def either(c): |
85 | 86 | f.seek(0) # reset to beginning of csv file |
86 | 87 | for row in uixr_data: |
87 | 88 | if row.get('asset').lower() == relative_asset_path.lower(): |
88 | | - if row.get('license').lower() == 'cc0': |
| 89 | + row_license = row.get('license').lower() |
| 90 | + if row_license == 'cc0': |
89 | 91 | break # good to go, break |
90 | | - elif row.get('license').lower() == 'cc-by': |
| 92 | + elif row_license == 'cc-by': |
| 93 | + break # good to go, break |
| 94 | + elif row_license == 'cc-by-nc': |
91 | 95 | break # good to go, break |
92 | 96 | else: |
93 | 97 | print("WARNING: Non-CC license asset -> {0}".format(relative_asset_path)) |
|
0 commit comments