Skip to content

UoM_DMS_Toolkit streamlines file tasks for students at UoM. Enjoy data-free downloads/uploads and multimedia processing, including Torrents, Youtube, M3U8 links. Say goodbye to bandwidth worries and focus on your education! 😁

Notifications You must be signed in to change notification settings

patricnilackshan/UoM_DMS_Toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 

Repository files navigation

UoM DMS Toolkit πŸ’»


JUST OPEN THE UoM_DMS_Toolkit_by_Patric.ipynb in Google Colab and Run πŸ§‘β€πŸ’»

BRIEF EXPLANATION IS GIVEN BELOW

Introduction πŸ“‹

UoM_DMS_Toolkit streamlines file tasks for students at UoM. Enjoy data-free downloads/uploads and multimedia processing, including Torrents, Youtube, M3U8 links. Say goodbye to bandwidth worries and focus on your education! 😁

Prerequisites 🎯

  • Update package lists:

    sudo apt update -y


  • Install ffmpeg for multimedia processing:

    sudo apt install ffmpeg -y



Variable are written inside angular brackets < >



Download File from URL πŸ“₯

wget -O <fileName> <downloadLink>

OR

curl -o <fileName> <downloadLink>

Download M3U8 files to MP4 πŸ”—

ffmpeg -i <downloadLink> -c copy -threads 8 <fileName>

Uploading File to DMS πŸ“€

curl -u <userName>:<userPassword> -T <fileName> "https://dms.uom.lk/remote.php/webdav/"

Share file from the DMS πŸ”

curl -u <userName>:<userPassword> -X POST -d "path=<fileName>&shareType=3&permissions=1" "https://dms.uom.lk/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json" -H "OCS-APIRequest: true"

Get details of all shares in DMS Account πŸ“’

curl -u <userName>:<userPassword> -X GET "https://dms.uom.lk/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json" -H "OCS-APIRequest: true"

Delete a share with its share_ID πŸ—‘οΈ

curl -u <userName>:<userPassword> -X DELETE "https://dms.uom.lk/ocs/v2.php/apps/files_sharing/api/v1/shares/<share_ID>" -H "OCS-APIRequest: true"

Mapping DMS WebDAV Share (For Windows OS) πŸͺŸ

OPTIONAL

  • Run this command inside a new Command Prompt in Windows to see DMS as a Local Disk in My Computer

    net use Z: https://dms.uom.lk/remote.php/webdav/ /user:<userName> <userPassword>


Conclusion 😎

These CLI codes provide a convenient way to interact with the DMS for educational purposes, enabling data-free downloads, uploads, and sharing of files and folders.πŸ§‘β€πŸ’»


Β© PATRIC NILACKSHAN (pnilackshan@gmail.com)

About

UoM_DMS_Toolkit streamlines file tasks for students at UoM. Enjoy data-free downloads/uploads and multimedia processing, including Torrents, Youtube, M3U8 links. Say goodbye to bandwidth worries and focus on your education! 😁

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published