I believe that Marvel has the Tv rights to Spidey and Spidey characters , Sony just has the movie rights. Could be wrong.
Here is a currrent article about the new Sony Marvel deal and it states Marvel always had the Tv rights.
http://variety.com/2015/film/news/details-spider-man-appear-in-sony-and-marvel-movies-1201429039/
Sony needed to breathe life into its “Spider-Man” franchise; by lending its character to Marvel, it has a way to generate more exposure for its bigscreen hero. Doing so also creates some serious goodwill among Spider-Man fans, who have wanted to see the character become part of the Avengers.
Marvel now gets access to one of the comicbook company’s most popular characters — it already controlled the rights for TV, merchandise and other platforms, but the holy grail for Disney has lately been film, where it has been able to launch franchises that impact the bottom line of all of its various divisions.