From ea171efac9b5d4a97cd59d316996c9559b264f79 Mon Sep 17 00:00:00 2001 From: garret1317 Date: Sun, 22 Jun 2025 01:03:12 +0100 Subject: test script: move import --- misc/test_extractors.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/test_extractors.py b/misc/test_extractors.py index 7cc681d..4ae5313 100755 --- a/misc/test_extractors.py +++ b/misc/test_extractors.py @@ -15,8 +15,6 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.insert(0, "/home/g/Downloads/yt-dlp/") # TODO: un-hardcode. has to be the source/git repo because pip doesnt carry the tests from yt_dlp_plugins.extractor import radiko_time as rtime -from yt_dlp_plugins.extractor.radiko import RadikoTimeFreeIE - MON, TUE, WED, THU, FRI, SAT, SUN = range(7) weekdays = {0: "MON", 1: "TUE", 2: "WED", 3: "THU", 4: "FRI", 5: "SAT", 6: "SUN"} @@ -44,9 +42,12 @@ def get_test_timefields(airtime, release_time): +from yt_dlp_plugins.extractor.radiko import RadikoTimeFreeIE RadikoTimeFreeIE._TESTS = [] + + # TOKYO MOON - interfm - EVERY FRI 2300 airtime, release_time = get_latest_airtimes(now, FRI, 23, 0, datetime.timedelta(hours=1)) RadikoTimeFreeIE._TESTS.append({ -- cgit v1.2.3-70-g09d2