From d8bcbe893b909276cb51004204da708121c9dd22 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 20 May 2025 23:22:30 -0400 Subject: gen-posix: Use the cache, check errors, get it working like it was as much as I can, anyway --- cmd/gen-posix/data.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cmd/gen-posix/data.go') 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{ -- cgit v1.2.3-54-g00ecf