Skip to content

Commit a6062b6

Browse files
Added poetry as an environment package
1 parent 4dc82a3 commit a6062b6

File tree

10 files changed

+497
-28
lines changed

10 files changed

+497
-28
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ The fullset of funcitonality offered by this is:
1111

1212

1313
### Installation
14-
```sh
15-
$ pip3 install -r requirements.txt
14+
```
15+
$ pip install poetry
16+
$ poetry install
1617
```
1718

1819
### Usage
1920

2021
##### Download Playlist or Album from Web URL
2122
```
22-
$ python3 Download.py
23+
$ poetry run python download.py
2324
$ Paste the URL: https://www.jiosaavn.com/album/tum-hi-aana-from-marjaavaan/j9bfphC2728_
2425
```
2526

@@ -32,34 +33,34 @@ $ Paste the URL: https://www.jiosaavn.com/album/tum-hi-aana-from-marjaavaan/j9bf
3233

3334
#### Download All Albums of an Artist
3435
```
35-
$ python Download.py -artist --album
36+
$ poetry run python download.py -artist --album
3637
$ Paste the URL of Artist Profile: https://www.jiosaavn.com/artist/babbal-rai-albums/pRd5ZTGrLv8_
3738
```
3839

3940
#### Download All Songs of an Artist
4041
```
41-
$ python Download.py -artist --song
42+
$ poetry run python download.py -artist --song
4243
$ Paste the URL of Artist Profile: https://www.jiosaavn.com/artist/babbal-rai-albums/pRd5ZTGrLv8_
4344
```
4445

4546

4647
#### Download All Playlist from your profile
4748
```
48-
$ python3 Download.py -p
49+
$ poetry run python download.py -p
4950
$ Enter your Email: your_saavn_email
5051
$ Enter your Password: your_saavn_password
5152
```
5253

5354
#### Download All Albums from your profile
5455
```
55-
$ python3 Download.py -a
56+
$ poetry run python download.py -a
5657
$ Enter your Email: your_saavn_email
5758
$ Enter your Password: your_saavn_password
5859
```
5960

6061
#### Download All JioSaavn Originals or Podcast Shows from your profile
6162
```
62-
$ python3 Download.py -s
63+
$ poetry run python download.py -s
6364
$ Enter your Email: your_saavn_email
6465
$ Enter your Password: your_saavn_password
6566
```

downloader/__init__.py

Whitespace-only changes.

Download.py renamed to downloader/download.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import ast
21
import base64
32
import html
43
import json
@@ -7,15 +6,14 @@
76
import urllib.request
87
import sys
98

10-
import logger
119
import requests
1210
import urllib3.request
1311
from bs4 import BeautifulSoup
1412
from mutagen.mp4 import MP4, MP4Cover
1513
from pySmartDL import SmartDL
1614
from requests.packages.urllib3.exceptions import InsecureRequestWarning
1715

18-
from pyDes import *
16+
from downloader.pyDes import *
1917

2018
# Pre Configurations
2119
urllib3.disable_warnings()
@@ -386,8 +384,7 @@ def downloadSongs(songs_json, album_name='songs', artist_name='Non-Artist'):
386384
print('Download Error' + str(e))
387385

388386

389-
if __name__ == '__main__':
390-
album_name = "songs"
387+
def main():
391388

392389
if len(sys.argv) > 1 and sys.argv[1].lower() == "-p":
393390
downloadAllPlayList(getLibrary())
File renamed without changes.

0 commit comments

Comments
 (0)