fluminus_cli icon indicating copy to clipboard operation
fluminus_cli copied to clipboard

[External Multimedia] no support for panopto folder hierarchy

Open otakenz opened this issue 4 years ago • 6 comments

System: WSL2 Ubuntu 20.04 Issue: Unable to download multimedia content [see pictures below] Expected: Multimedia are downloaded to /tmp/fluminus/<module_code>/Multimedia Outcome: Multimedia folder are created but no multimedia are downloaded [see picture below] Command: mix fluminus --download-to=/tmp/fluminus --multimedia --external-multimedia --lessons --webcasts

Issue: image image image

Outcome: image

otakenz avatar Aug 21 '20 09:08 otakenz

Hi @otakenz, this is what I call "external multimedia". Could you try passing in --external-multimedia and see if the files are downloaded?

indocomsoft avatar Aug 22 '20 03:08 indocomsoft

yes, i did passed in --external-multimedia (forgot to mention), in fact i also tried passing in all available --download-to tags

Observation on the CS3237(which uses external multimedia): With --external-multimedia;

  • A directory called "Multimedia" is successfully created within /tmp/fluminus/CS3237
  • A directory called "CS3237 Lecture" is successfully created within /tmp/fluminus/CS3237/Multimedia
  • However, no downloaded media was found inside /tmp/fluminus/CS3237/Multimedia/CS3237 Lectures

Without --external-multimedia;

  • No directory called "Multimedia" is created within /tmp/fluminus/CS3237

Expected outcome: With --external-multimedia;

  • A directory called "Multimedia" is successfully created within /tmp/fluminus/CS3237
  • A directory called "CS3237 Lecture" is successfully created within /tmp/fluminus/CS3237/Multimedia
  • Two more folders called "Lecture 1 - IoT landscape" and "Lecture 2 - Statistical Model" is successfully created within /tmp/fluminus/CS3237/Multimedia/CS3237 Lectures with videos created within them respectively.

Without --external-multimedia;

  • No directory called "Multimedia" is created within /tmp/fluminus/CS3237

otakenz avatar Aug 22 '20 05:08 otakenz

Hmm, try passing in --verbose --show-errors and post here if there are any error messages (in red usually)

indocomsoft avatar Aug 22 '20 06:08 indocomsoft

As requested, here it is:

image

otakenz avatar Aug 22 '20 06:08 otakenz

Interesting, I think this is because my code assumed that panopto will not have hierarchical structure of folders. Unfortunately I don't have any mods with this structure so as to reverse engineer.

You're welcome to submit a PR though if you could reverse engineer and hook into the code!

indocomsoft avatar Aug 22 '20 07:08 indocomsoft

Ok if i will try when i have time, thanks!

otakenz avatar Aug 22 '20 07:08 otakenz