• Previous message: [greg-dev] Cache copies of enclosures
  • Next message: [greg-dev] theme path
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    [greg-dev] Cache copies of enclosures

    Great idea.  Somebody figured out how to download the enclosures with Magpie:
    http://www.wynia.org/wordpress/2005/10/04/forget-ipodder-or-itunes-write-your-own-podcatcher-using-php-of-course/
    
    You'd just need to figure out how to rewrite the feed to use the locally
    cached enclosure.  I'd recommend the asynchronous/offline/as-needed
    version of this -- i.e. NOT from within a time-limited php script.  Maybe
    use wget (or similar) to fetch the data only if it's newer than the local
    copy (i.e. if-modified).  You'll also need a way to manage disk space with
    this -- maybe a config item for 'enclosure cache size' with a job that
    deletes stuff FIFO.
    
    I'd like to see a superset of this feature:  grab all of the remote media
    items and cache them, as well.  That way I can read my feeds from work and
    have it fetch the media from my server and not the linked site.  This
    becomes important when you work for a company that doesn't want you
    reading anti-company -type sites (or sites that "management" deems as
    anti-company).
    
    
    Matt
    > Greetings,
    >
    > Has there been any discussion of adding capability to cache enclosure
    > files? I
    > tried many searches of the list, forum, and tickets to no avail.
    >
    > Here's what I'd like to be able to do. This is probably beyond the scope
    > of
    > Gregarius, but I think it would be a useful for people who often switch
    > between
    > multiple computers and would like to make sure they have a copies of their
    > favorite podcasts/videocasts available to them wherever they are in an
    > familiar
    > web-based interface (along with all the other stuff they monitor via RSS).
    >
    > How it might work with Gregarius:
    > User:
    > - An option is added to a feed to allow enclosures to be cached.
    > - When viewing an item summary with an audio/video enclosure, the user
    > gets the
    > option to open the cached copy or the live/original source copy.
    > Backend:
    > - If Magpie or some other subcomponent of Gregarius can't grab and save a
    > "local" copy of the enclosure, then call an external script that can.
    > There are
    > a few out there that have decent command line options (for size
    > restrictions,
    > etc.).
    >
    > I started browsing code to see where some of the hooks would be necessary.
    > I
    > think this might be a significant undertaking, but I would like feedback.
    >
    > I have looked at other aggregator and web-based client packages to
    > accomplish
    > this but nothing seems refined enough. If you know of something, certainly
    > let
    > me know. I've looked through long lists of "podcatchers" and
    > "aggregators." I
    > do not want a service hosted by someone else since who knows what'll
    > happen
    > (such as mefeedia).
    >
    > Please let me know if I need to clarify, etc.
    >
    > Thanks. Mark.
    > _______________________________________________
    > gregarius-dev mailing list
    > gregarius-dev at sinless.org
    > http://sinless.org/mailman/listinfo/gregarius-dev
    >
    >
    
    
    
    Posted by Matthew Lange [reply] at Fri Dec 2 04:35:25 CET 2005