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 @@
-