Merge pull request #844 from jessopb/disableGet
disables lbrynet fallback for extensions
This commit is contained in:
commit
f5a285af71
1 changed files with 5 additions and 5 deletions
|
@ -6,7 +6,6 @@ module.exports = async (data) => {
|
||||||
// TODO: Refactor getching the channel name out; requires invasive changes.
|
// TODO: Refactor getching the channel name out; requires invasive changes.
|
||||||
const certificateId = data.publisher_id || data.certificateId;
|
const certificateId = data.publisher_id || data.certificateId;
|
||||||
const lbrynetUri = `${data.name}#${data.claim_id}`;
|
const lbrynetUri = `${data.name}#${data.claim_id}`;
|
||||||
|
|
||||||
let channelName = data.channelName;
|
let channelName = data.channelName;
|
||||||
|
|
||||||
if (certificateId && !channelName) {
|
if (certificateId && !channelName) {
|
||||||
|
@ -20,10 +19,11 @@ module.exports = async (data) => {
|
||||||
|
|
||||||
let lbrynetClaimResult = null;
|
let lbrynetClaimResult = null;
|
||||||
let lbrynetFileExt = null;
|
let lbrynetFileExt = null;
|
||||||
if (!data.fileExt) {
|
|
||||||
lbrynetClaimResult = await getClaim(lbrynetUri).catch(() => { return 'invalid URI' });
|
// if (!data.fileExt) {
|
||||||
lbrynetFileExt = lbrynetClaimResult && lbrynetClaimResult.file_name && lbrynetClaimResult.file_name.split('.').slice(-1).pop();
|
// 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
|
// TODO verify that "generated_x" does anything at all
|
||||||
return ({
|
return ({
|
||||||
|
|
Loading…
Reference in a new issue