diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 0af1a9c..490d3cb 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -1407,9 +1407,6 @@ function parseURI(URL, requireProto = false) { } rest.forEach(urlPiece => { - if (urlPiece && urlPiece.includes(' ')) { - console.error('URL can not include a space'); - } }); const includesChannel = streamNameOrChannelName.startsWith('@'); @@ -3143,7 +3140,10 @@ function doResolveUris(uris, returnCachedClaims = false) { const resolveInfo = {}; - return lbryProxy.resolve(_extends$5({ urls: urisToResolve }, options)).then(result => { + return lbryProxy.resolve(_extends$5({ + urls: urisToResolve, + new_sdk_server: 'http://sdk.lbry.tech:5279/api' + }, options)).then(result => { Object.entries(result).forEach(([uri, uriResolveInfo]) => { const fallbackResolveInfo = { stream: null, @@ -3379,7 +3379,8 @@ function doFetchClaimsByChannel(uri, page = 1) { page: page || 1, order_by: ['release_time'], include_is_my_output: true, - include_purchase_receipt: true + include_purchase_receipt: true, + new_sdk_server: 'http://sdk.lbry.tech:5279/api' }).then(result => { const { items: claims, total_items: claimsInChannel, page: returnedPage } = result; @@ -3610,6 +3611,7 @@ function doClaimSearch(options = { }; lbryProxy.claim_search(_extends$5({}, options, { + new_sdk_server: 'http://sdk.lbry.tech:5279/api', include_purchase_receipt: true })).then(success, failure); }; diff --git a/src/lbryURI.js b/src/lbryURI.js index 9b871d7..35e83ea 100644 --- a/src/lbryURI.js +++ b/src/lbryURI.js @@ -74,7 +74,7 @@ export function parseURI(URL: string, requireProto: boolean = false): LbryUrlObj } rest.forEach(urlPiece => { - if (urlPiece && urlPiece.includes(' ')) { + if (!isProduction && urlPiece && urlPiece.includes(' ')) { console.error('URL can not include a space'); } }); diff --git a/src/redux/actions/claims.js b/src/redux/actions/claims.js index d74cb32..df35f75 100644 --- a/src/redux/actions/claims.js +++ b/src/redux/actions/claims.js @@ -57,7 +57,11 @@ export function doResolveUris(uris: Array, returnCachedClaims: boolean = }, } = {}; - return Lbry.resolve({ urls: urisToResolve, ...options }).then((result: ResolveResponse) => { + return Lbry.resolve({ + urls: urisToResolve, + new_sdk_server: 'http://sdk.lbry.tech:5279/api', + ...options, + }).then((result: ResolveResponse) => { Object.entries(result).forEach(([uri, uriResolveInfo]) => { const fallbackResolveInfo = { stream: null, @@ -323,6 +327,7 @@ export function doFetchClaimsByChannel(uri: string, page: number = 1) { order_by: ['release_time'], include_is_my_output: true, include_purchase_receipt: true, + new_sdk_server: 'http://sdk.lbry.tech:5279/api', }).then((result: ClaimSearchResponse) => { const { items: claims, total_items: claimsInChannel, page: returnedPage } = result; @@ -589,6 +594,7 @@ export function doClaimSearch( Lbry.claim_search({ ...options, + new_sdk_server: 'http://sdk.lbry.tech:5279/api', include_purchase_receipt: true, }).then(success, failure); };