jherng commited on
Commit
7fd2e4c
1 Parent(s): 6f9cbea

Update xd-violence.py

Browse files
Files changed (1) hide show
  1. xd-violence.py +2 -2
xd-violence.py CHANGED
@@ -168,7 +168,7 @@ class XDViolence(datasets.GeneratorBasedBuilder):
168
  )["id"]
169
  .apply(
170
  lambda x: urllib.parse.quote(
171
- urllib.parse.urljoin(_URL, f"video/{x}.mp4"), safe=":/"
172
  )
173
  )
174
  .to_list(),
@@ -181,7 +181,7 @@ class XDViolence(datasets.GeneratorBasedBuilder):
181
  )["id"]
182
  .apply(
183
  lambda x: urllib.parse.quote(
184
- urllib.parse.urljoin(_URL, f"video/test_videos/{x}.mp4"),
185
  safe=":/",
186
  )
187
  )
 
168
  )["id"]
169
  .apply(
170
  lambda x: urllib.parse.quote(
171
+ urllib.parse.urljoin(_URL, f"video/{x.split('.mp4')[0]}.mp4"), safe=":/"
172
  )
173
  )
174
  .to_list(),
 
181
  )["id"]
182
  .apply(
183
  lambda x: urllib.parse.quote(
184
+ urllib.parse.urljoin(_URL, f"video/test_videos/{x.split('.mp4')[0]}.mp4"),
185
  safe=":/",
186
  )
187
  )