commits
tags
#pragma once
#include <cstdint>
#include <optional>
#include <string>
#include "torlinkc/sources/types.hpp"
namespace torlinkc {
// 1337x.to via HTML scraping, with mirror-host fallback. Ported from
// sources/x1337.ts.
Source x1337MoviesSource();
Source x1337TvSource();
// Exposed for testing: parses 1337x's detail-page "Date uploaded" format
// (e.g. "Jun. 26th '26") into unix seconds.
std::optional<std::int64_t> parseUploadDate(const std::string& html);
} // namespace torlinkc