mywave82 / opencubicplayer

Open Cubic Player (unix fork). Music visualizer for various tracked music formats (amiga modules, S3M, IT), chiptunes and other formats related to demoscene
https://stian.cubic.org/project-ocp.php
GNU General Public License v2.0
276 stars 19 forks source link

http modland.com #74

Closed coderofsalvation closed 1 year ago

coderofsalvation commented 1 year ago

foobar2000 allows entering 'https://modland.com' as a drive (it just treats the links as a filesystem). Any idea about the easiest way to mount 'ftp://modland.com' as a drive on linux? Together with ocp it would make module discovery much easier (you could simply create playlists from terabytes of modules without actually having to download them)

UPDATE: https://rclone.org/overview seems to support http/ftp mounts. I will try it and close this issue after documenting my findings.

coderofsalvation commented 1 year ago

update: turns out it's supereasy:

$ apt-get install rclone                                                                       # install: change this to your distro install cmd
$ rclone config create modland http url https://modland.com            # configure modland.com as clouddrive
$ rclone mount modland:/pub/modules ~/modland.com --daemon   # mount as drive
$ cd ~/modland.com
$ ls /modules/Fasttracker 2/Falcon | head -n2
total 0
-rw-rw-r-- 1 leon leon 0 jan  1  1970 cyber dream.xm
$ ocp

PROFIT!!!

image

mywave82 commented 1 year ago

This idea is already in my head, but it is not on the top of my TODO list. Both generic http support and modland specific support using the zip file in the webroot as a cache index for expected filenames that exists.

coderofsalvation commented 1 year ago

thanks for your reply. Well in the meantime rclone does the job as well.