Commit graph

26 commits

Author SHA1 Message Date
a0b6d77927 fill: reverse after
if you want to fill with as many recent news as possible, putting the
more recent *last*, you need this
2020-07-22 00:47:35 +02:00
efe3488799 Audio repr: human readable time 2020-07-22 00:42:48 +02:00
d945a246f1 feed --fill: maximize usage of a "slot" 2020-07-22 00:33:43 +02:00
daeb2ff3db semplifica audio/audiogroup
ora il codice di filtraggio è uguale
2020-07-21 13:18:37 +02:00
5a28106714 feed: date from txdate= 2019-01-27 18:17:58 +01:00
af4ff802ff feed: aggiunto valid, txdate, end_date, replica=
la txdate puo' essere pescata dal corpo (attualmente la cosa e' parziale)
in base al flag replica= viene ricavata una data di fine validita per un
audio.
Sia gli audio sia gli audiogroup hanno un flag "valid"
2019-01-27 18:13:05 +01:00
086c1f9aa6 FIX filtering for files, too 2018-03-20 01:38:57 +01:00
229b946a32 add date to files got inside dir
beware: files are still missing filters
2018-03-20 01:19:48 +01:00
ce11addbcd FIX: invalid URLs do not block the script
before that, a single invalid URL in the feed would have blocked all of
it. In fact, when there is no duration, and ffprobe fails, everything
was failing. This commit make it resilient to errors.
2018-02-27 14:46:19 +01:00
5930f1cdba sort by duration 2018-02-18 20:34:31 +01:00
6d84552a2c args: audio length can be human-friendly
--min-len and --max-len accept argument like 15m for 15 minutes or 2h
for two hours.

The old "number of seconds" (ie: 3600 for 1 hour) is still supported
and not deprecated.
2018-02-18 20:28:58 +01:00
324fdf9d96 --sort-by and --reverse
no means "leave it as it is"
2018-02-13 23:00:56 +01:00
0740fb5f84 Support audio date (and filter by date) 2018-02-13 22:51:22 +01:00
0cdec12b92 cosmetic changes 2018-02-13 21:49:30 +01:00
6e6e4c826e minor: option group for --source-weights 2018-02-13 21:35:36 +01:00
9fc54050d6 feed --min-len 2018-02-13 21:32:31 +01:00
1633ce703d minor: english variable names 2018-02-13 20:28:01 +01:00
aeb59a8dc0 options are organized in groups 2018-02-13 20:20:06 +01:00
1be085976e FIX #1: --source-weights
source weights are meant to first of all pick a source, with the
defined weights. This option is unrelated to --random. In fact,
--random will switch from chronological order to random one.
--source-weights will, instead, pick only one of the sources given in
command line.

A typical example is for jingles: if you have a big number of jingles that
should run relatively rarely, and a small number of jingles that should
run often, then putting them all in the same directory isn't a good
idea. You'd better put them in two different dirs and use
--source-weights 1:2
2017-12-09 17:51:56 +01:00
a8f59b75a3 feed: supports directories, too
Now feeds and directories can easily be combined
2017-12-09 12:51:36 +01:00
e9ca1cf181 --random 2017-06-12 23:26:43 +02:00
a0096cd335 fix group 2017-06-12 23:26:36 +02:00
3b40b070fb FIX file:// uri 2017-05-26 12:57:15 +02:00
1033871b60 feed --copy: sanitize url 2017-05-25 19:22:00 +02:00
f757ce168d add --copy 2017-05-25 16:52:57 +02:00
235d7a938f feed: pesca audio dai feed con molte magie 2017-04-19 11:18:45 +02:00