In this answer, it says that one may take the logarithmic derivative w.r.t. $z$ on both sides of the equation $$(q^4;q^4)_\infty\left\{z(-z^4q^3;q^4)_\infty(-z^{-4}q;q^4)_\infty-z^{-1}(-z^4q;q^4)_\infty(-z^{-4}q^3;q^4)_\infty\right\}\\=(z-z^{-1})(q;q)_\infty(z^2q;q)_\infty(z^{-2}q;q)_\infty,\tag{1}$$ to get $$1+4\sum_{n\ge1}(-1)^n\frac{q^{2n-1}}{1-q^{2n-1}}=\frac{(q;q)_\infty^3}{(q^4;q^4)_\infty(-q^3;q^4)_\infty(-q;q^4)_\infty},\tag{2}$$ after having set $z=1$.
I am having some trouble with doing this.
I decided to simplify things a bit so I came up with $$z^2(-z^4q^3;q^4)_\infty(-z^{-4}q;q^4)_\infty-(-z^4q;q^4)_\infty(-z^{-4}q^3;q^4)_\infty=\frac{(q;q)_\infty}{(q^4;q^4)_\infty}(z^2-1)(z^2q;q)_\infty(z^{-2}q;q)_\infty.\tag{3}$$ The logarithmic derivative of the R.H.S. of $(3)$ is easy, and it evaluates to $$\frac{\partial}{\partial z}\log\left\{\frac{(q;q)_\infty}{(q^4;q^4)_\infty}(z^2-1)(z^2q;q)_\infty(z^{-2}q;q)_\infty\right\}=\frac{2z}{z^2-1}+\frac{2z}{(z^2q;q)_\infty}A(1,z^2;q)-\frac{2z^{-3}}{(z^{-2}q;q)_\infty}A(1,z^{-2};q),$$ where $$A(a,b;q)=\sum_{n\ge1}\frac{(aq)^n}{1-bq^n}.$$ But, simplifying the logarithm of the left hand side of $(3)$ is proving to be a difficult task. Is there a better way to go about this? Thanks.