This commit is contained in:
Yuriy Liskov
2025-05-11 10:14:02 +03:00

View File

@ -135,8 +135,8 @@ public class IntentExtractor {
// https://www.youtube.com/@IngaMezerya or https://youtu.be/builditbasement
String lastPathSegment = url.getLastPathSegment();
if (Helpers.endsWithAny(url.toString(), lastPathSegment)) { // Exclude this case: https://www.youtube.com/watch?v=LxiZ7BFWQSQ
channelId = Helpers.startsWith(lastPathSegment, "@") ? lastPathSegment : "@" + lastPathSegment;
if (lastPathSegment != null && lastPathSegment.startsWith("@")) {
channelId = lastPathSegment;
}
}