mirror of
https://github.com/yuliskov/SmartTube.git
synced 2025-05-17 11:25:54 +08:00
Merge branch 'master' of https://github.com/cero1988/SmartTube
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user