mirror of
				https://github.com/KevinMidboe/spotify-downloader.git
				synced 2025-10-29 18:00:15 +00:00 
			
		
		
		
	Compare commits
	
		
			8 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 43f9dd7f8d | ||
|  | b24802f815 | ||
|  | 851d88fdd8 | ||
|  | 4ee2b51550 | ||
|  | c73f55b8ce | ||
|  | e47744f99c | ||
|  | 5d185844d7 | ||
|  | 7f587fe667 | 
| @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. | ||||
|  | ||||
| ## [Unreleased] | ||||
|  | ||||
| ## [1.2.4] - 2020-01-10 | ||||
| ### Fixed | ||||
| - Fixed a crash occuring when lyrics for a track are not yet released | ||||
|   on Genius ([@ritiek](https://github.com/ritiek)) (#654) | ||||
| - Fixed a regression where a track would fail to download if it isn't | ||||
|   found on Spotify ([@ritiek](https://github.com/ritiek)) (#653) | ||||
|  | ||||
| ## [1.2.3] - 2019-12-20 | ||||
| ### Added | ||||
| - Added `--no-remove-original-file` ([@NightMachinary](https://github.com/NightMachinary)) (#580) | ||||
|   | ||||
| @@ -1 +1 @@ | ||||
| __version__ = "1.2.3" | ||||
| __version__ = "1.2.4" | ||||
|   | ||||
| @@ -93,7 +93,10 @@ def format_string( | ||||
|     format_tags[9] = tags["track_number"] | ||||
|     format_tags[10] = tags["total_tracks"] | ||||
|     format_tags[11] = tags["external_ids"]["isrc"] | ||||
|     format_tags[12] = tags["id"] | ||||
|     try: | ||||
|         format_tags[12] = tags["id"] | ||||
|     except KeyError: | ||||
|         pass | ||||
|  | ||||
|     format_tags_sanitized = { | ||||
|         k: sanitize_title(str(v), ok="'-_()[]{}") if slugification else str(v) | ||||
|   | ||||
| @@ -37,8 +37,10 @@ class Genius(LyricBase): | ||||
|     def _get_lyrics_text(self, html): | ||||
|         soup = BeautifulSoup(html, "html.parser") | ||||
|         lyrics_paragraph = soup.find("p") | ||||
|         lyrics = lyrics_paragraph.get_text() | ||||
|         return lyrics | ||||
|         if lyrics_paragraph: | ||||
|             return lyrics_paragraph.get_text() | ||||
|         else: | ||||
|             raise LyricsNotFound("The lyrics for this track are yet to be released.") | ||||
|  | ||||
|     def get_lyrics(self, linesep="\n", timeout=None): | ||||
|         url = self._guess_lyric_url() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user