Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1c4030a4c6 | ||
|
|
31556fd207 | ||
|
|
42c92caef7 | ||
|
|
7f075fb490 | ||
|
|
53e4cf0a8d | ||
|
|
7a4ef7f312 | ||
|
|
ef34aaa7a7 | ||
|
|
313db2b71a | ||
|
|
84891ef548 | ||
|
|
7177581a4c | ||
|
|
f9993959ed | ||
|
|
6f56f25384 |
@@ -1,5 +1,5 @@
|
|||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 0.1.2
|
current_version = 0.1.4
|
||||||
commit = True
|
commit = True
|
||||||
tag = True
|
tag = True
|
||||||
|
|
||||||
|
|||||||
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -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
|
||||||
|
|||||||
6
.github/workflows/manual-build.yml
vendored
6
.github/workflows/manual-build.yml
vendored
@@ -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
|
||||||
|
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ def add_playlist():
|
|||||||
db.session.execute(stmt)
|
db.session.execute(stmt)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
update_playlist_metadata(playlist,playlist_data)
|
functions.update_playlist_metadata(playlist,playlist_data)
|
||||||
|
|
||||||
if playlist not in user.playlists:
|
if playlist not in user.playlists:
|
||||||
user.playlists.append(playlist)
|
user.playlists.append(playlist)
|
||||||
|
|||||||
@@ -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']
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = "0.1.2"
|
__version__ = "0.1.4"
|
||||||
|
|||||||
@@ -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.replace('\'',"´").replace('’','´'),
|
||||||
|
|
||||||
'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
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = "0.1.2"
|
__version__ = "0.1.4"
|
||||||
|
|||||||
Reference in New Issue
Block a user