1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-05-28 10:19:50 +08:00
Commit Graph

5 Commits

  • Fix imports and general cleanup
    · Import from compat what comes from compat. Yes, some names are available in utils too, but that's an implementation detail.
    · Use _match_id consistently whenever possible
    · Fix some outdated tests
    · Use consistent valid URL (always match the whole protocol, no ^ at start required)
    · Use modern test definitions
  • [5min] Remove helper method and modernize
    Previously, other extractor would go call a private(!) helper method. Instead, just hardcode the 5min:video_id format - it's not if that would ever change.
  • Move playlist tests to extractors.
    From now on, test_download will run these tests. That means we benefit not only from the networking setup in there, but also from the other tests (for example test_all_urls to find problems with _VALID_URLs).