ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.31k stars 9.95k forks source link

Saavn (saavn.com) support #10851

Open aviraldg opened 7 years ago

aviraldg commented 7 years ago

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.10.02. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

Examples:

shirishag75 commented 7 years ago

+1 to this site if possible.

sudovijay commented 7 years ago

@yan12125 this one is more like spotify (https://www.spotify.com) but for indian songs mostly. Though its pretty easy to extract songs from this site but tbh you don't wanna add it. copyright & stuff!

yan12125 commented 7 years ago

@sudovijay Did you mean saavn.com does not have rights to distribute those songs? Seems Google's transparency report indicates the opposite: https://www.google.com/transparencyreport/removals/copyright/searchdata/domains/?id=saavn.com

therohanchawla commented 7 years ago

It does have rights if not they wouldn't be able to operate commercially. Also I think all of the content are DRM protected.

shirishag75 commented 7 years ago

There is false dichotomy at work here. For instance, no youtube does not but it still does. Some music providers (like shemaroo.com) have stopped all their videos on youtube.com but that does not mean that the whole platform is wrong.

Also if the songs are DRM protected then AFAIK they can be done only through copyright holders only so there certainly is mix-up there. https://en.wikipedia.org/wiki/Digital_rights_management . I would assume and presume it would be highly costly and legally expensive for saavn or any other digital audio service provider to become false owners of intellectual property. There has to be a deal between the companies. Also see http://www.saavn.com/corporate/music-rights as well as http://www.medianama.com/2016/11/223-saavn-singtel-music-singapore/ and http://www.medianama.com/2016/06/223-saavn-funding-guy-oseary/ . They have done 3-4 rounds of fund-raising. Are you saying all the investors are idiots http://www.financialexpress.com/entertainment/music-streaming-apps-services-heres-how-apple-music-gaana-saavn-to-hungama-stack-up-against-each-other/366523/ and https://www.musicbusinessworldwide.com/meet-the-streaming-service-with-20m-users-thats-also-a-record-label/ . At the very least, no research seems to have been done and facts pulled out of air.

Another thing, saavn is headquarted in US where copyright intervention is the highest. See eff.org or other consumer activist organisations. If a company wanted to do something illegal like what is being suggested then British Virgin islands or other places would have been much better.

Disclaimer - I have no other relationship with saavn except I use their app. on my android phone as well.

awalgarg commented 5 years ago

Saavn is now bought by Jio and renamed to JioSaavn and the domain has moved too. I've written a patch containing an extractor, but there are some issues:

  1. The website doesn't allow downloads without logging in, so credentials must be provided for any download. (There are 30 second previews without credentials but I don't think anyone would want support for those.)
  2. Iterating on the available formats is a mess. To get final url for any given bitrate, an HTTP request must be sent. So just for finding the available n formats, we'd send n separate requests. The site itself lists 4 available formats (upto 128k), however there is 320k (mistakenly exposed premium only content?) which works best for every single song I could try. So I've just set it to use 320k as the only format.
  3. It seems we can just create a new user each time the program is invoked - there is no email verification or captcha. However I don't think shipping code to do that with youtube-dl is a good idea.

Would these restrictions be acceptable? cc @dstftw