diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-20 23:22:30 -0400 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-21 01:16:46 -0400 |
commit | d8bcbe893b909276cb51004204da708121c9dd22 (patch) | |
tree | 26f59d37cad13292d1bcb7ee7f615f5a1335da1d /cmd/gen-posix/data.go | |
parent | b51fb9122deced304bf316d7f8ac3309324e35f7 (diff) |
as much as I can, anyway
Diffstat (limited to 'cmd/gen-posix/data.go')
-rw-r--r-- | cmd/gen-posix/data.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/gen-posix/data.go b/cmd/gen-posix/data.go index ac92095..165ecbd 100644 --- a/cmd/gen-posix/data.go +++ b/cmd/gen-posix/data.go @@ -18,7 +18,7 @@ var IEEESA = Vendor{ if err != nil { panic(fmt.Errorf("URL=%q: %v", url, err)) } - cmd := exec.Command("nokogiri", "-e", `puts $_.css("meta[name=\"des\"]").first["content"]`) + cmd := exec.Command("nokogiri", "-e", `puts $_.css("meta[name=\"des\"], meta[name=\"designation\"]").first["content"]`) cmd.Stderr = os.Stderr cmd.Stdin = strings.NewReader(html) d, err := cmd.Output() @@ -35,6 +35,9 @@ var IEEEXplore = Vendor{ Name: "IEEE Xplore", GetURL: func(id string) string { return fmt.Sprintf("http://ieeexplore.ieee.org/servlet/opac?punumber=%s", id) }, GetName: func(id string, url string) string { + if strings.HasSuffix(url, "ERROR") { + return "ERROR" + } html, err := httpcache.Get(url, nil) if err != nil { panic(fmt.Errorf("URL=%q: %v", url, err)) @@ -171,7 +174,7 @@ var Editions = []Edition{ }}, {Vendor: IEEESA, Type: Full, ID: "1003.1-2008", Resellers: []Document{ - {Vendor: IEEEXplore, Type: Full, ID: "7394900"}, + {Vendor: IEEEXplore, Type: Full, ID: "4694974"}, }}, {Vendor: ISO, Type: Full, ID: "50516", Resellers: []Document{ |