Don't limit possible YouTube video duration.

Fixes #24167.
This commit is contained in:
John Preston 2022-03-16 19:16:17 +04:00
parent db6a9b0354
commit e599c829e5

View file

@ -75,7 +75,7 @@ TimeId DurationForTimestampLinks(not_null<WebPageData*> webpage) {
} else if (webpage->duration > 0) {
return webpage->duration;
}
constexpr auto kMaxYouTubeTimestampDuration = 10 * 60 * TimeId(60);
constexpr auto kMaxYouTubeTimestampDuration = 100 * 60 * TimeId(60);
return kMaxYouTubeTimestampDuration;
}