fix: add support for the new EasyEDA2Kicad fields format (#185)

* update part number checks to work with new easyedatokicad format
* bump version
This commit is contained in:
Nanashi
2025-01-12 13:15:19 -06:00
committed by GitHub
parent 5880f10ea7
commit db3878b7ad
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -52,8 +52,8 @@ Add an 'LCSC Part #'* field with the LCSC component part number to the symbol's
<img src="https://github.com/bennymeg/JLC-Plugin-for-KiCad/blob/master/assets/mpn.png?raw=true" height=420>
#### Primary Fields*:
| 'LCSC Part #' | 'JLCPCB Part #' |
| --- | --- |
| 'LCSC Part #' | 'LCSC Part' | 'JLCPCB Part #' | 'JLCPCB Part' |
| --- | --- | --- | --- |
_The fields will be query in the order denoted above._
+1 -1
View File
@@ -30,7 +30,7 @@
],
"versions": [
{
"version": "5.0.0",
"version": "5.0.1",
"status": "stable",
"kicad_version": "6.00"
}
+1 -1
View File
@@ -406,7 +406,7 @@ class ProcessManager:
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'):