diff --git a/lib/svtplay_dl/tests/test_http.py b/lib/svtplay_dl/tests/test_http.py index 7216083..17f2a0e 100644 --- a/lib/svtplay_dl/tests/test_http.py +++ b/lib/svtplay_dl/tests/test_http.py @@ -21,5 +21,7 @@ class HttpTest(unittest.TestCase): {"srcurl": "http://example.com/bar", "segment": "foo.ts", "expected": "http://example.com/foo.ts"}, # with query parameters {"srcurl": "http://example.com/bar?baz=qux", "segment": "foo.ts", "expected": "http://example.com/foo.ts"}, + # with segment with slash + {"srcurl": "http://example.com/bar", "segment": "/test", "expected": "http://example.com/test"}, ]: assert get_full_url(test["segment"], test["srcurl"]) == test["expected"]