mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-27 17:43:02 +00:00
Loading playlist name artist and duration info. Added MIT License
This commit is contained in:
parent
b4689068f3
commit
fd3fb45399
7
LICENSE
Normal file
7
LICENSE
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Copyright (c) 2022 localhost_frssoft
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@ -55,7 +55,9 @@ load_tracks_to_playlist()
|
|||||||
counter_titles=0
|
counter_titles=0
|
||||||
for i in $(funkwhale_api_get_tracks $1); do
|
for i in $(funkwhale_api_get_tracks $1); do
|
||||||
title=$(jj -i preload results."$counter_titles".title)
|
title=$(jj -i preload results."$counter_titles".title)
|
||||||
echo "#EXTINF:-1, $counter_titles - $title" >> playlist.m3u8
|
artist_name=$(jj -i preload results."$counter_titles".artist.name)
|
||||||
|
duration=$(jj -i preload results."$counter_titles".uploads.0.duration)
|
||||||
|
echo "#EXTINF:$duration, $artist_name - $title" >> playlist.m3u8
|
||||||
counter_titles=$(expr $counter_titles + 1)
|
counter_titles=$(expr $counter_titles + 1)
|
||||||
echo "https://$instance$i\n" >> playlist.m3u8
|
echo "https://$instance$i\n" >> playlist.m3u8
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user