Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a4ef7f312 | ||
|
|
ef34aaa7a7 | ||
|
|
313db2b71a | ||
|
|
84891ef548 | ||
|
|
7177581a4c | ||
|
|
f9993959ed | ||
|
|
6f56f25384 |
@@ -1,5 +1,5 @@
|
||||
[bumpversion]
|
||||
current_version = 0.1.2
|
||||
current_version = 0.1.3
|
||||
commit = True
|
||||
tag = True
|
||||
|
||||
|
||||
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -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
|
||||
|
||||
6
.github/workflows/manual-build.yml
vendored
6
.github/workflows/manual-build.yml
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -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']
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = "0.1.2"
|
||||
__version__ = "0.1.3"
|
||||
|
||||
@@ -182,7 +182,8 @@ class JellyfinClient:
|
||||
"""
|
||||
search_url = f'{self.base_url}/Items'
|
||||
params = {
|
||||
'SearchTerm': _clean_query(search_query),
|
||||
'SearchTerm': search_query,
|
||||
|
||||
'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
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = "0.1.2"
|
||||
__version__ = "0.1.3"
|
||||
|
||||
Reference in New Issue
Block a user