[ytdl] fix crash due to --geo-bypass deprecation (#3975)

This commit is contained in:
Mike Fährmann
2023-04-29 17:25:38 +02:00
parent 0fb580135d
commit 61a65d5bb9
2 changed files with 16 additions and 3 deletions

View File

@@ -269,6 +269,16 @@ class Test_CommandlineArguments_YtDlp(Test_CommandlineArguments):
"title:%(artist)s - %(title)s")],
})
def test_geo_bypass(self):
self._("--geo-bypass",
"geo_bypass", "default")
self._("--no-geo-bypass",
"geo_bypass", "never")
self._(["--geo-bypass-country", "EN"],
"geo_bypass", "EN")
self._(["--geo-bypass-ip-block", "198.51.100.14/24"],
"geo_bypass", "198.51.100.14/24")
if __name__ == "__main__":
unittest.main(warnings="ignore")