Code Monkey home page Code Monkey logo

hulu-show's Introduction

Updates

01/22/2012

Added coming_soon attribute to Episode

?

Added show_title and description attributes to Episode

hulu-show

Build Status

Hulu::Show fetches all episodes for the current season of a specified show.

Show attributes:

:network,
:title,
:genre,
:description,
:errors,
:episodes,
:url

Episode attributes:

:show_title,
:title,
:episode,
:running_time,
:air_date,
:season,
:url,
:beaconid,
:thumbnail_url,
:embed_html,
:description,
:coming_soon

Usage

    gem install hulu-show
    require 'hulu/show'
    burn_notice = Hulu::Show.new('Burn Notice')
    #<Hulu::Show:0x007f972a04f740
      @title="Burn Notice",
      @episodes=[
        #<Hulu::Episode:0x007f972a02c7b8
          @episode="13",
          @title="Damned If You Do",
          @url="http://www.hulu.com/watch/296648/burn-notice-damned-if-you-do?c=Action-and-Adventure#x-4,cEpisodes,1,0",
          @beaconid="296648",
          @running_time="43:09",
          @air_date="11/03/2011",
          @embed_html="<object width=\"512\" height=\"296\"><param name=\"movie\" value=\"http://www.hulu.com/embed/c96sZQru3w567PP7t3cGZQ\"></param><param name=\"flashvars\" value=\"ap=1\"></param><embed src=\"http://www.hulu.com/embed/c96sZQru3w567PP7t3cGZQ\" type=\"application/x-shockwave-flash\" width=\"512\" height=\"296\" flashvars=\"ap=1\"></embed></object>",
          @thumbnail_url="http://thumbnails.hulu.com/8/60000008/60000008_145x80_generated.jpg">
        ],
        @doc=nil,
        @errors=[],
        @network="USA",
        @genre="Action and Adventure",
        @description="A \"burned\" spy returns to Miami where he uses his special ops training to help those in need, and bring justice against the men who wrongly burned him.",
        @url="http://www.hulu.com/burn-notice">

Retrieve show episodes

    burn_notice.episodes
    [
      #<Hulu::Episode:0x007f961a02be00
          @episode="13",
          @title="Damned If You Do",
          @url="http://www.hulu.com/watch/296648/burn-notice-damned-if-you-do?c=Action-and-Adventure#x-4,cEpisodes,1,0",
          @beaconid="296648",
          @running_time="43:09",
          @air_date="11/03/2011",
          @embed_html="<object width=\"512\" height=\"296\"><param name=\"movie\" value=\"http://www.hulu.com/embed/c96sZQru3w567PP7t3cGZQ\"></param><param name=\"flashvars\" value=\"ap=1\"></param><embed src=\"http://www.hulu.com/embed/c96sZQru3w567PP7t3cGZQ\" type=\"application/x-shockwave-flash\" width=\"512\" height=\"296\" flashvars=\"ap=1\"></embed></object>",
          @thumbnail_url="http://thumbnails.hulu.com/8/60000008/60000008_145x80_generated.jpg">
     ]

Retrieve multiple shows with their episodes at one time.

    Hulu.shows(['Burn Notice', 'Warehouse 13'])

Copyright (c) 2011 Craig Williams. See LICENSE.txt for further details.

hulu-show's People

Contributors

craigwilliams avatar

Watchers

Emma Lejeck avatar James Cloos avatar  avatar

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.