Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Tomin1/elisa_viihde_fuse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Elisa Viihde Filesystem in Userspace

This is my attempt to make Elisa Viihde FUSE. It may be quite stupid in some places because the Elisa Viihde API is not designed for this kind of use.

This uses elisaviihde.py from enyone/elisaviihde branch pre-1.5. Download it and put that somewhere in your python path. Requests is required as a dependency.

This also needs fusepy, which can be installed with pip. Remember to use pip3 because I don't support python2.

Goals

Main goals:

  • Allow listing recordings (works!)
  • Allow opening and reading the files to watch videos and copy them to local drives (some files work, but downloading is slow and makes a lot of requests!)
  • Resrict other users from touching the files if wanted (mount time option)

Other niche features:

  • Moving files between directories
  • Allow deleting recordings, user should be able to disable this

Problems

Elisa Viihde API is not very friendly for this kind of operation. Maybe the greatest problem of all is that it doesn't expose file sizes but only recording lengths. That can't be used for file size (it might be possible to use that for estimating file size). Instead I must make a HEAD request for every getattr request for programs.

Currently downloading files (only older recordings work) takes a lot of requests and it is very slow. Even listing files is quite slow and takes many seconds even for a small-ish directory.

A minor problem with the API is that there are no timestamps for folders and currently I'm just ignoring them and using zero. That is probably the best way to handle that for now.

Disclaimer

This program or it's developer(s) are not affiliated with Elisa or Elisa Viihde in any way. You should not contact Elisa about problems with this application.

Elisa Viihde is a trademark of Elisa Oyj.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Elisa Viihde Filesystem in Userspace

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages