Discussions
Activity
Sign In
How it works
Airtime Support
Help for a liquidsoap script please... playlist
Vote Up
0
Vote Down
Yannick
September 2014
Posts: 101
Member
Hi,
This is my script in liquidsoap (Thank you Albert FR for the code) :
promotions = playlist ("/srv/airtime/indicatifs")
musics = playlist(mode='randomize',reload=1,reload_mode="rounds", "/srv/airtime/stor/imported")
default = rotate(weights=[1,6], [promotions, musics])
I want to skip reading audio files that are longer than 20 minutes (by example) because in "imported" folder there are shows (recorded)
Do you know a code for that ?
Thanks
3 Comments
sorted by
Votes
Date Added
Vote Up
0
Vote Down
Albert FR
September 2014
Posts: 1,978
Member, Airtime Moderator
the easy way :
change directory
:-)
find the files < 10Mo (for example) and move them to another directory :
find /srv/airtime/stor/imported/ -type f -size -10000000 -exec mv {} /srv/airtime/mp3/\;
----
Je peux le faire ;) [Pour vous] / I can do it [For You]
Gnu/Linux & Media Architect
Co-founder
NessRadio.com
Vote Up
0
Vote Down
Yannick
September 2014
Posts: 101
Member
Ok Albert, but i don't want duplicate my library, i have over 100Go !
Oups sorry, but if i move files, links in show will be broken ;-(
ls_script is powerful no ?
Post edited by Yannick at 2014-09-22 07:13:11
Vote Up
0
Vote Down
Albert FR
September 2014
Posts: 1,978
Member, Airtime Moderator
mv command line is for move not for duplicate (that cp for that)
and, links will be recreate by liquidsoap
and liquidsoap il powerful effectively but this action will be dangerous to use (in my opinion)
----
Je peux le faire ;) [Pour vous] / I can do it [For You]
Gnu/Linux & Media Architect
Co-founder
NessRadio.com
Add a Comment
Start a New Discussion
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
8,397
Sourcefabric
↳
Announcements
25
Newscoop
↳
Newscoop Support
2,189
↳
Newscoop Development
722
↳
Newscoop Security
13
↳
Newscoop Documentation
17
↳
Newscoop Themes
69
Airtime
↳
Airtime Support
3,139
↳
Airtime Development
1,286
↳
Airtime Français
146
↳
Airtime Documentation
14
↳
Airtime Hacks
102
↳
Promote your station!
37
↳
Airtime Security
11
Booktype
↳
Booktype Support
277
↳
Booktype Development
55
↳
Booktype Documentation
7
Superdesk
↳
Superdesk Development
264
↳
Web Publisher
21
Poll
No poll attached to this discussion.
Top Posters
Albert FR
1978
Martin Konecny
1860
Andrey Podshivalov
1526
Voisses Tech
1423
John Chewter
899
Daniel James
844
Roger Wilco
784
hoerich
627
Paul Baranowski
389
Cliff Wang
339