Example #1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $import = new ImportvideoController();
     $import->find_and_delete_video_disable();
     $import->send_mail_to_me_with_content("Hoàn thành xong find_and_delete_video_disable");
     $import->find_duplicate_row_and_delete();
     $import->send_mail_to_me_with_content("Hoàn thành xong find_duplicate_row_and_delete");
 }
Example #2
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $import = new ImportvideoController();
     $tag = ["Khoa học", "Công nghệ", "Khoa học và công nghệ", "Tin thế giới", "Thế giới tự nhiên", "Thế giới động vật", "trường giang", "hài trường giang", "Hoài Linh", "Hài Hoài Linh", "Nhã Phương", "Ơn trời cậu đây rồi", "Ơn giời cậu đây rồi", "thách thức danh hài", "Cười xuyên việt", "Gặp nhau cuối tuần", "Hỏi xoáy đáp xoay", "phim hoạt hình", "hoạt hình", "hãy đợi đấy", "dragon ball", "Doraemon", "Đô rê mon", "mickey", "guitar solo", "nhạc xuân", "nhạc đám cưới", "nhạc cưới", "dưa leo", "DIY do it yourself", "how does it made", "Vũ trụ", "trailer", "Nguyễn Hoàng Khắc Hiếu", "review sản phẩm", "engvid"];
     $tag = ["engvid"];
     // Mỗi từ khóa sẽ lấy 100 video
     $import->video_per_result = 40;
     $data_import = $tag;
     $keywords = implode(",", $data_import);
     $import->auto_get_video($keywords);
     $import->send_mail_to_me_with_content("\n            <h2>Hoàn thành xong auto_get_video</h2> " . PHP_EOL . "\n            <p>Keywords: " . $keywords . "</p>" . PHP_EOL . "\n            <p>Tổng cộng: " . $import->var_log_count_import . " video</p>\n        ");
 }
Example #3
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     ImportvideoController::cron_tab();
 }