mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2024-11-26 09:53:17 +01:00
removed pydub dependency
This commit is contained in:
parent
9e7d29dcc8
commit
cb42b4a878
@ -3,6 +3,5 @@ git+https://github.com/kokarare1212/librespot-python
|
|||||||
music_tag
|
music_tag
|
||||||
Pillow
|
Pillow
|
||||||
protobuf
|
protobuf
|
||||||
pydub
|
|
||||||
tabulate
|
tabulate
|
||||||
tqdm
|
tqdm
|
@ -255,9 +255,7 @@ def search(search_term):
|
|||||||
selection = ''
|
selection = ''
|
||||||
print('\n> SELECT A DOWNLOAD OPTION BY ID')
|
print('\n> SELECT A DOWNLOAD OPTION BY ID')
|
||||||
print('> SELECT A RANGE BY ADDING A DASH BETWEEN BOTH ID\'s')
|
print('> SELECT A RANGE BY ADDING A DASH BETWEEN BOTH ID\'s')
|
||||||
print('> OR PARTICULAR OPTIONS BY ADDING A COMMA BETWEEN ID\'s')
|
print('> OR PARTICULAR OPTIONS BY ADDING A COMMA BETWEEN ID\'s\n')
|
||||||
print('> For example, typing 5 to get option 5 or 10-20 to get\nevery option from 10-20 (inclusive)\n')
|
|
||||||
print('> Or type 10,12,15,18 to get those options in particular')
|
|
||||||
while len(selection) == 0:
|
while len(selection) == 0:
|
||||||
selection = str(input('ID(s): '))
|
selection = str(input('ID(s): '))
|
||||||
inputs = split_input(selection)
|
inputs = split_input(selection)
|
||||||
|
@ -70,9 +70,7 @@ def download_from_user_playlist():
|
|||||||
selection = ''
|
selection = ''
|
||||||
print('\n> SELECT A PLAYLIST BY ID')
|
print('\n> SELECT A PLAYLIST BY ID')
|
||||||
print('> SELECT A RANGE BY ADDING A DASH BETWEEN BOTH ID\'s')
|
print('> SELECT A RANGE BY ADDING A DASH BETWEEN BOTH ID\'s')
|
||||||
print('> OR PARTICULAR OPTIONS BY ADDING A COMMA BETWEEN ID\'s')
|
print('> OR PARTICULAR OPTIONS BY ADDING A COMMA BETWEEN ID\'s\n')
|
||||||
print('> For example, typing 10 to get one playlist or 10-20 to get\nevery playlist from 10-20 (inclusive)\n')
|
|
||||||
print('> Or type 10,12,15,18 to get those playlists in particular')
|
|
||||||
while len(selection) == 0:
|
while len(selection) == 0:
|
||||||
selection = str(input('ID(s): '))
|
selection = str(input('ID(s): '))
|
||||||
playlist_choices = map(int, split_input(selection))
|
playlist_choices = map(int, split_input(selection))
|
||||||
|
@ -7,7 +7,6 @@ from typing import Any, Tuple, List
|
|||||||
from librespot.audio.decoders import AudioQuality
|
from librespot.audio.decoders import AudioQuality
|
||||||
from librespot.metadata import TrackId
|
from librespot.metadata import TrackId
|
||||||
from ffmpy import FFmpeg
|
from ffmpy import FFmpeg
|
||||||
from pydub import AudioSegment
|
|
||||||
|
|
||||||
from const import TRACKS, ALBUM, NAME, ITEMS, DISC_NUMBER, TRACK_NUMBER, IS_PLAYABLE, ARTISTS, IMAGES, URL, \
|
from const import TRACKS, ALBUM, NAME, ITEMS, DISC_NUMBER, TRACK_NUMBER, IS_PLAYABLE, ARTISTS, IMAGES, URL, \
|
||||||
RELEASE_DATE, ID, TRACKS_URL, SAVED_TRACKS_URL, TRACK_STATS_URL, CODEC_MAP, EXT_MAP, DURATION_MS
|
RELEASE_DATE, ID, TRACKS_URL, SAVED_TRACKS_URL, TRACK_STATS_URL, CODEC_MAP, EXT_MAP, DURATION_MS
|
||||||
@ -132,7 +131,7 @@ def download_track(mode: str, track_id: str, extra_keys={}, disable_progressbar=
|
|||||||
stream = ZSpotify.get_content_stream(
|
stream = ZSpotify.get_content_stream(
|
||||||
track_id, ZSpotify.DOWNLOAD_QUALITY)
|
track_id, ZSpotify.DOWNLOAD_QUALITY)
|
||||||
create_download_directory(filedir)
|
create_download_directory(filedir)
|
||||||
total_size = stream.input_stream.size / ""
|
total_size = stream.input_stream.size
|
||||||
|
|
||||||
time_start = time.time()
|
time_start = time.time()
|
||||||
downloaded = 0
|
downloaded = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user