fixes
This commit is contained in:
@@ -33,3 +33,20 @@ def test_parse_propfind_response_filters_video_files():
|
||||
WebDavFile("https://host/webdav/recordings/stream.flv", "stream.flv", 123, None)
|
||||
]
|
||||
|
||||
|
||||
def test_parse_propfind_response_preserves_encoded_chinese_filename():
|
||||
xml = """<?xml version="1.0"?>
|
||||
<D:multistatus xmlns:D="DAV:">
|
||||
<D:response>
|
||||
<D:href>/Hirumi/hirumi-2-06%E6%9C%8801%E6%97%A501%E6%97%B602%E5%88%8641%E7%A7%92.flv</D:href>
|
||||
<D:propstat><D:prop><D:getcontentlength>123</D:getcontentlength></D:prop></D:propstat>
|
||||
</D:response>
|
||||
</D:multistatus>"""
|
||||
assert parse_propfind_response(xml, "http://recording.home.arpa/Hirumi") == [
|
||||
WebDavFile(
|
||||
"http://recording.home.arpa/Hirumi/hirumi-2-06%E6%9C%8801%E6%97%A501%E6%97%B602%E5%88%8641%E7%A7%92.flv",
|
||||
"hirumi-2-06月01日01时02分41秒.flv",
|
||||
123,
|
||||
None,
|
||||
)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user