Commit Graph

121 Commits

Author SHA1 Message Date
logykk
b9d42c4d7d Fixed issue when downloading multiple playlists 2021-11-17 21:29:15 +13:00
logykk
2638805741 Realtime downloads fix part 1 2021-11-13 18:06:34 +13:00
yiannisha
485d5ba826 Added download_from_urls helper function 2021-11-11 18:23:53 +02:00
yiannisha
feaed1ddca Added --download <file> argument 2021-11-11 18:14:22 +02:00
yiannisha
84978d8885 fixed path with missing directory 2021-11-09 19:03:44 +02:00
yiannisha
1c419c0873 Name changes 2021-11-09 18:46:28 +02:00
yiannisha
a1e54e9781 Added global song archive 2021-11-08 20:35:32 +02:00
Thomas Lau
edbc5c78d9 add album artist: 2021-11-05 15:50:55 +00:00
Thomas Lau
87b564d609 fix 2021-11-05 11:14:09 +00:00
thomaslty
46a3c45cbc
Update const.py 2021-11-05 19:00:19 +08:00
thomaslty
3e48071f60
Update zspotify.py 2021-11-05 18:59:40 +08:00
thomaslty
b488b277f0
Update zspotify.py 2021-11-05 18:50:27 +08:00
logykk
813ec6228d Track download fix part 1 2021-11-02 20:55:13 +13:00
yiannisha
84dce7d67e Removed some debug messages 2021-10-31 21:00:14 +02:00
yiannisha
97f8321877 Added function to check song duration
- New constant in const.py:
TRACK_STATS_URL = 'https://api.spotify.com/v1/audio-features/'

 - New function in track.py:
get_song_duration(): makes a request to the API for audio features
which contain the song's duration in miliseconds. Converts miliseconds
to seconds.

 - New function in utils.py:
get_downloaded_song_duration(): uses the subprocess module to run
an ffmpeg command that ouputs the duration of the song file in seconds.
Output is captured and returned as float.
2021-10-31 20:55:00 +02:00
Footsiefat
c5f4bf1ea6 added proper direct download support for podcasts 2021-10-31 17:50:27 +13:00
Footsiefat
6d7a2b6576 1 2021-10-31 13:41:49 +13:00
Footsiefat
3beaa7564c added experimental podcast download method 2021-10-31 13:20:25 +13:00
logykk
8053045022 fix wrong import 2021-10-31 10:22:50 +13:00
Logykk
7d355d2ca0
Fix merge fuckery 2021-10-31 10:18:48 +13:00
yiannisha
2b2c71942b Merge branch 'fixes#137' into updated_fixes#137 2021-10-30 16:04:32 +03:00
yiannisha
b340f92f29 Added prefixes in case more than two songs have the same name 2021-10-30 15:58:09 +03:00
yiannisha
857b1d949a Fixed issue when deleting or moving file 2021-10-30 15:42:59 +03:00
yiannisha
9f6a40c900 Can now install different songs with the same name
So basically now in each directory created by zspotify
a .song_ids file will be created and appended to every
a song is installed in that directory.

Now, instead of checking if a file exists by name we're
checking with song id.
2021-10-30 15:35:01 +03:00
logykk
c945aa9a09 Stopped importing something that doesn't exist 2021-10-30 23:02:36 +13:00
logykk
0dd2802ba2 Replaced filename string sanitization 2021-10-30 22:43:07 +13:00
Logykk
b991c29d6b
Merge pull request #164 from thomaslty/main
fix windows invalid folder name
2021-10-30 20:54:55 +13:00
Logykk
9eabd55104
Merge branch 'main' into Playlist-id-fix 2021-10-30 17:20:13 +13:00
Logykk
265834746f
Merge pull request #136 from el-gringo-alto/argument-parsing
Command line arguments are parsed with the argparse library
2021-10-30 12:51:23 +13:00
logykk
31baf3feae Fixed issues with playlist downloading 2021-10-29 21:09:20 +13:00
Logykk
c11998351b
Merge pull request #165 from yiannisha/fixes#150
Added some .lower()'s so that file format can be uppercase in config. Fixes#150
2021-10-29 20:21:23 +13:00
yiannisha
2fa687db89 Added some .lower()'s so that file format can be uppercase in config 2021-10-28 20:43:45 +03:00
el-gringo-alto
dd9f243610 Update __main__.py 2021-10-28 13:23:12 -04:00
el-gringo-alto
a2fb09e2ed Add support for multiple urls Fix #149 2021-10-28 12:59:36 -04:00
el-gringo-alto
17329d8cf6 remade changes to updated main 2021-10-28 11:30:50 -04:00
el-gringo-alto
40cb0d901f Revert "Revert "Merge branch 'main' into argument-parsing""
This reverts commit 7412abcee5.
2021-10-28 10:44:44 -04:00
thomaslty
61a25ff52b
Merge pull request #1 from thomaslty/fix-windows-invalid-directory-name
fix windows invalid folder name
2021-10-28 17:02:03 +08:00
Thomas Lau
8f36a9ab2d fix windows invalid folder name 2021-10-28 09:01:40 +00:00
Logykk
983fd79877
Merge pull request #159 from yiannisha/fix#154
Added 'user-library-read' token for saved tracks fixes#154
2021-10-28 20:50:32 +13:00
el-gringo-alto
7412abcee5 Revert "Merge branch 'main' into argument-parsing"
This reverts commit e7b3f5c4bd, reversing
changes made to 95f0dc8edf.
2021-10-28 02:25:57 -04:00
el-gringo-alto
e7b3f5c4bd
Merge branch 'main' into argument-parsing 2021-10-28 02:19:06 -04:00
el-gringo-alto
132c235bdb remade changes after merging with main 2021-10-28 02:14:18 -04:00
el-gringo-alto
d69fb8e754 Merge branch 'main' into argument-parsing 2021-10-28 02:01:15 -04:00
Logykk
508941e6aa
Merge pull request #158 from yiannisha/fixes#138
Added digit prefixes to playlist track names - Fixes#138
2021-10-28 11:20:19 +13:00
Logykk
b22e59fa39
Merge pull request #152 from mockuser404/patch-3
fix podcast existing episodes not skipping
2021-10-28 11:18:59 +13:00
yiannisha
8ff7c07ccf Added 'user-library-read' token for saved tracks fixes#154 2021-10-27 22:23:40 +03:00
yiannisha
9ec6c9d1b1 Added digit prefixes to playlist track names fixes#138 2021-10-27 22:18:39 +03:00
yiannisha
371de63d21 Revert "Added digit prefixes to playlist track names"
This reverts commit 0915741249.
2021-10-27 22:14:35 +03:00
yiannisha
0915741249 Added digit prefixes to playlist track names 2021-10-27 21:43:35 +03:00
logykk
68cea35fde Updated documentation 2021-10-27 23:03:33 +13:00
logykk
fe6f266b41 Added realtime downloading for songs 2021-10-27 22:49:21 +13:00
Girish Kotra
01c8dd49fd revised playlist id parsing logic in playlist.download_from_user_playlist 2021-10-27 13:53:54 +05:30
mockuser404
8e77cea4d1
Update podcast.py 2021-10-27 12:58:14 +05:30
mockuser404
5358d6f8ee
fix podcast existing episodes not skipping
Skip if existing episodes.
2021-10-27 12:55:27 +05:30
shirt
27d6c791ce
Fix audio copy, set bitrate based on account type if not in config 2021-10-26 16:14:31 -04:00
shirt
eba1ec11c7
Use ffmpeg instead of pydub, support ogg stream copy 2021-10-26 15:06:17 -04:00
mockuser404
3167c44d94
use os.path.join
fixes #142
2021-10-27 00:00:19 +05:30
el-gringo-alto
ab35683045 Amended help text 2021-10-26 12:37:10 -04:00
el-gringo-alto
693cc068c4 Added argparser and updated Readme for cli usage 2021-10-26 01:39:38 -04:00
jonathan2384
8a450fd1ee
Fix for #127
Simple change to include ?include_groups=album%2Csingle in the api request when function get_artist_albums is used. Sorry if there is something wrong with this, I have not used Python before. It seems to work as expected in my testing.
2021-10-26 12:58:11 +09:00
Footsiefat
afeb84de39
Revert "added m3u playlist file creation" 2021-10-25 18:36:17 +13:00
Raju komati
2454d50913
resolved merge conficts 2021-10-25 10:07:06 +05:30
Footsiefat
3b00dee972
Merge pull request #115 from el-gringo-alto/generate_settings
Generate settings when running for the first time
2021-10-25 17:20:33 +13:00
Footsiefat
1993fc05e1 Fixed multiple issues including split disks breaking 2021-10-25 17:08:56 +13:00
Raju komati
dab823d09e
updated folder name 2021-10-25 09:22:53 +05:30
Footsiefat
0b51951b5f Fixed crash from variable reference before assignment 2021-10-25 16:44:42 +13:00
el-gringo-alto
bcdb07593a Generate config file if it doesn't exist 2021-10-24 22:14:22 -04:00
Footsiefat
03b0b108b8 renamed src to zspotify 2021-10-25 14:51:12 +13:00
el-gringo-alto
b9d3f37e42 Fixed previous errors trying to rebase 2021-10-24 21:43:32 -04:00
el-gringo-alto
868c7f6c18 Revert "Fix #105 renamed src to zspotify"
This reverts commit cf1b98cce3.
2021-10-24 21:36:27 -04:00
el-gringo-alto
b5256acb89 Fix #105 renamed src to zspotify 2021-10-24 21:34:30 -04:00