Esempio n. 1
0
 def from_xml_node(cls, xml_node):
     available_at = get_xml_text_value(xml_node, "available_at")
     categories = get_xml_text_value(xml_node, "categories")
     collation_title = get_xml_text_value(xml_node, "collation_title")
     company_canonical_name = get_xml_text_value(xml_node, "company_canonical_name")
     company_id = get_xml_text_value(xml_node, "company_id")
     company_name = get_xml_text_value(xml_node, "company_name")
     composite_available_at = get_xml_text_value(xml_node, "composite_available_at")
     composite_expires_at = get_xml_text_value(xml_node, "composite_expires_at")
     content_id = get_xml_text_value(xml_node, "content_id")
     content_rating = get_xml_text_value(xml_node, "content_rating")
     content_rating_reason = get_xml_text_value(xml_node, "content_rating_reason")
     video_copyright = get_xml_text_value(xml_node, "copyright")
     cp_id = get_xml_text_value(xml_node, "cp_id")
     cp_identifier = get_xml_text_value(xml_node, "cp_identifier")
     description = get_xml_text_value(xml_node, "description")
     duration = get_xml_text_value(xml_node, "duration")
     eid = get_xml_text_value(xml_node, "eid")
     embed_permitted = get_xml_text_value(xml_node, "embed_permitted")
     episode_number = get_xml_text_value(xml_node, "episode_number")
     expires_at = get_xml_text_value(xml_node, "expires_at")
     has_captions = get_xml_text_value(xml_node, "has_captions")
     has_hd = get_xml_text_value(xml_node, "has_hd")
     has_plus_living_room = get_xml_text_value(xml_node, "has_plus_living_room")
     has_plus_mobile = get_xml_text_value(xml_node, "has_plus_mobile")
     has_plus_preview = get_xml_text_value(xml_node, "has_plus_preview")
     has_plus_web = get_xml_text_value(xml_node, "has_plus_web")
     video_num_id = get_xml_text_value(xml_node, "video_num_id")
     include_company_logo = get_xml_text_value(xml_node, "include_company_logo")
     is_plus_web_only = get_xml_text_value(xml_node, "is_plus_web_only")
     language = get_xml_text_value(xml_node, "language")
     media_type = get_xml_text_value(xml_node, "media_type")
     original_premiere_date = get_xml_text_value(xml_node, "original_premiere_date")
     package_id = get_xml_text_value(xml_node, "package_id")
     parent_channel_id = get_xml_text_value(xml_node, "parent_channel_id")
     parent_channel_name = get_xml_text_value(xml_node, "parent_channel_name")
     pid = get_xml_text_value(xml_node, "pid")
     plus_living_room_available_at = get_xml_text_value(xml_node, "plus_living_room_available_at")
     plus_living_room_expires_at = get_xml_text_value(xml_node, "plus_living_room_expires_at")
     plus_mobile_available_at = get_xml_text_value(xml_node, "plus_mobile_available_at")
     plus_mobile_expires_at = get_xml_text_value(xml_node, "plus_mobile_expires_at")
     plus_only = get_xml_text_value(xml_node, "plus_only")
     plus_web_available_at = get_xml_text_value(xml_node, "plus_web_available_at")
     plus_web_expires_at = get_xml_text_value(xml_node, "plus_web_expires_at")
     positive_votes_count = get_xml_text_value(xml_node, "positive_votes_count")
     programming_type = get_xml_text_value(xml_node, "programming_type")
     promotional_link = get_xml_text_value(xml_node, "promotional_link")
     promotional_text = get_xml_text_value(xml_node, "promotional_text")
     rating = get_xml_text_value(xml_node, "rating")
     reviews_count = get_xml_text_value(xml_node, "reviews_count")
     season_number = get_xml_text_value(xml_node, "season_number")
     show_canonical_name = get_xml_text_value(xml_node, "show_canonical_name")
     show_id = get_xml_text_value(xml_node, "show_id")
     show_name = get_xml_text_value(xml_node, "show_name")
     studio = get_xml_text_value(xml_node, "studio")
     thumbnail_url = get_xml_text_value(xml_node, "thumbnail-url")
     thumbnail_url_16x9_large = get_xml_text_value(xml_node, "thumbnail_url_16x9_large")
     thumbnail_url_16x9_medium = get_xml_text_value(xml_node, "thumbnail_url_16x9_medium")
     thumbnail_url_4x3_medium = get_xml_text_value(xml_node, "thumbnail_url_4x3_medium")
     title = get_xml_text_value(xml_node, "title")
     tune_in_information = get_xml_text_value(xml_node, "tune_in_information")
     video_type = get_xml_text_value(xml_node, "video_type")
     votes_count = get_xml_text_value(xml_node, "votes_count")
     video_id = get_xml_text_value(xml_node, "id")
     return cls(available_at, categories, collation_title, company_canonical_name, company_id, company_name, composite_available_at, composite_expires_at, content_id, content_rating, content_rating_reason, video_copyright, cp_id, cp_identifier, description, duration, eid, embed_permitted, episode_number, expires_at, has_captions, has_hd, has_plus_living_room, has_plus_mobile, has_plus_preview, has_plus_web, video_num_id, include_company_logo, is_plus_web_only, language, media_type, original_premiere_date, package_id, parent_channel_id, parent_channel_name, pid, plus_living_room_available_at, plus_living_room_expires_at, plus_mobile_available_at, plus_mobile_expires_at, plus_only, plus_web_available_at, plus_web_expires_at, positive_votes_count, programming_type, promotional_link, promotional_text, rating, reviews_count, season_number, show_canonical_name, show_id, show_name, studio, thumbnail_url_16x9_large, thumbnail_url_16x9_medium, thumbnail_url_4x3_medium, title, tune_in_information, video_id, video_type, votes_count, thumbnail_url)
