pstuifzand / ekster

microsub server
GNU General Public License v3.0
27 stars 4 forks source link

Ek opml import/export: handle both bool and int unread counts #27

Closed pstuifzand closed 5 years ago

pstuifzand commented 5 years ago

schmarty wrote: hit an issue with ek OPML export from aperture if any channel is set to "Show Unread Indicator" rather than "Show Unread Count": 2018/12/31 11:32:28 main.go:395: An error occurred: json: cannot unmarshal bool into Go struct field Channel.unread of type int

pstuifzand commented 5 years ago

Fixed in fa0569b63f101fdcc9de70f2a5a2f18383118ce1.

Implemented Unread type. With marshal, unmarshal functions.