added one more condition

x.endswith('/')  while filtering because otherwise it's picking files
that are not movie page..