martignoni / hugo-video

A Hugo theme component to embed videos using HTML video element
GNU General Public License v3.0
105 stars 27 forks source link

File with unsupported extension displays a video with no content #5

Closed martignoni closed 4 years ago

martignoni commented 4 years ago

Steps to reproduce and actual result

  1. Copy single file dummyvideo.txt(not a real video) in the bundle of the post. Do not place any other ressource file in the bundle (other that index.md).
  2. Call the shortcode with {{< video src="dummyvideo" >}}.
  3. Observe that a shortcode breaks badly.

Expected result

No video is displayed or, alternatively, an error with adequate message is displayed.

martignoni commented 4 years ago

The above steps do also raise issue #4, which should be fixed too for a complete solution.

martignoni commented 4 years ago

Tested. Closing.