Changeset 36015 for main/trunk
- Timestamp:
- 2022-01-17T23:02:44+13:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/08b-COPY-CSV-AND-AUDIO-FEATURES-TO-IMPORT_support.py
r36004 r36015 60 60 61 61 for f in os.listdir(audio_year_dir): 62 if re.search(r"\.json$",f) :62 if re.search(r"\.json$",f) and (not f.endswith("-musicbrainz.json")): 63 63 year_entrant = os.path.join(year,f) 64 64 all_af_json_files.append(year_entrant) … … 178 178 af_nul_file_errata = None 179 179 180 if af_nul_file == "Germany1956Imw.nul":181 af_nul_file_errata = "Germany1956ImW.nul"180 #if af_nul_file == "Germany1956Imw.nul": 181 # af_nul_file_errata = "Germany1956ImW.nul" 182 182 183 183 if af_nul_file == "Yugoslavia1992.nul": … … 230 230 shutil.copy(src_json_file,dst_assoc_json_file) 231 231 232 232 src_musicbrainz_json_file = src_json_file.replace(".json","-musicbrainz.json") 233 dst_musicbrainz_json_file = re.sub(r"^(.*)/(.*?)-Essentia.json",r"\g<1>/metadata-\g<2>-musicbrainz.json",dst_json_file) 234 235 if os.path.exists(src_musicbrainz_json_file): 236 print(" Copying: " + src_musicbrainz_json_file + " => " + dst_musicbrainz_json_file) 237 shutil.copy(src_musicbrainz_json_file,dst_musicbrainz_json_file) 238 239 233 240 # Sort out contestant CSV files to copy into ../import area 234 241
Note:
See TracChangeset
for help on using the changeset viewer.