From 438be9af2fad7ce1306a77663117dfb83e5ff36c Mon Sep 17 00:00:00 2001 From: jessop Date: Tue, 18 Dec 2018 18:17:29 -0500 Subject: [PATCH] disables lbrynet fallback for extensions --- server/utils/getClaimData.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/utils/getClaimData.js b/server/utils/getClaimData.js index 5e26aad4..2e270d20 100644 --- a/server/utils/getClaimData.js +++ b/server/utils/getClaimData.js @@ -6,7 +6,6 @@ module.exports = async (data) => { // TODO: Refactor getching the channel name out; requires invasive changes. const certificateId = data.publisher_id || data.certificateId; const lbrynetUri = `${data.name}#${data.claim_id}`; - let channelName = data.channelName; if (certificateId && !channelName) { @@ -20,10 +19,11 @@ module.exports = async (data) => { let lbrynetClaimResult = null; let lbrynetFileExt = null; - if (!data.fileExt) { - lbrynetClaimResult = await getClaim(lbrynetUri).catch(() => { return 'invalid URI' }); - lbrynetFileExt = lbrynetClaimResult && lbrynetClaimResult.file_name && lbrynetClaimResult.file_name.split('.').slice(-1).pop(); - } + + // if (!data.fileExt) { + // lbrynetClaimResult = await getClaim(lbrynetUri).catch(() => { return 'invalid URI' }); + // lbrynetFileExt = lbrynetClaimResult && lbrynetClaimResult.file_name && lbrynetClaimResult.file_name.split('.').slice(-1).pop(); + // } // TODO verify that "generated_x" does anything at all return ({ -- 2.45.3