"renojim" wrote:
The only thing I can think of is the possibility that you've mixed the old and new version of the server. Did you copy the new files over the old files? If so, make sure you delete all the .pyc files in all the subdirectories. If there's any chance that they're mixed you may want to try a fresh install into its own directory.
"renojim" wrote:
The only thing I can think of is that you can't use a root directory. You mentioned a "videos" folder on Z:, but don't mention a folder on V:. Is it that the videos don't show up, or they show up but won't play? It's always a good idea to try just using the browser interface to the server (http://localhost:8001/feed) to test things. You should be able to at least save the "media" link to a file. As always, check the output of the Python window and the my_media_log.txt file for any messages that might be helpful.
"renojim" wrote:
I know that the different poster images used aren't the right size. It's one of the things I'll be fixing in the near future. I believe that it used to work just fine with those images and an update to the firmware has made it slower, but there's really no way to prove that now. If you have PIL installed, it should make the issue better. With properly sized poster images the navigation is much better. I prefer the high contrast theme and it's the one I use in my personal version of the channel. I'll have to compare the two and see if I notice a difference, but it seems pretty snappy to me.
"swiharta" wrote:
Is anything special to do on the Roku client other than just reinstalling?
"swiharta" wrote:
I think you are going to be right on this one, it was indeed a root directory!
"swiharta" wrote:
One thing I hadn't thought of before, which probably doesn't matter but nonetheless, I am using Python 2.7 instead of 2.6.
"Lowcountry" wrote:
Once I reboot, I have to enter:
cd /home/server
python mymedia.py
to get things going again.
How can I automate this?
"swiharta" wrote:
Cool, thanks a lot renojim! I might just noodle around a bit more and see if I can't figure out what's wrong. I didn't think there were major changes between 2.6 and 2.7, but I really have no idea, guess I'll start here."Lowcountry" wrote:
Once I reboot, I have to enter:
cd /home/server
python mymedia.py
to get things going again.
How can I automate this?
Kind of a surprise question coming from someone running from the command line, but does a guide like this help?
http://embraceubuntu.com/2005/09/07/add ... at-bootup/
#!/bin/shUse your favorite text editor to put those lines in a file named mymedia and put the file in the /etc/init.d directory. Make sure you run:
cd /home/server
python mymedia.py &
chmod +x mymediato make it executable. According to the link swiharta gave, you have to run:
update-rc.d mymedia defaultsto get it to run at boot time.
"Lowcountry" wrote:
Sorry, that doesn't help. I don't know how it worked before. I never said I was good at this. 🙂
"renojim" wrote:
I'm no Linux expert, but you have to create a script to start the server and then get the script to run at start up. The simplest script would be#!/bin/shUse your favorite text editor to put those lines in a file named mymedia and put the file in the /etc/init.d directory. Make sure you run:
cd /home/server
python mymedia.py &chmod +x mymediato make it executable. According to the link swiharta gave, you have to run:update-rc.d mymedia defaultsto get it to run at boot time.
You may have to run the chmod and update-rc.d commands as root (put sudo before the command). I just tried it on my Ubuntu 10.04 test setup and it seemed to work.
Good luck! If this doesn't work, I'd suggest searching for "Debian startup scripts" or try to look at the man page for update-rc.d. Hopefully someone more knowledgeable than me will point out any glaring errors.
-JT
fileName = "Z:\mp3\Art Blakey - Orgy In Rhythm\03 Toffi.mp3"
# fileName actually provided by navigating into a folder containing mp3s, which are processed
# in a "for" loop in mymedia.py, getdoc(), which calls the getart() and file2item() functions,
# which both ultimately instantiate the Mp3AudioFile class below
def isMp3File(fileName):
(type, enc) = mimetypes.guess_type(fileName)
return type == "audio/mpeg"
...
...
...
class Mp3AudioFile(TagFile):
def __init__(self, fileName, ... )
...
if not isMp3File(fileName):
raise InvalidAudioFormatException("File is not mp3")
>>> import mimetypes
>>> mimetypes.guess_type("Z:\mp3\Art Blakey - Orgy In Rhythm\03 Toffi.mp3")
('audio/x-mpg', None)