Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SpotifyBackup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
SpotifyBackup
Compare revisions
912168e006bdc88b5f206272245432faaecf11de to 0b52658d137d514b43b5673de0a4337bec4dccb4
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
deadlocker8/SpotifyBackup
Select target project
No results found
0b52658d137d514b43b5673de0a4337bec4dccb4
Select Git revision
Branches
master
Tags
v1.0.0
v1.1.0
v1.10.0
v1.11.0
v1.12.0
v1.12.1
v1.12.2
8 results
Swap
Target
deadlocker8/SpotifyBackup
Select target project
deadlocker8/SpotifyBackup
1 result
912168e006bdc88b5f206272245432faaecf11de
Select Git revision
Branches
master
Tags
v1.0.0
v1.1.0
v1.10.0
v1.11.0
v1.12.0
v1.12.1
v1.12.2
8 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
SpotifyAutoPlaylistCreator: handle adding more than 100 songs to a playlist
· 7601b95a
Robert Goldmann
authored
10 months ago
7601b95a
v1.12.1
· 0b52658d
Robert Goldmann
authored
10 months ago
0b52658d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
SpotifyAutoPlaylistCreator.py
+8
-1
8 additions, 1 deletion
SpotifyAutoPlaylistCreator.py
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
version.json
+2
-2
2 additions, 2 deletions
version.json
with
11 additions
and
4 deletions
SpotifyAutoPlaylistCreator.py
View file @
0b52658d
...
...
@@ -90,7 +90,14 @@ class SpotifyAutoPlaylistCreator:
LOGGER
.
info
(
f
'
>>> Adding tracks to destination playlist
"
{
destinationPlaylist
[
"
name
"
]
}
"
...
'
)
randomTrackUris
=
self
.
__extract_track_uris
(
randomTracks
)
self
.
_spotify
.
playlist_add_items
(
self
.
_destinationPlaylistInfo
[
'
id
'
],
randomTrackUris
)
for
batch
in
self
.
__chunk_list
(
randomTrackUris
,
100
):
self
.
_spotify
.
playlist_add_items
(
self
.
_destinationPlaylistInfo
[
'
id
'
],
batch
)
@staticmethod
def
__chunk_list
(
items
,
batchSize
):
for
i
in
range
(
0
,
len
(
items
),
batchSize
):
yield
items
[
i
:
i
+
batchSize
]
def
__CollectLatestTracks
(
self
,
sortedTracks
):
tracksToAdd
=
[]
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
View file @
0b52658d
[tool.poetry]
name
=
"SpotifyBackup"
version
=
"1.12.
0
"
version
=
"1.12.
1
"
description
=
"Simple script for backing up public playlists from Spotify."
authors
=
[
"deadlocker8"
]
...
...
This diff is collapsed.
Click to expand it.
version.json
View file @
0b52658d
{
"version"
:
{
"name"
:
"v1.12.
0
"
,
"code"
:
1
5
,
"name"
:
"v1.12.
1
"
,
"code"
:
1
6
,
"date"
:
"30.08.24"
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.