diff --git a/README.md b/README.md index d5fc532..3763425 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,8 @@ Add an 'LCSC Part #'* field with the LCSC component part number to the symbol's #### Primary Fields*: -| 'LCSC Part #' | 'JLCPCB Part #' | -| --- | --- | +| 'LCSC Part #' | 'LCSC Part' | 'JLCPCB Part #' | 'JLCPCB Part' | +| --- | --- | --- | --- | _The fields will be query in the order denoted above._ diff --git a/metadata.json b/metadata.json index 8726736..c524536 100644 --- a/metadata.json +++ b/metadata.json @@ -30,7 +30,7 @@ ], "versions": [ { - "version": "5.0.0", + "version": "5.0.1", "status": "stable", "kicad_version": "6.00" } diff --git a/plugins/process.py b/plugins/process.py index a7a6561..91dfb7d 100644 --- a/plugins/process.py +++ b/plugins/process.py @@ -406,7 +406,7 @@ def _get_position_offset_from_db(self, footprint: str) -> Tuple[float, float]: def _get_mpn_from_footprint(self, footprint) -> str: ''''Get the MPN/LCSC stock code from standard symbol fields.''' - keys = ['LCSC Part #', 'JLCPCB Part #'] + keys = ['LCSC Part #', 'LCSC Part', 'JLCPCB Part #', 'JLCPCB Part'] fallback_keys = ['LCSC', 'JLC', 'MPN', 'Mpn', 'mpn'] if footprint_has_field(footprint, 'dnp'):