From dbb39fb282f29b6f5750eecda2cbc2d74ed6826a Mon Sep 17 00:00:00 2001 From: garret Date: Tue, 24 Oct 2023 11:43:25 +0100 Subject: print generated gps coords for debugging --- yt_dlp_plugins/extractor/radiko.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'yt_dlp_plugins/extractor') diff --git a/yt_dlp_plugins/extractor/radiko.py b/yt_dlp_plugins/extractor/radiko.py index a67a06f..b889151 100644 --- a/yt_dlp_plugins/extractor/radiko.py +++ b/yt_dlp_plugins/extractor/radiko.py @@ -413,7 +413,9 @@ class _RadikoBaseIE(InfoExtractor): # +/- 0 ~ 0.025 --> 0 ~ 1.5' -> +/- 0 ~ 2.77/2.13km lat = lat + random.random() / 40.0 * (random.choice([1, -1])) long = long + random.random() / 40.0 * (random.choice([1, -1])) - return f"{round(lat, 6)},{round(long, 6)},gps" + coords = f"{round(lat, 6)},{round(long, 6)},gps" + self.write_debug(coords) + return coords def _generate_random_info(self): version_key = random.choice(list(self._ANDROID_VERSIONS.keys())) -- cgit v1.2.3-70-g09d2