12 Commits
0.1.2 ... 0.1.4

Author SHA1 Message Date
Kamil Kosek
1c4030a4c6 Merge pull request #3 from kamilkosek/dev
Merge 0.1.4 into main
2024-11-22 23:00:05 +01:00
Kamil
31556fd207 Merge branch 'dev' of https://github.com/kamilkosek/jellyplist into dev 2024-11-22 21:58:03 +00:00
Kamil
42c92caef7 Bump version: 0.1.3 → 0.1.4 2024-11-22 21:56:48 +00:00
Kamil
7f075fb490 fixed wrong function call 2024-11-22 21:56:29 +00:00
Kamil
53e4cf0a8d try some normalization on search query 2024-11-22 21:56:15 +00:00
Kamil Kosek
7a4ef7f312 Merge pull request #2 from kamilkosek/dev
Merge 0.1.3 into main
2024-11-22 22:10:39 +01:00
Kamil
ef34aaa7a7 Bump version: 0.1.2 → 0.1.3 2024-11-22 21:08:10 +00:00
Kamil
313db2b71a use get_cached_spotify_track 2024-11-22 21:07:06 +00:00
Kamil Kosek
84891ef548 Merge pull request #1 from kamilkosek/dev
Merge dev into main
2024-11-22 22:03:34 +01:00
Kamil
7177581a4c Publish "latest" on main branch 2024-11-22 21:02:33 +00:00
Kamil
f9993959ed publish with multiple tags 2024-11-22 20:48:20 +00:00
Kamil
6f56f25384 do not use clean query 2024-11-22 20:37:19 +00:00
8 changed files with 16 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.2
current_version = 0.1.4
commit = True
tag = True

View File

@@ -38,7 +38,9 @@ jobs:
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ env.VERSION }}
tags: |
ghcr.io/${{ github.repository }}:${{ env.VERSION }}
ghcr.io/${{ github.repository }}:latest
# Create a release on GitHub
- name: Create GitHub Release

View File

@@ -37,4 +37,8 @@ jobs:
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}
tags: |
ghcr.io/${{ github.repository }}:${{ github.sha }}
ghcr.io/${{ github.repository }}:dev

View File

@@ -103,7 +103,7 @@ def add_playlist():
db.session.execute(stmt)
db.session.commit()
update_playlist_metadata(playlist,playlist_data)
functions.update_playlist_metadata(playlist,playlist_data)
if playlist not in user.playlists:
user.playlists.append(playlist)

View File

@@ -108,7 +108,7 @@ def download_missing_tracks(self):
if search_before_download:
app.logger.info(f"Searching for track in Jellyfin: {track.name}")
# Retrieve the Spotify track and preview URL
spotify_track = sp.track(track.spotify_track_id)
spotify_track = functions.get_cached_spotify_track(track.spotify_track_id)
preview_url = spotify_track.get('preview_url')
if not preview_url:
app.logger.error(f"Preview URL not found for track {track.name}.")
@@ -342,7 +342,7 @@ def update_jellyfin_id_for_downloaded_tracks(self):
break
elif not spotify_track:
try:
spotify_track = sp.track(track.spotify_track_id)
spotify_track = functions.get_cached_spotify_track(track.spotify_track_id)
spotify_track_name = spotify_track['name']
spotify_artists = [artist['name'] for artist in spotify_track['artists']]
spotify_album = spotify_track['album']['name']

View File

@@ -1 +1 @@
__version__ = "0.1.2"
__version__ = "0.1.4"

View File

@@ -182,7 +182,8 @@ class JellyfinClient:
"""
search_url = f'{self.base_url}/Items'
params = {
'SearchTerm': _clean_query(search_query),
'SearchTerm': search_query.replace('\'',"´").replace('','´'),
'IncludeItemTypes': 'Audio', # Search only for audio items
'Recursive': 'true', # Search within all folders
'Fields': 'Name,Id,Album,Artists,Path' # Retrieve the name and ID of the song

View File

@@ -1 +1 @@
__version__ = "0.1.2"
__version__ = "0.1.4"