I'm not convinced the courts will see much of a difference between "company (Grokster) that encourages easy p2p piracy through its software" and "company (GitHub) that publicly hosts software that promotes easy p2p piracy".
That's certainly possible. But it's important to note that it's not a direct precedent. You'd lose points in law school for that.