From c6d59906297f71a5e8fe3a600d291dd838db3142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Tue, 16 Apr 2019 16:51:43 -0500 Subject: [PATCH] Removed random YT reward and added notes --- lib/thirdparty/LBRY.class.php | 5 +++++ view/template/acquisition/youtube_status.php | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/thirdparty/LBRY.class.php b/lib/thirdparty/LBRY.class.php index 3a80394d..1df5d1c0 100644 --- a/lib/thirdparty/LBRY.class.php +++ b/lib/thirdparty/LBRY.class.php @@ -53,7 +53,12 @@ class LBRY public static function connectYoutube($channel_name) { $type = 'sync'; + + // Uncomment next line for production and comment other return return Curl::post(static::getApiUrl('/yt/new'), ['desired_lbry_channel_name' => $channel_name, 'type' => $type], ['json_response' => true]); + + // Uncomment next line for development and comment other return (this also requires the testnet API) + // return Curl::post(static::getApiUrl('/yt/new'), ['desired_lbry_channel_name' => $channel_name, 'type' => $type, 'return_url' => 'http://localhost:8000/youtube/status/'], ['json_response' => true]); } // Check the sync status diff --git a/view/template/acquisition/youtube_status.php b/view/template/acquisition/youtube_status.php index 72614dcb..5fae46af 100644 --- a/view/template/acquisition/youtube_status.php +++ b/view/template/acquisition/youtube_status.php @@ -41,11 +41,6 @@

-
- -