Skip to content

Commit

Permalink
#16 Skipping addtags for songs not having 320kbps bitrate or not an MP4
Browse files Browse the repository at this point in the history
  • Loading branch information
inovachrono committed May 14, 2020
1 parent 433a2c9 commit 25b169c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ $ Enter the password: password_you_want_to_use

### Known Issues
- Clone Functionality doesn't work with Saavn-Download-Reloaded package
- Songs not having 320kbps don't get their meta data added
- No Meta Data in JioSaavn Originals and Podcasts

### Development
Expand Down
8 changes: 6 additions & 2 deletions scripts/download_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,14 @@ def downloadSongs(self, songs_json, album_name='songs', artist_name='Non-Artist'
name = songs_json['name'] if ('name' in songs_json) else songs_json['listname']
except:
name = ''
self.addtags(location, song, name)
try:
self.addtags(location, song, name)
except Exception as e:
print("============== Error Adding Meta Data ==============")
print("Error : {0}".format(e))
print('\n')
except Exception as e:
logger.error('Download Error' + str(e))
logger.error('Download Error : {0}'.format(e))

def addtags(self, filename, json_data, playlist_name):
audio = MP4(filename)
Expand Down

0 comments on commit 25b169c

Please sign in to comment.