Did piracy really kill OReilly's previous business model? I was sad when they morphed into a weird subscription service
https://news.ycombinator.com/item?id=2368560
If ebook sales where working well, I suspect they wouldn't have gotten rid of them.
The reason they switched to subscriptions was because of the cost of running an ebook store and the low ROI.