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 “
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
April 3rd, 2007 at 08:54:40
Oh you saved tons of my time. Thanks a lot.