@rmonico wrote:
Hi guys,
Short question: How to accept just 10 newest entries and mark everything else as seen?
Detailed question: I using flexget to download videos from a Youtube channel, but the first time the task run it downloads a LOT of stuff (most of them I just watched). I thought about filter by age, but in this case I have to parse the html to get published date field (I didnt discover if this is even possible with existing plugins). I think the solution of accept just N newest entries is easier (I accept sugestions). Note that the problem here is download a huge ammount of data on first run, I dont need this behaviour every time, I can even mark everything as seen on first run and after change filters to something that makes sense.
Now I using the configuration bellow which, of course, its not working, accordingly limit_new wiki.
Some ideas?Thanks in advance!
tasks: Kurzgesagt: html: https://www.youtube.com/user/Kurzgesagt/videos regexp: accept: - '/watch\?v=' rest: reject from: url limit_new: 10 exec: mkdir -pv '/home/rmonico/syncthing/feeds/Kurzgesagt' exec: youtube-dl -o '/home/rmonico/syncthing/feeds/Kurzgesagt/%(title)s.%(ext)s' '{{url}}' schedules: - tasks: '*' interval: minutes: 30
Posts: 2
Participants: 2