7 Commits
0.1.2 ... 0.1.3

Author SHA1 Message Date
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
7 changed files with 15 additions and 8 deletions

View File

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

View File

@@ -38,7 +38,9 @@ jobs:
with: with:
context: . context: .
push: true 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 # Create a release on GitHub
- name: Create GitHub Release - name: Create GitHub Release

View File

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

View File

@@ -108,7 +108,7 @@ def download_missing_tracks(self):
if search_before_download: if search_before_download:
app.logger.info(f"Searching for track in Jellyfin: {track.name}") app.logger.info(f"Searching for track in Jellyfin: {track.name}")
# Retrieve the Spotify track and preview URL # 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') preview_url = spotify_track.get('preview_url')
if not preview_url: if not preview_url:
app.logger.error(f"Preview URL not found for track {track.name}.") 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 break
elif not spotify_track: elif not spotify_track:
try: 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_track_name = spotify_track['name']
spotify_artists = [artist['name'] for artist in spotify_track['artists']] spotify_artists = [artist['name'] for artist in spotify_track['artists']]
spotify_album = spotify_track['album']['name'] spotify_album = spotify_track['album']['name']

View File

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

View File

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