You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common/src/main/java/com/liskovsoft/smartyoutubetv2/common/utils/IntentExtractor.java
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ public class IntentExtractor {
28
28
* https://youtube.com/channel/BLABLA/video
29
29
*/
30
30
privatestaticfinalStringCHANNEL_KEY = "channel";
31
+
privatestaticfinalStringUSER_KEY = "user";
31
32
privatestaticfinalStringCHANNEL_ALT_KEY = "c";
32
33
privatestaticfinalStringUSER_URL = "/user/";
33
34
privatestaticfinalStringSUBSCRIPTIONS_URL = "https://www.youtube.com/tv#/zylon-surface?c=FEsubscriptions"; // last 'resume' param isn't parsed by intent and should be removed
@@ -131,6 +132,11 @@ public static String extractChannelId(Intent intent) {
131
132
// https://www.youtube.com/c/IngaMezerya
132
133
channelId = parser.get(CHANNEL_ALT_KEY);
133
134
135
+
if (channelId == null) {
136
+
// https://youtube.com/user/RVLucius
137
+
channelId = parser.get(USER_KEY);
138
+
}
139
+
134
140
if (channelId != null) {
135
141
channelId = "@" + channelId; // add the prefix to quickly distinguish later
0 commit comments