Changeset 36015 for main/trunk


Ignore:
Timestamp:
2022-01-17T23:02:44+13:00 (2 years ago)
Author:
davidb
Message:

Changes after testing

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  
    6060
    6161     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")):
    6363               year_entrant = os.path.join(year,f)
    6464               all_af_json_files.append(year_entrant)
     
    178178          af_nul_file_errata = None
    179179         
    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"
    182182
    183183          if af_nul_file == "Yugoslavia1992.nul":
     
    230230          shutil.copy(src_json_file,dst_assoc_json_file)
    231231                   
    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         
    233240# Sort out contestant CSV files to copy into ../import area
    234241
Note: See TracChangeset for help on using the changeset viewer.