mirror of
https://github.com/yattee/yattee.git
synced 2025-10-15 03:48:11 +00:00
Fix parsing playlist urls (with list parameter)
This commit is contained in:
@@ -39,7 +39,10 @@ struct URLParser {
|
||||
if hasAnyOfPrefixes(path, ["popular"]) { return .popular }
|
||||
if hasAnyOfPrefixes(path, ["trending"]) { return .trending }
|
||||
|
||||
if hasAnyOfPrefixes(path, Self.prefixes[.playlist]!) || queryItemValue("v") == "playlist" {
|
||||
if hasAnyOfPrefixes(path, Self.prefixes[.playlist]!) ||
|
||||
queryItemValue("v") == "playlist" ||
|
||||
!(queryItemValue("list")?.isEmpty ?? false)
|
||||
{
|
||||
return .playlist
|
||||
}
|
||||
if hasAnyOfPrefixes(path, Self.prefixes[.channel]!) {
|
||||
|
Reference in New Issue
Block a user