mirror of
https://github.com/rclone/rclone.git
synced 2025-10-06 05:47:10 +02:00
Before this change, rclone would unnecessarily retry downloads when the `Link.Expire` field was unreliable but the download URL contained a valid expire query parameter. This primarily affects cases where media links are unavailable or when `no_media_link` is enabled. The `Link.Valid()` method now primarily checks the URL's expire query parameter (as Unix timestamp) and falls back to the Expire field only when URL parsing fails. This eliminates the `error no link` retry loops while maintaining backward compatibility. Signed-off-by: Youfu Zhang <zhangyoufu@gmail.com>