These days videos are alot easier / better to learn openings from than books. I've found some value in books that aren't about specific openings but are just teaching chess principles. There are a good number of great classic chess books of this nature. But for an opening and various lines... it does help to be given an overview of the ideas along with the lines, but I'd only prefer to get this from a book if there's not a good course or video available online for the opening.
In the beginning I don't recommend going too deep in the opening though. Just know the first 4-5 moves. Instead I recommend people try out a variety of openings. So I don't think you really should buy a course on specific opening yet... for starters, you don't yet know what type of player you are or what you prefer. But on youtube HangingPawns has free videos introducing you to the basics of most openings, you can just watch those videos and try out different things. You shouldn't completely ignore the opening since you learn about chess principles through understanding the opening, you just shouldn't go super-deep yet. Wait until you're like 1700-1800 to develop a repertoire out to move 10-12.
I just started playing chess seriously this past month. Now as black I have decent responses to 1.e4 and I am trying to build a repertoire against 1.d4. I got the book "Attack with Black" by Valery Aveskulov which offers some great lines vs d4.
Problem is so far I am just memorizing. 60% of the time I have no idea what the moves are about. I am not used to closed positional games. To me the book seems to repeat engine perfect moves to the reader with little explanation of the themes and plans.
How can I improve my understanding to make the most of it?