aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/yt_dlp_plugins/extractor/radiko.py
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2023-10-24 11:43:25 +0100
committergarret <garret@airmail.cc>2023-10-24 11:43:25 +0100
commitdbb39fb282f29b6f5750eecda2cbc2d74ed6826a (patch)
tree486d7554d5561ac6e6eb0c11b8f4abe776e0b3dd /yt_dlp_plugins/extractor/radiko.py
parentc2b0082ab507b06612b7138a47467b0e09a3daed (diff)
downloadyt-dlp-rajiko-dbb39fb282f29b6f5750eecda2cbc2d74ed6826a.tar.gz
yt-dlp-rajiko-dbb39fb282f29b6f5750eecda2cbc2d74ed6826a.tar.bz2
yt-dlp-rajiko-dbb39fb282f29b6f5750eecda2cbc2d74ed6826a.zip
print generated gps coords for debugging
Diffstat (limited to 'yt_dlp_plugins/extractor/radiko.py')
-rw-r--r--yt_dlp_plugins/extractor/radiko.py4
1 files changed, 3 insertions, 1 deletions
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()))