Advertisement
seeker_dsr

Untitled

Jun 6th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.35 KB | None | 0 0
  1. Loading production environment (Rails 3.2.22.5)
  2. 2.1.6 :001 > finder = VideoControllerFinder.new(name: 'dvigatel_vnutrennego_sgoraniya').find_container
  3. [47751] [06.06.2018 16:18:29] DEBUG: [Shard: slave1] Project Load (0.6ms) SELECT `tracks`.* FROM `tracks` WHERE `tracks`.`container` = 1 AND `tracks`.`name` = 'dvigatel_vnutrennego_sgoraniya' LIMIT 1
  4. [47751] [06.06.2018 16:18:30] DEBUG: [Shard: slave1] (0.2ms) SELECT COUNT(*) FROM `project_seasons` WHERE `project_seasons`.`project_id` = 658389 AND `project_seasons`.`page_enabled` = 1 AND `project_seasons`.`seo_season` = 0
  5. [47751] [06.06.2018 16:18:30] DEBUG: [Shard: slave1] (0.3ms) SELECT COUNT(*) FROM `project_seasons` WHERE `project_seasons`.`project_id` = 658389
  6. [47751] [06.06.2018 16:18:30] DEBUG: [Shard: slave1] ProjectSeason Load (0.3ms) SELECT `project_seasons`.* FROM `project_seasons` WHERE `project_seasons`.`project_id` = 658389 AND `project_seasons`.`page_enabled` = 1 AND `project_seasons`.`seo_season` = 0 AND (`project_seasons`.`total_tracks_count` > 0) ORDER BY promo, pos desc LIMIT 1
  7. [47751] [06.06.2018 16:18:30] DEBUG: [Shard: slave1] Category Load (0.2ms) SELECT `categories`.* FROM `categories` WHERE `categories`.`id` = 1 LIMIT 1
  8. => #<VideoControllerFinder:0x0000000fa4bac8 @params={:name=>"dvigatel_vnutrennego_sgoraniya"}, @container=#<Project id: 658389, parent_id: nil, container: true, category_id: 1, name: "dvigatel_vnutrennego_sgoraniya", title: "Двигатель внутреннего сгорания", episode: nil, description: "Всем ценителям доброго юмора рекомендуем сериал «Дв...", published: true, views: 0, duration: nil, created_at: "2018-05-23 10:17:05", updated_at: "2018-06-06 12:32:43", modified_at: nil, recommended: false, on_channel_page: false, on_homepage: false, has_new_badge: false, published_at: "2018-06-06 07:23:00", unpublished_at: nil, screenshots_count: 0, channel_id: nil, episodes_type: 0, on_project_page: false, autotitle: "Двигатель внутреннего сгорания", logo_channel_id: nil, main_screenshot_id: nil, hd: false, rating: 0.0, external: 0, season_id: nil, tns: "", not_tracks: "", points: nil, cnt_episode: 5, favorites_count: 0, comments_count: 0, social_exports_count: 0, director: "", year: "2017", genre: nil, grade: 0, open_quotes: false, tns_external_start: "", tns_internal_start: "", download_for_ipad: false, used_space: 0, project_season_id: nil, show_channel_logo: false, monitoring_disabled: false, paid: false, recommended_track_id: nil, credits_point: nil, force_seo_title: nil, tns_ad_external_start: "", tns_ad_internal_start: "", seo_template_id: nil, discrete_series: false, portal_episode: nil, alternative_description: nil, short_description: "", external_id: nil, link_info: nil, for_auth: 0, disabled_embed: nil, disabled_pre_roll: false, disabled_post_roll: false, disabled_mid_roll: false, disabled_pause_roll: false, disabled_overlay: nil, photo_link: "", about_link: "", acter_link: "", acter_title: "", chat_id: 0, disabled_embed_adv: 0, embed_limited: -1, price: nil, day_to_view: nil, max_midrolls: nil, start_time: nil, freq_time: nil, freq_points: nil, skip_adv: nil, cpa: "", disabled_pre_roll_quote: false, disabled_post_roll_quote: false, disabled_mid_roll_quote: false, disabled_pause_roll_quote: false, disabled_overlay_quote: false, disabled_project_title: false, geo_allow_for_region: false, disable_embed_at: nil, enable_embed_at: nil, exceptions_disabled_embed: nil, min_age: 12, country: "Россия", set_tracks_external: false, disabled_pre_pause_roll: false, disabled_pre_pause_roll_quote: false, sharing_url: "", geo_allow_counties: "RU", geo_allow_regions: nil, recent_count: 1, track_seasons_count: 1, pr_number: nil, tv_premiere: nil, show_all_seasons_tab: false, topical: false, watch_from_first_episode_caption: "Смотреть с первой серии", seo_desc: "", published_episodes_count: 0, last_published_at: "2018-06-06 07:23:21", sswidgets_lifetime: nil, hide_track_title: false, show_in_widgets: true, page_enabled: true, seo_h1: "Смотреть онлайн сериал Двигатель внутреннего сгоран...", seo_description: "На Видеоморе вы можете бесплатно смотреть сериал «Д...", seo_title: "Двигатель внутреннего сгорания (Сериал, ) — смотрет...", premiere: 0, premiere_updated_at: nil, tns_internal_start_mobile: "", tns_external_start_mobile: "", tns_advertisement_internal_start_mobile: "", tns_advertisement_external_start_mobile: "", widgetable_episodes_count: 4, ss_text: "", recognize: false, internet_rights: true, show_player_on_project_page: true, show_player_on_season_page: true, orig_title: "", bmsid: "1539271", georestriction_allowed: true, allow_sng: nil, allow_world: nil, videomore_views: 8, video_episodes_count: 4, content_promo_disabled: false, disable_quoting: false, seo_h1_ctc: "Двигатель внутреннего сгорания смотреть онлайн все ...", seo_title_ctc: "Сериал Двигатель внутреннего сгорания смотреть онла...", seo_description_ctc: "сериал «Двигатель внутреннего сгорания» в хорошем к...", about_title_ctc: nil, about_text_1_ctc: nil, about_text_2_ctc: nil, tv_premiere_start: nil, tv_premiere_end: nil, tv_premiere_title: nil, tv_premiere_date: nil, tv_premiere_time: nil, ctc_translit: "dvigatel_vnutrennego_sgoraniya", show_min_age_confirmation: false, force_position: 0, ctc_views: 0, drm_html5_error: "", drm_html5_play_link: "", drm_html5_itunes_link: "", adfox_id: nil, crm_id: "85d7271e-8e5e-e811-9421-005056930b83", license_id: nil, episode_by_contract: nil, file_exchange_track_id: nil, file_exchange_date: nil, topical_position: nil, full_length_film: false, geo_part_id: 3, file_version: 0, proxy_detection: false, last_airing: nil, show_num: nil, language: 0, last_modified_at: "2018-06-06 09:41:46", last_unpublished_at: nil, exported_to_tns: false, last_airing_channel_id: nil, double_click_counter: "", content_roll_point: nil, disabled_content_roll: false, disabled_content_roll_quote: false, special_block_id: nil, tns_vc_version: 0, aggregate_title: nil, seo: false, seo_parent_id: nil, sub_duration_start: nil, sub_duration_end: "2019-09-30 20:59:00", modify_date: nil, nearest_publication: "2018-06-06 07:23:21", nearest_depublication: "2019-09-30 20:59:00", exclude_from_new_tracks_for_ctc: false, external_player_url: nil>, @project_season=#<ProjectSeason id: 39573, pos: 1, title: "Сезон 1", project_id: 658389, created_at: "2018-05-23 10:17:06", updated_at: "2018-06-05 20:00:14", name: nil, season_type: 1, published: true, promo: false, paid: false, description: nil, seo_title: nil, seo_template_id: nil, logo_file_name: nil, year: nil, page_enabled: true, total_tracks_count: 4, seo_h1: nil, seo_description: nil, video_movie: false, seo_h1_ctc: nil, seo_title_ctc: nil, seo_description_ctc: nil, about_text_ctc: nil, seo_season: false, last_modified_at: "2018-05-23 10:17:06", special_block_id: nil>, @category=#<Category id: 1, name: "serials", title: "Сериалы", created_at: "2010-11-19 11:16:16", updated_at: "2018-04-17 11:34:34", prepositional: "сериале", seo_title: "Смотреть онлайн лучшие сериалы, бесплатно на Videom...", seo_description: "На Видеоморе Вы можете бесплатно смотреть сериалы", singularized_title: "Сериал", accusative: "сериал", adfox_name: "serial", ctc_translit: "serials", ctc_title: "Сериалы", ctc_singularized_title: "Сериал", ctc_seo_text: "<div style=\"text-align: justify;\">Лирические, смешн...", partners_projects_division: "serials", banner_id: "115", genitive: "сериала", ablative: "сериалом">>
  9. 2.1.6 :002 > track = finder.project_season.last_episode
  10. [47751] [06.06.2018 16:18:35] DEBUG: [Shard: slave1] Track Load (1.4ms) SELECT `tracks`.* FROM `tracks` WHERE `tracks`.`project_season_id` = 39573 AND `tracks`.`seo` = 0 AND `tracks`.`published` = 1 ORDER BY paid ASC, episode desc, published_at desc LIMIT 1
  11. => #<Track id: 662829, parent_id: 658389, container: false, category_id: nil, name: "", title: "", episode: 4, description: "Узнав о том, что Володя Громыко крутит роман с его ...", published: true, views: 0, duration: 2942, created_at: "2018-06-04 10:01:15", updated_at: "2018-06-06 12:25:20", modified_at: nil, recommended: false, on_channel_page: false, on_homepage: false, has_new_badge: false, published_at: "2018-06-05 20:00:00", unpublished_at: nil, screenshots_count: 26, channel_id: nil, episodes_type: nil, on_project_page: false, autotitle: "Двигатель внутреннего сгорания 00000004", logo_channel_id: nil, main_screenshot_id: 18261869, hd: false, rating: 0.0, external: 0, season_id: 35165, tns: nil, not_tracks: nil, points: "446.0;841.0;1462.0;1995.0;2620.0", cnt_episode: nil, favorites_count: 0, comments_count: 0, social_exports_count: 0, director: nil, year: "", genre: nil, grade: 0, open_quotes: false, tns_external_start: nil, tns_internal_start: nil, download_for_ipad: false, used_space: 0, project_season_id: 39573, show_channel_logo: false, monitoring_disabled: false, paid: false, recommended_track_id: nil, credits_point: nil, force_seo_title: nil, tns_ad_external_start: nil, tns_ad_internal_start: nil, seo_template_id: nil, discrete_series: false, portal_episode: 4, alternative_description: "", short_description: nil, external_id: nil, link_info: nil, for_auth: 0, disabled_embed: true, disabled_pre_roll: false, disabled_post_roll: false, disabled_mid_roll: false, disabled_pause_roll: false, disabled_overlay: false, photo_link: nil, about_link: nil, acter_link: nil, acter_title: nil, chat_id: 0, disabled_embed_adv: nil, embed_limited: -1, price: nil, day_to_view: nil, max_midrolls: nil, start_time: nil, freq_time: nil, freq_points: nil, skip_adv: nil, cpa: nil, disabled_pre_roll_quote: false, disabled_post_roll_quote: false, disabled_mid_roll_quote: false, disabled_pause_roll_quote: false, disabled_overlay_quote: false, disabled_project_title: false, geo_allow_for_region: false, disable_embed_at: nil, enable_embed_at: nil, exceptions_disabled_embed: "domashniy.ru", min_age: 12, country: "Россия", set_tracks_external: false, disabled_pre_pause_roll: false, disabled_pre_pause_roll_quote: false, sharing_url: nil, geo_allow_counties: nil, geo_allow_regions: nil, recent_count: 0, track_seasons_count: 0, pr_number: nil, tv_premiere: nil, show_all_seasons_tab: false, topical: false, watch_from_first_episode_caption: nil, seo_desc: nil, published_episodes_count: 0, last_published_at: "2018-06-05 20:00:00", sswidgets_lifetime: nil, hide_track_title: false, show_in_widgets: true, page_enabled: true, seo_h1: "Смотреть онлайн сериал", seo_description: "На Видеоморе вы можете бесплатно смотреть 1 сезон ...", seo_title: "Двигатель внутреннего сгорания - 1 сезон, 4 (Сериал...", premiere: 0, premiere_updated_at: nil, tns_internal_start_mobile: nil, tns_external_start_mobile: nil, tns_advertisement_internal_start_mobile: nil, tns_advertisement_external_start_mobile: nil, widgetable_episodes_count: nil, ss_text: nil, recognize: false, internet_rights: false, show_player_on_project_page: false, show_player_on_season_page: false, orig_title: nil, bmsid: nil, georestriction_allowed: true, allow_sng: nil, allow_world: nil, videomore_views: 0, video_episodes_count: 0, content_promo_disabled: false, disable_quoting: false, seo_h1_ctc: "Сериал Двигатель внутреннего сгорания 1 сезон 4 см...", seo_title_ctc: "Двигатель внутреннего сгорания 1 сезон 4 серия смо...", seo_description_ctc: "Сериал Двигатель внутреннего сгорания 4 в хороше...", about_title_ctc: nil, about_text_1_ctc: nil, about_text_2_ctc: nil, tv_premiere_start: nil, tv_premiere_end: nil, tv_premiere_title: nil, tv_premiere_date: nil, tv_premiere_time: nil, ctc_translit: nil, show_min_age_confirmation: false, force_position: 0, ctc_views: 0, drm_html5_error: nil, drm_html5_play_link: nil, drm_html5_itunes_link: nil, adfox_id: nil, crm_id: nil, license_id: nil, episode_by_contract: nil, file_exchange_track_id: nil, file_exchange_date: nil, topical_position: nil, full_length_film: false, geo_part_id: nil, file_version: 0, proxy_detection: false, last_airing: nil, show_num: nil, language: 0, last_modified_at: "2018-06-05 10:55:32", last_unpublished_at: "2018-06-05 20:00:13", exported_to_tns: false, last_airing_channel_id: nil, double_click_counter: nil, content_roll_point: nil, disabled_content_roll: false, disabled_content_roll_quote: false, special_block_id: nil, tns_vc_version: 0, aggregate_title: "Двигатель внутреннего сгорания. Сезон 1. 4", seo: false, seo_parent_id: nil, sub_duration_start: nil, sub_duration_end: nil, modify_date: "2018-06-06 12:25:20", nearest_publication: "2018-06-05 20:00:00", nearest_depublication: "2019-09-29 20:59:00", exclude_from_new_tracks_for_ctc: false, external_player_url: "">
  12. 2.1.6 :003 > next_episode = track.neighbour_episode(:next)
  13. NoMethodError: private method `neighbour_episode' called for #<Track:0x0000000dde2da0>
  14. from /home/videomore/shared/bundle/ruby/2.1.0/gems/activemodel-3.2.22.5/lib/active_model/attribute_methods.rb:404:in `method_missing'
  15. from /home/videomore/shared/bundle/ruby/2.1.0/gems/activerecord-3.2.22.5/lib/active_record/attribute_methods.rb:149:in `method_missing'
  16. from (irb):3
  17. from /home/videomore/shared/bundle/ruby/2.1.0/gems/railties-3.2.22.5/lib/rails/commands/console.rb:47:in `start'
  18. from /home/videomore/shared/bundle/ruby/2.1.0/gems/railties-3.2.22.5/lib/rails/commands/console.rb:8:in `start'
  19. from /home/videomore/shared/bundle/ruby/2.1.0/gems/railties-3.2.22.5/lib/rails/commands.rb:41:in `<top (required)>'
  20. from script/rails:6:in `require'
  21. from script/rails:6:in `<main>'
  22. 2.1.6 :004 > next_episode.parent.published_at
  23. NoMethodError: undefined method `parent' for nil:NilClass
  24. from (irb):4
  25. from /home/videomore/shared/bundle/ruby/2.1.0/gems/railties-3.2.22.5/lib/rails/commands/console.rb:47:in `start'
  26. from /home/videomore/shared/bundle/ruby/2.1.0/gems/railties-3.2.22.5/lib/rails/commands/console.rb:8:in `start'
  27. from /home/videomore/shared/bundle/ruby/2.1.0/gems/railties-3.2.22.5/lib/rails/commands.rb:41:in `<top (required)>'
  28. from script/rails:6:in `require'
  29. from script/rails:6:in `<main>'
  30. 2.1.6 :005 >
  31. 2.1.6 :006 > prev_episode = track.neighbour_episode(:previous)
  32. NoMethodError: private method `neighbour_episode' called for #<Track:0x0000000dde2da0>
  33. from /home/videomore/shared/bundle/ruby/2.1.0/gems/activemodel-3.2.22.5/lib/active_model/attribute_methods.rb:404:in `method_missing'
  34. from /home/videomore/shared/bundle/ruby/2.1.0/gems/activerecord-3.2.22.5/lib/active_record/attribute_methods.rb:149:in `method_missing'
  35. from (irb):6
  36. from /home/videomore/shared/bundle/ruby/2.1.0/gems/railties-3.2.22.5/lib/rails/commands/console.rb:47:in `start'
  37. from /home/videomore/shared/bundle/ruby/2.1.0/gems/railties-3.2.22.5/lib/rails/commands/console.rb:8:in `start'
  38. from /home/videomore/shared/bundle/ruby/2.1.0/gems/railties-3.2.22.5/lib/rails/commands.rb:41:in `<top (required)>'
  39. from script/rails:6:in `require'
  40. from script/rails:6:in `<main>'
  41. 2.1.6 :007 > next_episode.parent.published_at
  42. NoMethodError: undefined method `parent' for nil:NilClass
  43. from (irb):7
  44. from /home/videomore/shared/bundle/ruby/2.1.0/gems/railties-3.2.22.5/lib/rails/commands/console.rb:47:in `start'
  45. from /home/videomore/shared/bundle/ruby/2.1.0/gems/railties-3.2.22.5/lib/rails/commands/console.rb:8:in `start'
  46. from /home/videomore/shared/bundle/ruby/2.1.0/gems/railties-3.2.22.5/lib/rails/commands.rb:41:in `<top (required)>'
  47. from script/rails:6:in `require'
  48. from script/rails:6:in `<main>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement