The personal blog of Grahame Murray

Email me:
blog [@] grahame.com

Categories

Calendar
May 2005
S M T W T F S
« Mar   Jun »
1234567
891011121314
15161718192021
22232425262728
293031  

Recent Comments

Powered by WordPress
Netflix Queue [Blog, Computing]

The Netflix Queue plugin fetches Netflix queue information as RSS data from the Netflix website, parses each movie’s information, and presents that information on the web. Individual functions calls are available for each of those abilities, allowing you flexibility in how they’re used. HTML presentation logic is also templated, allowing you to chose what data shows up about a movie, and what other text is mixed in with it.

To install, simply download or copy & paste the script to your wordpress plugins directory and then activate it in the plugins admin panel. Click the installation instructions in the plugin’s description for more installation details.


Functions Available


function print_netflix_athome( [string template [, int limit]] ) – echoes the results of get_netflix_athome to the screen.

function print_netflix_queue( [string template [, int limit]] ) - echoes the results of get_netflix_queue to the screen

function get_netflix_athome( string template, int limit ) – returns an array of strings, one for each item the “at home”

function get_netflix_queue( string template, int limit ) – returns an array of strings, one for each item in the queue

function render_netflix_item( array item, string template ) – Does string substitutions on the given $template replacing keys from the given $item with their associated value.

function get_netflix_items( string file ) – Returns an array of item arrays representing the items in the given file. $file can be either Queue, Tracking, or Recommendation.

function get_netflix_cached_file( string file ) – Returns the contents of the given Netflix RSS file.

Parameter Notes

template - is a string such as “

  • {number} {title}
  • “. The values within curly-braces {} are substituted, if they exist, for each item. The available values are: number, title, link, linked_title, and description. shipped is also available for calls to the athome functions. The format of this date can be affected by modifying the $DateFormat configuration variable.

    limit - is the maximum number of entries to process (useful for really large queues).

    file - can be “Queue”, “Tracking”, or “Recommendations”. These are used in constructing the RSS URL to request from the Netflix website

    One Response to “Netflix Queue”

    1. Kronix Says:

      Oh you saved tons of my time. Thanks a lot.

    Leave a Reply

    Interesting Stuff