mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 15:32:38 -07:00
Fix Last.fm URLs linking to the artist page instead of the album page
This commit is contained in:
parent
c7afd10ec0
commit
6ff826bc3a
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
|
|||
notify_params['trakt_url'] = 'https://trakt.tv/search/tmdb/' + notify_params['themoviedb_id'] + '?id_type=show'
|
||||
|
||||
if 'lastfm://' in notify_params['guid']:
|
||||
notify_params['lastfm_id'] = notify_params['guid'].split('lastfm://')[1].rsplit('/', 1)[0]
|
||||
notify_params['lastfm_id'] = '/'.join(notify_params['guid'].split('lastfm://')[1].split('?')[0].split('/')[:2])
|
||||
notify_params['lastfm_url'] = 'https://www.last.fm/music/' + notify_params['lastfm_id']
|
||||
|
||||
# Get TheMovieDB info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue