Created
February 26, 2010 16:38
-
-
Save jspillers/315881 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ipvod data is stored in provided by the rest feed we get for | |
franchises (http://mv2.sling.com/mediaview/franchise/list.xml). | |
This data is parsed from each franchise node and stored in two | |
different tables: ipvods and ipvod_prices | |
an ipvod belongs to a franchise via the franchise_id column | |
and one or more ipvod_prices belong to an ipvod via the ipvod_id column | |
Here is an example: | |
#<Ipvod | |
id: 1, | |
franchise_id: 1216, | |
program_id: 31929, | |
is_visible: true, | |
is_adult: false, | |
resource_id: "", | |
event_description: "When a blonde sorority queen is dumped by her boyfr...", | |
duration: "96", | |
expiration_date: "2010-11-01 19:59:00", | |
file_url: "https://www.dishaccess.tv/content/ar20091112163234....", | |
trailer_url: "", | |
created_at: "2009-12-31 01:44:20", | |
updated_at: "2009-12-31 01:44:20" | |
> | |
#<IpvodPrice | |
id: 1, | |
ipvod_id: 1, | |
currency: "USD", | |
amount: "399", | |
period: "1440", | |
created_at: "2009-12-31 01:44:20", | |
updated_at: "2009-12-31 01:44:20" | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment