Giter Club home page Giter Club logo

jiosaavn-dl's Introduction

fetcher

jiosaavn-dl

Music, Album and Playlist downloader for JioSaavn

Features

  • Downloads tracks, albums and playlists in maximum available quality (320kbps AAC in M4A container).
  • Automatically tags the tracks with all the necessary metadata, lyrics and cover art.

How to use?

Make sure you have python installed in your system.

Download this repo and navigate into its directory or follow the below commands (install git first):

git clone https://github.com/bunnykek/jiosaavn-dl
cd jiosaavn-dl

use 'pip3' in the below command if 'pip' doesn't work for you.

pip install -r requirements.txt

Use "py" or "python3" if "python" doesn't work for you.

python jiosaavn.py https://www.jiosaavn.com/album/o-saki-saki-from-batla-house/og4DkAosip0_

The files will be save in the jiosaavn-dl/Downloads/ directory

cmd

General
Complete name                            : C:\Users\bunny\Desktop\jiosaavn-dl\Downloads\Various Artists - Pathaan [2022]\01. Besharam Rang.m4a
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/mp41)
File size                                : 10.4 MiB
Duration                                 : 4 min 18 s
Overall bit rate mode                    : Constant
Overall bit rate                         : 337 kb/s
Album                                    : Pathaan
Album/Performer                          : Vishal & Shekhar, Shilpa Rao, Caralisa Monteiro, Vishal Dadlani, Shekhar Ravjiani, Kumaar
Track name                               : Besharam Rang
Track name/Position                      : 1
Track name/Total                         : 1
Performer                                : Vishal & Shekhar, Shilpa Rao, Caralisa Monteiro, Vishal Dadlani, Shekhar Ravjiani, Kumaar
Composer                                 : Vishal & Shekhar
Recorded date                            : 2022-12-22
Copyright                                : © 2022 YRF Music
Cover                                    : Yes
Lyrics                                   : Esta Noche La Vida Es Completa / El Esta Es Cuando La Vida Es Virica / Hamein To Loot Liya Milke / Ishq Waalon Ne / Bohot Hi Tang Kiya Ab Tak / Inn Khayalon Ne / Nasha Chadha Jo Sharifi Ka / Utaar Pheka Hai / Besharam Rang Kahan Dekha / Duniyan Waalon Ne / Hamein To Loot Liya Milke / Ishq Waalon Ne / Bohot Hi Tang Kiya Ab Tak / Inn Khayalon Ne / Nasha Chadha Jo Sharifi Ka / Utaar Phenka Hai / Besharam Rang Kahan Dekha / Duniyan Waalon Ne / Mujhmein Nayi Baat Hai / Nayi Aadaton Ke Saath Hai / Mujhmein Nayi Baat Hai / Nayi Aadaton Ke Saath Hai / Hai Jo Sahi Woh Karna Nahin / Ghalat Hone Ki Yehi To Shuruwat Hai / Esta Noche La Vida Es Completa / El Esta Es Cuando La Vida Es Virica / Nasha Chadha Jo Sharifi Ka / Utaar Pheka Hai / Besharam Rang Kahan Dekha / Duniyan Waalon Ne / Hamein To Loot Liya Milke / Ishq Waalon Ne / Bohot Hi Tang Kiya Ab Tak / Inn Khayalon Ne / Esta Noche La Vida / Ishq Waalon Ne, Es Completa / Hamein To Loot Liya Milke / Ishq Waalon Ne / Esta Noche La Vida / Ishq Waalon Ne, Es Completa / 
Rating                                   : Clean
Language                                 : Hindi
Record label                             : YRF Music
Starring                                 : Shah Rukh Khan, Deepika Padukone, John Abraham
Singers                                  : Shilpa Rao, Caralisa Monteiro, Vishal Dadlani, Shekhar Ravjiani

Audio
ID                                       : 1
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 4 min 18 s
Source duration                          : 4 min 18 s
Source_Duration_LastFrame                : -11 ms
Bit rate mode                            : Constant
Bit rate                                 : 332 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Frame rate                               : 43.066 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 10.2 MiB (99%)
Source stream size                       : 10.2 MiB (99%)
Default                                  : Yes
Alternate group                          : 1

Disclaimer

  • I will not be responsible for how you use jiosaavn-dl.

jiosaavn-dl's People

Contributors

bunnykek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jiosaavn-dl's Issues

I just downloaded you file and when I run I am getting following error