Esempio n. 2
0
 def from_xml_node(cls, xml_node):
     availability_notes = get_xml_text_value(xml_node, "availability_notes")
     canonical_name = get_xml_text_value(xml_node, "canonical_name")
     clips_count = get_xml_text_value(xml_node, "clips_count")
     collation_name = get_xml_text_value(xml_node, "collation_name")
     company_canonical_name = get_xml_text_value(xml_node,
                                                 "company_canonical_name")
     company_id = get_xml_text_value(xml_node, "company_id")
     company_name = get_xml_text_value(xml_node, "company_name")
     content_age_group = get_xml_text_value(xml_node, "content_age_group")
     description = get_xml_text_value(xml_node, "description")
     device_id = get_xml_text_value(xml_node, "device_id")
     dp_identifier = get_xml_text_value(xml_node, "dp_identifier")
     episode_clips_count = get_xml_text_value(xml_node,
                                              "episode_clips_count")
     feature_film_content_id = get_xml_text_value(
         xml_node, "feature_film_content_id")
     feature_film_id = get_xml_text_value(xml_node, "feature_film_id")
     feature_films_count = get_xml_text_value(xml_node,
                                              "feature_films_count")
     film_clips_count = get_xml_text_value(xml_node, "film_clips_count")
     full_episodes_count = get_xml_text_value(xml_node,
                                              "full_episodes_count")
     genre = get_xml_text_value(xml_node, "genre")
     has_hd = get_xml_text_value(xml_node, "has_hd")
     has_plus_living_room = get_xml_text_value(xml_node,
                                               "has_plus_living_room")
     has_plus_mobile = get_xml_text_value(xml_node, "has_plus_mobile")
     show_num_id = get_xml_text_value(xml_node, "id")
     include_company_logo = get_xml_text_value(xml_node,
                                               "include_company_logo")
     max_season_number = get_xml_text_value(xml_node, "max_season_number")
     min_season_number = get_xml_text_value(xml_node, "min_season_number")
     name = get_xml_text_value(xml_node, "name")
     original_premiere_date = get_xml_text_value(xml_node,
                                                 "original_premiere_date")
     package_group_id = get_xml_text_value(xml_node, "package_group_id")
     plus_web_videos_count = get_xml_text_value(xml_node,
                                                "plus_web_videos_count")
     primary_channel_id = get_xml_text_value(xml_node, "primary_channel_id")
     primary_channel_name = get_xml_text_value(xml_node,
                                               "primary_channel_name")
     rating = get_xml_text_value(xml_node, "rating")
     sa_instance_state = get_xml_text_value(xml_node, "sa_instance_state")
     show_id = get_xml_text_value(xml_node, "show_id")
     total_seasons_count = get_xml_text_value(xml_node,
                                              "total_seasons_count")
     videos_count = get_xml_text_value(xml_node, "videos_count")
     return cls(
         availability_notes, canonical_name, clips_count, collation_name,
         company_canonical_name, company_id, company_name,
         content_age_group, description, device_id, dp_identifier,
         episode_clips_count, feature_film_content_id, feature_film_id,
         feature_films_count, film_clips_count, full_episodes_count, genre,
         has_hd, has_plus_living_room, has_plus_mobile, show_num_id,
         include_company_logo, max_season_number, min_season_number, name,
         original_premiere_date, package_group_id, package_group_id,
         plus_web_videos_count, primary_channel_id, primary_channel_name,
         primary_channel_name, rating, sa_instance_state, show_id,
         total_seasons_count, videos_count)
