diff --git a/src/librssguard-standard/src/parsers/atomparser.cpp b/src/librssguard-standard/src/parsers/atomparser.cpp index c5f852841..2dae7494a 100644 --- a/src/librssguard-standard/src/parsers/atomparser.cpp +++ b/src/librssguard-standard/src/parsers/atomparser.cpp @@ -219,6 +219,12 @@ QList AtomParser::discoverFeeds(ServiceRoot* root, const QUrl& ur QString youtube_channel_id = QRegularExpression(QSL("\"externalChannelId\": ?\"([^\"]+)\"")).match(direct_html_data).captured(1); + if (youtube_channel_id.isEmpty()) { + // Try to get channel ID differently. + youtube_channel_id = + QRegularExpression(QSL("{\"key\":\"browse_id\",\"value\":\"([^\"]+)\"}")).match(direct_html_data).captured(1); + } + if (!youtube_channel_id.isEmpty()) { my_url = QSL("https://www.youtube.com/feeds/videos.xml?channel_id=%1").arg(youtube_channel_id); res = NetworkFactory::performNetworkOperation(my_url,