Yes, that is exactly the problem. The week folder has Monday's date.
The provider has over a hundred stations taking their program and nobody
else seems to have a problem, so they don't want to change just for one
station.
If it didn't use the date twice in the overall path, I could do it with
offsets, but that doesn't work either.
I'd like to keep this all inside rdcatch and not get into exotic cron
jobs or scripts.
Michael
Mark Murdock wrote on 12/17/20 2:36 PM:
It looks like you would need to change the number for the weekly folder every
time you wanted files for a new week.
This is close, but won't work:
ftp.hostname.com/program/%Y-%m%d/%m%d_program_episode-name.mp3
because the first "%d" would change to the current date every day and thus mess
up the file folder name. In the past when I had an issue like this with a provider that
created a new folder for each month, I discussed the issue with them, and they decided to
put their files into the same folder each month. Sometimes if you negotiate with these
people they will modify their practices.
Mark Murdock
KAMB
90 E. 16th St.
Merced, CA 95340
(209) 723-1015
[email protected]
Website
-----Original Message-----
From: [email protected]
<[email protected]> On Behalf Of wa7skg
Sent: Thursday, December 17, 2020 11:03 AM
To: [email protected]
Subject: [RDD] RDCatch Questions - Weird Wildcards
Yes, there are more.
One program I need to download has a troublesome file structure.
There is a folder for the program, then a folder for each week beginning on
Monday. The weekly folder holds the files for that week. For example:
ftp.hostname.com/program/2020-1214/1214_program_episode-name.mp3
ftp.hostname.com/program/2020-1214/1215_program_episode-name.mp3
ftp.hostname.com/program/2020-1214/1216_program_episode-name.mp3
ftp.hostname.com/program/2020-1214/1217_program_episode-name.mp3
ftp.hostname.com/program/2020-1214/1218_program_episode-name.mp3
ftp.hostname.com/program/2020-1221/1221_program_episode-name.mp3
ftp.hostname.com/program/2020-1221/1222_program_episode-name.mp3
ftp.hostname.com/program/2020-1221/1223_program_episode-name.mp3
ftp.hostname.com/program/2020-1221/1224_program_episode-name.mp3
ftp.hostname.com/program/2020-1221/1225_program_episode-name.mp3
etc.
I can't figure out how to set up a wildcard to deal with the weekly folder with
Monday's date.
This is a popular program that quite a few stations carry, so I'm sure there
must be a way to automate it.
Thanks for any ideas.
Michael
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev