Coder Social home page Coder Social logo

Comments (17)

manolomartinez avatar manolomartinez commented on May 28, 2024

Hello, could you please provide the sequence of commands you have used, including the url of the feed in question?

from greg.

mfeif avatar mfeif commented on May 28, 2024

Sure,

The url is http://feeds.wnyc.org/newyorkerradiohour, which I have named tnyrh

I did the initial sync a few days ago, and it downloaded the 3-4 back episodes. I had a cron job set to run yesterday, which is the day of the week they publish new shows. SO, my crontab says to:

greg sync tnyrh

There aren't any failure messages in syslog (or any output from greg at all, though cron may not capture non-error messages). Cron DID mail me: a simple message that says:

Checking tnyrh...
Done

Here is the relevant part of the conf:

[tnyrh]
# The New Yorker Radio Hour puts EVERYTHING in their feed...
Tag = no
filter = "Episode" in "{title}"

If I run greg check --feed tnyrh I get:

0: Robert Glasper's Jazz Heresy (Fri, 11 Dec 2015 16:44:06 -0500)
1: Stand Clear of the Closing Doors (Fri, 11 Dec 2015 16:44:05 -0500)
2: A Wave of Sexual Violence on TV (Fri, 11 Dec 2015 16:42:19 -0500)
3: The Missing Boater (Fri, 11 Dec 2015 16:41:53 -0500)
4: Episode 8: The Missing Boater, and Robert Glasper (Fri, 11 Dec 2015 00:00:00 -0500)
5: The Mayor and the Mormon Church (Fri, 04 Dec 2015 15:38:52 -0500)
6: Roger Angell on Writing and Love (Fri, 04 Dec 2015 15:37:51 -0500)
7: Two Picks for the Week: "Please Like Me" and Elena Ferrante (Fri, 04 Dec 2015 15:37:44 -0500)
8: Let's Get Drinks (Fri, 04 Dec 2015 04:00:00 -0500)
9: A High School Mock Election Keeps it Real (Fri, 04 Dec 2015 00:00:00 -0500)
  (etc)

I did go in and manually force the download with greg download 0-9 and it worked.

from greg.

manolomartinez avatar manolomartinez commented on May 28, 2024

Hi, Matt, thanks for the info.

I did the initial sync a few days ago, and it downloaded the 3-4 back
episodes. I had a cron job set to run yesterday, which is the day of
the week they publish new shows. SO, my crontab says to:

In that first sync, did the filter work correctly?

greg sync tnyrh

There aren't any failure messages in syslog (or any output from greg
at all, though cron may not capture non-error messages). Cron DID mail
me: a simple message that says:

Checking tnyrh...
Done

That is what happens when greg has nothing to download. I've just
replicated your setup, and set the --downloadfrom date to 2015-12-07 and
greg sync has downloaded Episode 8 and nothing else, as expected. Is it at
all possible that the cron job started before that episode was posted?

Manolo

from greg.

mfeif avatar mfeif commented on May 28, 2024

In the first sync, the filter DID work correctly.

It's certainly possible that the cron-job was before the episode was posted, but when I went in and looked to see if the script worked, and it hadn't, running greg sync tnyrh would therefore have picked it up then, right?

from greg.

manolomartinez avatar manolomartinez commented on May 28, 2024

from greg.

mfeif avatar mfeif commented on May 28, 2024

Interesting! There is no file in ~/.local/share/greg/data corresponding to tnyrh; there are the other podcasts I've subscribed to.

from greg.

mfeif avatar mfeif commented on May 28, 2024

There's a pickle file called feeddump in there, unpickling it gives me a list with two items; it appears to be a parsed representation of the feed for tnyrh; no other feeds have data in there.

from greg.

manolomartinez avatar manolomartinez commented on May 28, 2024

Interesting! There is no file in ~/.local/share/greg/data corresponding to tnyrh; there are the other podcasts I've subscribed to.

Yeah, that's weird. You didn't remove the feed, add it back again later for some reason. I know I do this kind of things...

Anyway, have you kept on syncing this feed? How's it doing?

There's a pickle file called feeddump in there, unpickling it gives me a list with two items; it appears to be a parsed representation of the feed for tnyrh; no other feeds have data in there.

That comes from greg check. I leave it there, in case you want to keep on doing greg download based on it. Unfortunately it's irrelevant to the problem at hand.

from greg.

mfeif avatar mfeif commented on May 28, 2024

I don't recall removing the feed, but maybe in the course of testing something I did a manual rm.

Anyway, the show is weekly, so one hasn't come out yet ;-)

I'll know tomorrow evening. Thanks

from greg.

manolomartinez avatar manolomartinez commented on May 28, 2024

One final check before tomorrow evening, then :) What does greg info trynh say?

from greg.

mfeif avatar mfeif commented on May 28, 2024

greg info tnyrh


tnyrh
-----
    url: http://feeds.wnyc.org/newyorkerradiohour

from greg.

manolomartinez avatar manolomartinez commented on May 28, 2024

Right, greg has forgotten everything about this feed, and it's treating it like a totally new one. Perhaps there is a bug in the interaction of the firstsync default option in greg.conf (which is one entry) and a filter. I'll look into it, thanks.

from greg.

mfeif avatar mfeif commented on May 28, 2024

Ok, it sync'd again this evening... no change. There is no file in .local for tnyrh. Sync says "no new episodes" and there have been no downloads.

greg check --feed tnyrh

shows new stuff:

0: Sofia Coppola Gives Bill Murray for Christmas (Fri, 18 Dec 2015 17:00:23 -0500)
1: Claudia Rankine's Poetry Reveals the Harm in Microaggressions (Fri, 18 Dec 2015 17:00:17 -0500)
2: Mark Singer on Donald Trump's Comeback (Fri, 18 Dec 2015 17:00:05 -0500)
3: My Living Will (Fri, 18 Dec 2015 16:59:56 -0500)
4: The Drone Under the Tree (Fri, 18 Dec 2015 16:59:55 -0500)
5: Episode 9: Christmas Skies Full of Drones, and Donald Trump's Ultimate Luxury (Fri, 18 Dec 2015 00:00:00 -0500)
6: Robert Glasper's Jazz Heresy (Fri, 11 Dec 2015 16:44:06 -0500)
7: Stand Clear of the Closing Doors (Fri, 11 Dec 2015 16:44:05 -0500)
8: A Wave of Sexual Violence on TV (Fri, 11 Dec 2015 16:42:19 -0500)
9: The Missing Boater (Fri, 11 Dec 2015 16:41:53 -0500)

I'm not going to manually download anything, in case this "broken" state can be leveraged to help track down the bug.

from greg.

manolomartinez avatar manolomartinez commented on May 28, 2024

OK, I now see what's going on: in a first sync, greg's default is to download just one entry. Well, that is what is intended, but, in fact, what it does is put just one entry in the download queue, which is then filltered.

So, in the unlucky situation that you are downloading for the first time (which was, and we do know know why this is, the state of your feed) and you are filtering and the first entry encountered does not pass the filter, then it will download nothing. This is the wrong behavior.

I will try to push a fix later today. Thanks for helping me notice this.

Manolo

from greg.

manolomartinez avatar manolomartinez commented on May 28, 2024

I think this is now fixed. Please update greg, and let's try again?

Manolo

from greg.

mfeif avatar mfeif commented on May 28, 2024

It does appear to pick up those old missing episodes. Thanks!

from greg.

mfeif avatar mfeif commented on May 28, 2024

New bug, though... :-(

#39

from greg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.