Commit graph

68 commits

Author SHA1 Message Date
boyska
603beb4cc5 helper: config to rewrite-urls 2024-12-07 14:44:13 +01:00
boyska
424a8826b3 feed: rewrite() is an external script 2024-12-07 14:44:08 +01:00
boyska
d08aab2392 feed: reformat 2024-12-07 14:44:08 +01:00
boyska
a1ba7aabd1 clean feed with ruff 2024-12-07 14:44:08 +01:00
boyska
0af287cc68 log in case of wrong size 2024-12-07 13:51:15 +01:00
boyska
51aace122a rewrite URLs 2024-12-07 13:50:22 +01:00
boyska
5907c765a7 don't download again 2024-12-07 13:48:27 +01:00
boyska
009ca2544c small improvements 2024-12-07 13:30:19 +01:00
boyska
1aa21e837b downloader: supports Content-Disposition 2024-11-02 23:15:52 +01:00
boyska
e25bf292ca handle duration: N/A from ffprobe 2024-11-02 23:15:38 +01:00
boyska
a09f28b34f add dataoggi
one directory per day, play all files in it
2024-07-27 20:50:58 +02:00
boyska
c023462ef3 audiobanner: supports --intro and --outro
+ small refactoring
2024-07-27 20:38:47 +02:00
boyska
0df98bacad thanks, shellcheck 2024-07-27 20:38:47 +02:00
boyska
6ae1242c66 FIX return values respect typing 2024-07-27 20:38:47 +02:00
boyska
439c37088f clearer debug/error messages 2024-07-27 20:38:47 +02:00
boyska
55fbfb8921 FIX: actually print debug 2024-07-27 20:38:30 +02:00
boyska
2bf468a2cf handle errors in duration 2024-07-27 20:38:30 +02:00
boyska
2995e979ab copy file:/// too 2024-07-27 20:38:29 +02:00
boyska
bfb51dee44 get duration more safely 2024-07-27 20:38:06 +02:00
boyska
4c02335412 change: weights are divided among children 2024-07-27 20:38:04 +02:00
boyska
4c9f73f705 add --intro and --outro 2024-07-27 20:37:34 +02:00
boyska
f4e04a41ee add specific exceptions 2024-07-27 20:37:34 +02:00
boyska
55744a84a6 don't expand globs on HTTP
(it just makes no sense)
2023-01-29 10:50:17 +01:00
boyska
751111143e file:/// needs copy, too
they might well be a remote FUSE filesystem, thus depending on network,
so let's be sure and copy it
2023-01-29 10:48:56 +01:00
boyska
cb3814733d pfff depracations 2021-10-10 00:12:13 +02:00
boyska
797caef94d lazy evaluation of audio duration 2021-10-10 00:11:46 +02:00
boyska
66842a79f9 handle items without audios
thanks for fuzzing me, radioblackout.org
2021-10-10 00:01:36 +02:00
boyska
9347bc6752 --glob 2021-09-25 00:13:38 +02:00
boyska
7af24e779c refactor + --random-seed 2021-09-24 23:56:00 +02:00
boyska
234aeac1d0 don't encode urls, just pass strings 2021-09-24 23:33:59 +02:00
boyska
d4525c1f66 more logging 2021-09-24 23:28:49 +02:00
7af0cfbe18 feedtype: supports standard podcast, too 2020-11-16 16:31:13 +01:00
ac1c64aba9 FIX --fill-interleave-dir: ignore non-audio files
+ recurse
+ refactor
2020-11-16 16:30:30 +01:00
c7c61175a7 black formatting 2020-11-16 15:31:13 +01:00
b7e0a7ace4 continue when invalid files found
if you have an invalid ogg file, ffprobe will exit!=0, so everything
will crash. This commit just ignores the file
2020-11-16 15:30:02 +01:00
bddbbdf3ca source-weights fallback when the source is empty 2020-11-16 15:29:36 +01:00
2470864043 FIX continue downloading 2020-11-16 15:11:42 +01:00
eb5b04393b feed: always downloads with resume
what if the server doesn't support range? we don't support it!
2020-11-12 01:07:31 +01:00
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
0ebb62c318 ADD podcast; very basic support for podcast
if your audio source has podcast, great news! this script will add
**BASIC** support for podcasts. It will just download the first audio it
finds in the xml.
2019-11-04 00:29:44 +01: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