Esempio n. 3
0
 def from_xml_node(cls, xml_node):
     availability_notes = get_xml_text_value(xml_node, "availability_notes")
     canonical_name = get_xml_text_value(xml_node, "canonical_name")
     clips_count = get_xml_text_value(xml_node, "clips_count")
     collation_name = get_xml_text_value(xml_node, "collation_name")
     company_canonical_name = get_xml_text_value(xml_node, "company_canonical_name")
     company_id = get_xml_text_value(xml_node, "company_id")
     company_name = get_xml_text_value(xml_node, "company_name")
     content_age_group = get_xml_text_value(xml_node, "content_age_group")
     description = get_xml_text_value(xml_node, "description")
     device_id = get_xml_text_value(xml_node, "device_id")
     dp_identifier = get_xml_text_value(xml_node, "dp_identifier")
     episode_clips_count = get_xml_text_value(xml_node, "episode_clips_count")
     feature_film_content_id = get_xml_text_value(xml_node, "feature_film_content_id")
     feature_film_id = get_xml_text_value(xml_node, "feature_film_id")
     feature_films_count = get_xml_text_value(xml_node, "feature_films_count")
     film_clips_count = get_xml_text_value(xml_node, "film_clips_count")
     full_episodes_count = get_xml_text_value(xml_node, "full_episodes_count")
     genre = get_xml_text_value(xml_node, "genre")
     has_hd = get_xml_text_value(xml_node, "has_hd")
     has_plus_living_room = get_xml_text_value(xml_node, "has_plus_living_room")
     has_plus_mobile = get_xml_text_value(xml_node, "has_plus_mobile")
     show_num_id = get_xml_text_value(xml_node, "id")
     include_company_logo = get_xml_text_value(xml_node, "include_company_logo")
     max_season_number = get_xml_text_value(xml_node, "max_season_number")
     min_season_number = get_xml_text_value(xml_node, "min_season_number")
     name = get_xml_text_value(xml_node, "name")
     original_premiere_date = get_xml_text_value(xml_node, "original_premiere_date")
     package_group_id = get_xml_text_value(xml_node, "package_group_id")
     plus_web_videos_count = get_xml_text_value(xml_node, "plus_web_videos_count")
     primary_channel_id = get_xml_text_value(xml_node, "primary_channel_id")
     primary_channel_name = get_xml_text_value(xml_node, "primary_channel_name")
     rating = get_xml_text_value(xml_node, "rating")
     sa_instance_state = get_xml_text_value(xml_node, "sa_instance_state")
     show_id = get_xml_text_value(xml_node, "show_id")
     total_seasons_count = get_xml_text_value(xml_node, "total_seasons_count")
     videos_count = get_xml_text_value(xml_node, "videos_count")
     return cls(availability_notes, canonical_name, clips_count, collation_name, company_canonical_name, company_id, company_name, content_age_group, description, device_id, dp_identifier, episode_clips_count, feature_film_content_id, feature_film_id, feature_films_count, film_clips_count, full_episodes_count, genre, has_hd, has_plus_living_room, has_plus_mobile, show_num_id, include_company_logo, max_season_number, min_season_number, name, original_premiere_date, package_group_id, package_group_id, plus_web_videos_count, primary_channel_id, primary_channel_name, primary_channel_name, rating, sa_instance_state, show_id, total_seasons_count, videos_count)
