mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2025-07-02 07:43:10 +00:00
Merge remote-tracking branch 'upstream/main'
This commit is contained in:
commit
30a15576a1
@ -68,6 +68,9 @@ Create and run a container from the image:
|
|||||||
docker run --rm -v "$PWD/ZSpotify Music:/ZSpotify Music" -v "$PWD/ZSpotify Podcasts:/ZSpotify Podcasts" -it zspotify
|
docker run --rm -v "$PWD/ZSpotify Music:/ZSpotify Music" -v "$PWD/ZSpotify Podcasts:/ZSpotify Podcasts" -it zspotify
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Google Colab
|
||||||
|
There is a community maintained repo for Google Colab at [Ori5000/zspotifycolab](https://github.com/Ori5000/zspotifycolab) designed to make it easier to add songs to Google Drive or orther cloud services.
|
||||||
|
|
||||||
### Will my account get banned if I use this tool?
|
### Will my account get banned if I use this tool?
|
||||||
|
|
||||||
~~Currently no user has reported their account getting banned after using ZSpotify.~~
|
~~Currently no user has reported their account getting banned after using ZSpotify.~~
|
||||||
|
@ -76,7 +76,7 @@ def download_from_user_playlist():
|
|||||||
playlist_choices = input('ID(s): ').split('-')
|
playlist_choices = input('ID(s): ').split('-')
|
||||||
|
|
||||||
if len(playlist_choices) == 1:
|
if len(playlist_choices) == 1:
|
||||||
download_playlist(playlists, playlist_choices[0])
|
download_playlist(playlists[0])
|
||||||
else:
|
else:
|
||||||
start = int(playlist_choices[0])
|
start = int(playlist_choices[0])
|
||||||
end = int(playlist_choices[1]) + 1
|
end = int(playlist_choices[1]) + 1
|
||||||
|
@ -72,7 +72,7 @@ def download_track(track_id: str, extra_paths='', prefix=False, prefix_value='',
|
|||||||
) else f'{prefix_value} - {song_name}'
|
) else f'{prefix_value} - {song_name}'
|
||||||
|
|
||||||
filename = os.path.join(
|
filename = os.path.join(
|
||||||
download_directory, f'{song_name}.{EXT_MAP.get(ZSpotify.get_config(DOWNLOAD_FORMAT))}')
|
download_directory, f'{song_name}.{EXT_MAP.get(ZSpotify.get_config(DOWNLOAD_FORMAT).lower())}')
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('### SKIPPING SONG - FAILED TO QUERY METADATA ###')
|
print('### SKIPPING SONG - FAILED TO QUERY METADATA ###')
|
||||||
@ -146,7 +146,7 @@ def convert_audio_format(filename) -> None:
|
|||||||
temp_filename = f'{os.path.splitext(filename)[0]}.tmp'
|
temp_filename = f'{os.path.splitext(filename)[0]}.tmp'
|
||||||
os.replace(filename, temp_filename)
|
os.replace(filename, temp_filename)
|
||||||
|
|
||||||
download_format = ZSpotify.get_config(DOWNLOAD_FORMAT)
|
download_format = ZSpotify.get_config(DOWNLOAD_FORMAT).lower()
|
||||||
file_codec = CODEC_MAP.get(download_format, "copy")
|
file_codec = CODEC_MAP.get(download_format, "copy")
|
||||||
if file_codec != 'copy':
|
if file_codec != 'copy':
|
||||||
bitrate = ZSpotify.get_config(BITRATE)
|
bitrate = ZSpotify.get_config(BITRATE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user