mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-18 21:23:01 +00:00
add link to track in playlist
This commit is contained in:
parent
89a8133de7
commit
0e6b7cccbf
@ -116,8 +116,8 @@ with concurrent.futures.ThreadPoolExecutor(max_workers=50) as executor:
|
||||
except Exception as E:
|
||||
print(E)
|
||||
for track in tracks_stor:
|
||||
artist, album, title, play_url, track_duration = track['artist']['name'], track['album']['title'], track['title'], track['listen_url'], track.get('duration')
|
||||
artist, album, title, play_url, track_duration, fid = track['artist']['name'], track['album']['title'], track['title'], track['listen_url'], track.get('duration'), track['fid']
|
||||
if not track_duration:
|
||||
track_duration = -1
|
||||
playlist_files.append(f'#EXTINF:{track_duration},{artist} - {album} - {title}\n{play_url}')
|
||||
playlist_files.append(f'#EXTINF:{track_duration},{artist} - {album} - {title} url="{fid}"\n{play_url}')
|
||||
create_playlist_file(playlist_files)
|
||||
|
Loading…
Reference in New Issue
Block a user