v1.1.4
● File viewing method, changes are as follows:
- In some specific cases, files cannot not be played or displayed in the modal. These cases are:
- file's mime-type is not readable.
- file has "Hotlink protection enabled".
- file is "Unavailable for legal reasons".
- file is no longer available.
So, to handle theses cases, mime-types array has been added to compare the mime-type.
For the other cases listed above, a fetching API to get file details will be performed to find out if anything is wrong, and if so, the files will open in a new tab instead of displaying a broken file in the modal window.
- Auto sort files options has been added to the script control panel
- data-type attribute is now added to the files.
- modification of the modal window closing condition: before, in Chromium browsers, the modal window would close when the video was clicked, for example (should be fixed now).
- Some unused variables has been removed