@terumori wrote:
Hi. Totally noob here, and I hope someone can help out.
I've managed to make a config file that downloads all files that has a title containing "veke" in the link. But the actual filename is always a random string, and the file extension varies between .doc and .pdf.
How can I change the filename to the matched title, and keep the file extension?
Here's the config file:
tasks: vekeplan: html: url: http://www.minskule.no/froyland/seksjon/0000 title_from: link regexp: accept: - .*veke.(\d)+ rest: reject download: /mnt/abcd
Here is the last line from the log file:
2017-08-20 00:01 INFO download vekeplan Downloading: Veke 34
As mentioned earlier, I want to name the file "Veke 34" (in this log example), and keep the original file extension.
Posts: 3
Participants: 3