Esempio n. 4
0
 def from_xml_node(cls, xml_node):
     available_at = get_xml_text_value(xml_node, "available_at")
     categories = get_xml_text_value(xml_node, "categories")
     collation_title = get_xml_text_value(xml_node, "collation_title")
     company_canonical_name = get_xml_text_value(xml_node,
                                                 "company_canonical_name")
     company_id = get_xml_text_value(xml_node, "company_id")
     company_name = get_xml_text_value(xml_node, "company_name")
     composite_available_at = get_xml_text_value(xml_node,
                                                 "composite_available_at")
     composite_expires_at = get_xml_text_value(xml_node,
                                               "composite_expires_at")
     content_id = get_xml_text_value(xml_node, "content_id")
     content_rating = get_xml_text_value(xml_node, "content_rating")
     content_rating_reason = get_xml_text_value(xml_node,
                                                "content_rating_reason")
     video_copyright = get_xml_text_value(xml_node, "copyright")
     cp_id = get_xml_text_value(xml_node, "cp_id")
     cp_identifier = get_xml_text_value(xml_node, "cp_identifier")
     description = get_xml_text_value(xml_node, "description")
     duration = get_xml_text_value(xml_node, "duration")
     eid = get_xml_text_value(xml_node, "eid")
     embed_permitted = get_xml_text_value(xml_node, "embed_permitted")
     episode_number = get_xml_text_value(xml_node, "episode_number")
     expires_at = get_xml_text_value(xml_node, "expires_at")
     has_captions = get_xml_text_value(xml_node, "has_captions")
     has_hd = get_xml_text_value(xml_node, "has_hd")
     has_plus_living_room = get_xml_text_value(xml_node,
                                               "has_plus_living_room")
     has_plus_mobile = get_xml_text_value(xml_node, "has_plus_mobile")
     has_plus_preview = get_xml_text_value(xml_node, "has_plus_preview")
     has_plus_web = get_xml_text_value(xml_node, "has_plus_web")
     video_num_id = get_xml_text_value(xml_node, "video_num_id")
     include_company_logo = get_xml_text_value(xml_node,
                                               "include_company_logo")
     is_plus_web_only = get_xml_text_value(xml_node, "is_plus_web_only")
     language = get_xml_text_value(xml_node, "language")
     media_type = get_xml_text_value(xml_node, "media_type")
     original_premiere_date = get_xml_text_value(xml_node,
                                                 "original_premiere_date")
     package_id = get_xml_text_value(xml_node, "package_id")
     parent_channel_id = get_xml_text_value(xml_node, "parent_channel_id")
     parent_channel_name = get_xml_text_value(xml_node,
                                              "parent_channel_name")
     pid = get_xml_text_value(xml_node, "pid")
     plus_living_room_available_at = get_xml_text_value(
         xml_node, "plus_living_room_available_at")
     plus_living_room_expires_at = get_xml_text_value(
         xml_node, "plus_living_room_expires_at")
     plus_mobile_available_at = get_xml_text_value(
         xml_node, "plus_mobile_available_at")
     plus_mobile_expires_at = get_xml_text_value(xml_node,
                                                 "plus_mobile_expires_at")
     plus_only = get_xml_text_value(xml_node, "plus_only")
     plus_web_available_at = get_xml_text_value(xml_node,
                                                "plus_web_available_at")
     plus_web_expires_at = get_xml_text_value(xml_node,
                                              "plus_web_expires_at")
     positive_votes_count = get_xml_text_value(xml_node,
                                               "positive_votes_count")
     programming_type = get_xml_text_value(xml_node, "programming_type")
     promotional_link = get_xml_text_value(xml_node, "promotional_link")
     promotional_text = get_xml_text_value(xml_node, "promotional_text")
     rating = get_xml_text_value(xml_node, "rating")
     reviews_count = get_xml_text_value(xml_node, "reviews_count")
     season_number = get_xml_text_value(xml_node, "season_number")
     show_canonical_name = get_xml_text_value(xml_node,
                                              "show_canonical_name")
     show_id = get_xml_text_value(xml_node, "show_id")
     show_name = get_xml_text_value(xml_node, "show_name")
     studio = get_xml_text_value(xml_node, "studio")
     thumbnail_url = get_xml_text_value(xml_node, "thumbnail-url")
     thumbnail_url_16x9_large = get_xml_text_value(
         xml_node, "thumbnail_url_16x9_large")
     thumbnail_url_16x9_medium = get_xml_text_value(
         xml_node, "thumbnail_url_16x9_medium")
     thumbnail_url_4x3_medium = get_xml_text_value(
         xml_node, "thumbnail_url_4x3_medium")
     title = get_xml_text_value(xml_node, "title")
     tune_in_information = get_xml_text_value(xml_node,
                                              "tune_in_information")
     video_type = get_xml_text_value(xml_node, "video_type")
     votes_count = get_xml_text_value(xml_node, "votes_count")
     video_id = get_xml_text_value(xml_node, "id")
     return cls(
         available_at, categories, collation_title, company_canonical_name,
         company_id, company_name, composite_available_at,
         composite_expires_at, content_id, content_rating,
         content_rating_reason, video_copyright, cp_id, cp_identifier,
         description, duration, eid, embed_permitted, episode_number,
         expires_at, has_captions, has_hd, has_plus_living_room,
         has_plus_mobile, has_plus_preview, has_plus_web, video_num_id,
         include_company_logo, is_plus_web_only, language, media_type,
         original_premiere_date, package_id, parent_channel_id,
         parent_channel_name, pid, plus_living_room_available_at,
         plus_living_room_expires_at, plus_mobile_available_at,
         plus_mobile_expires_at, plus_only, plus_web_available_at,
         plus_web_expires_at, positive_votes_count, programming_type,
         promotional_link, promotional_text, rating, reviews_count,
         season_number, show_canonical_name, show_id, show_name, studio,
         thumbnail_url_16x9_large, thumbnail_url_16x9_medium,
         thumbnail_url_4x3_medium, title, tune_in_information, video_id,
         video_type, votes_count, thumbnail_url)