Use ':' as separator for LBRY.TV sharing links (#1169)

This commit is contained in:
Javi Rueda 2021-03-15 16:22:18 +01:00 committed by GitHub
parent a655d0112b
commit 9ac216504d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -223,7 +223,10 @@ public class LbryUri {
String secondaryClaimId = !Helper.isNullOrEmpty(secondaryClaimName) ? streamClaimId : null; String secondaryClaimId = !Helper.isNullOrEmpty(secondaryClaimName) ? streamClaimId : null;
if (!Helper.isNullOrEmpty(primaryClaimId)) { if (!Helper.isNullOrEmpty(primaryClaimId)) {
sb.append('#').append(primaryClaimId); if (protocol.equals(LBRY_TV_BASE_URL))
sb.append(':').append(primaryClaimId);
else
sb.append('#').append(primaryClaimId);
} else if (primaryClaimSequence > 0) { } else if (primaryClaimSequence > 0) {
sb.append(':').append(primaryClaimSequence); sb.append(':').append(primaryClaimSequence);
} else if (primaryBidPosition > 0) { } else if (primaryBidPosition > 0) {
@ -235,7 +238,10 @@ public class LbryUri {
} }
if (!Helper.isNullOrEmpty(secondaryClaimId)) { if (!Helper.isNullOrEmpty(secondaryClaimId)) {
sb.append('#').append(secondaryClaimId); if (protocol.equals(LBRY_TV_BASE_URL))
sb.append(':').append(secondaryClaimId);
else
sb.append('#').append(secondaryClaimId);
} else if (secondaryClaimSequence > 0) { } else if (secondaryClaimSequence > 0) {
sb.append(':').append(secondaryClaimSequence); sb.append(':').append(secondaryClaimSequence);
} else if (secondaryBidPosition > 0) { } else if (secondaryBidPosition > 0) {