Exception has occurred: FileNotFoundError
[Errno 2] No such file or directory: 'ffmpeg'
File "/Users/vertigo/Desktop/jiosaavn-dl/jiosaavn.py", line 224, in
subprocess.Popen(["ffmpeg", "-y", "-i", song_json["image"].replace("150", "500"),

Downloading the cover...
Traceback (most recent call last):
File "/Users/vertigo/Desktop/jiosaavn-dl/jiosaavn.py", line 224, in
subprocess.Popen(["ffmpeg", "-y", "-i", song_json["image"].replace("150", "500"),
File "/usr/local/Cellar/[email protected]/3.9.1_6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 947, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/Cellar/[email protected]/3.9.1_6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1819, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'

It does pull the file info and crash after Downloading the cover... file

I am on M1 macbook pro with python3
i downloaded the ffmpeg 4.4.1 binaries named for osx-64

Please advice next actions

Error

here is the error

AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "H:\jiosaavn-dl\jiosaavn.py", line 240, in
jiosaavn.processAlbum(id_)
File "H:\jiosaavn-dl\jiosaavn.py", line 94, in processAlbum
album_json = json.loads(json_rx.search(album_json).group(1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "H:\jiosaavn-dl\jiosaavn.py", line 240, in
jiosaavn.processAlbum(id_)
File "H:\jiosaavn-dl\jiosaavn.py", line 94, in processAlbum
album_json = json.loads(json_rx.search(album_json).group(1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Issue with songs with "" in their name

Downloading : 160. Koodamela Koodavechi (From "Rummy")...
Traceback (most recent call last):
File "C:\Users\G\Downloads\jiosaavn-dl-main\jiosaavn.py", line 247, in
playlist_json_handler(playlist_json, playlist_path)
File "C:\Users\G\Downloads\jiosaavn-dl-main\jiosaavn.py", line 60, in playlist_json_handler
download_song(json['songs'].index(
File "C:\Users\G\Downloads\jiosaavn-dl-main\jiosaavn.py", line 92, in download_song
with open(song_path, "wb") as f:
OSError: [Errno 22] Invalid argument: 'C:\Users\G\Downloads\jiosaavn-dl-main\Downloads\Playlist - sss\160. Koodamela Koodavechi (From "Rummy").m4a'

I think, As "" is not allowed in filename, script throws the upshown error.

Folder naming error

Sorry to bother you... Your previous code was saving Albums which don't had Album Artist in this format (Single folder, which was good)
__ - Archana - 50 Hindu Devotional Songs [2009]
__ - Ayyappan -15 Divine Essential Songs [2016]
__ - Ayyappan Superhit Paadalgal Vol. 1 [2015]
__ - Divine Blessings 2016 [2015]
__ - Diwali - Songs of Devotion [2016]

Now this code is saving the Albums in different folder

Biju Narayanan - Archana - 50 Hindu Devotional Songs [2009]
G. Venugopal - Archana - 50 Hindu Devotional Songs [2009]
K. S. Chithra - Archana - 50 Hindu Devotional Songs [2009]
M.G. Sreekumar - Archana - 50 Hindu Devotional Songs [2009]
Madhu Balakrishnan - Archana - 50 Hindu Devotional Songs [2009]
Manju - Archana - 50 Hindu Devotional Songs [2009]
P. Jayachandran - Archana - 50 Hindu Devotional Songs [2009]
Radhika Thilak - Archana - 50 Hindu Devotional Songs [2009]
Rajesh H - Archana - 50 Hindu Devotional Songs [2009]
Sangeetha - Archana - 50 Hindu Devotional Songs [2009]
Shweta Mohan - Archana - 50 Hindu Devotional Songs [2009]
Sujatha Mohan - Archana - 50 Hindu Devotional Songs [2009]
Vani Jayaram - Archana - 50 Hindu Devotional Songs [2009]
Various Artists - Archana - 50 Hindu Devotional Songs [2009]


Harish Raghavendra - Ayyappan -15 Divine Essential Songs [2016]
Pushpavanam Kuppusamy - Ayyappan -15 Divine Essential Songs [2016]
Rahul - Ayyappan -15 Divine Essential Songs [2016]
Ramu - Ayyappan -15 Divine Essential Songs [2016]
S. P. Balasubrahmanyam - Ayyappan -15 Divine Essential Songs [2016]

If possible, Please correct this issue....

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.