tooxie / shiva-server

A RESTful API to your music collection
http://shiva.readthedocs.org/en/latest/intro.html
MIT License
557 stars 51 forks source link

XMBC Support #39

Open TobiasBales opened 11 years ago

TobiasBales commented 11 years ago

After using it for a while at work I would like to use a shiva server for all my music/media needs. For home I think I would like to use XMBC but stream from the shiva server so I can stream via web interface etc too.

Looking into xmbc plugin dev right now - anyone else interested?

Would love to mark this as feature but I am not allowed :/

ghost commented 11 years ago

Really good idea! All in :+1:

TobiasBales commented 11 years ago

Working on it, hoping to get something working today or tomorrow

ghost commented 11 years ago

Would be very nice. But got some problems with indexing (UTF-8/UNICODE). Have to look at these problems first to get a nice database.

TobiasBales commented 11 years ago

Got the xbmc plugin to a semi-working state You can see the artists/albums/tracks from locahost:9002 and play the music The only issue right now is that it seems to download the mp3 and start playing and no real streaming. Not sure if it an issue with the way the plugin works right now or the way shiva streams the file. Will look into it though.

If anyone cares: https://github.com/TobiasRaeder/xbmc-shiva-plugin/

P.S. gonna look into your issue now

tooxie commented 11 years ago

Shiva doesn't stream, just provides a URI to the actual file, it's up to the fileserver to stream it. If the file is served through Shiva, it will be sent for download, but I've been thinking of removing that functionality, Shiva should not serve files.

ghost commented 11 years ago

Maybe a good idea to give a customizable prefix to every file in DB. So you can local index the music but shiva give out a ftp/http/etc. Address

TobiasBales commented 11 years ago

Removing the serving would break the shiva-client too, right? At least of not running on the same machine and "knowing" the path.

What are the reasons for thinking about removing the functionality?

tooxie commented 11 years ago

Sorry, what I meant was removing the view that serves the file. Namely: https://github.com/tooxie/shiva-server/blob/master/shiva/views.py#L7 Not the URI to the file from the track resource.

That would mean that you will need another server to run Shiva, even for testing purposes.

ghost commented 11 years ago

This plugin is very cool. Its fast as hell even if shiva-server is not running local. Relly great! I would like to see listing by genre and album.

Actually I can't play any file - seems to be because of using shiva-server not locally.

TobiasBales commented 11 years ago

It does work it just takes a good while (thats why I guessed it was downloading the file and playing once done) but even for that it is too slow. Gonna look into it. And agreed - by Album/Genre would be great and should not be such a problem really

ghost commented 11 years ago

Hey Tobias,

something new on that?

Greets Cappa

TobiasBales commented 11 years ago

Not yet, been kinda busy with work and just didn't find the time to look further into it. Gonna see if I can make some time this weekend.

ghost commented 11 years ago

There's no need to hurry. Only wants to know if you work on that further or if I have to learn a new programming language :-)

TobiasBales commented 11 years ago

Hehe :) Well python is worth learning I guess but yes I do still have an interest in continuing with the plugin

ghost commented 11 years ago

Well python is nice.

But I cross so many languages that I more confused for every script and programming language I work on.

Also never learned programming :-) [irony]Should I start with Java?[/irony]

We all gets older.