I had a 19th century lit class where we looked at porn comics and erotic lit, and it was a newer professor, so maybe it depends on the school too
For a history course focused on East Asia during industrialization, my professor assigned this Japanese short novel that was clearly just softcore femdom erotica and telling us it was about social change or whatever. Wish I remembered the title.
The only book I’m familiar with that was similar to what you described was The Pillow Book (枕草子, Makura no Sōshi) by lady Sei Shōnagon from the Heian period, but that’s waaaaay before the industrialist post-Tokugawa period