I recently upgraded my media server to Ubuntu 18. After I did, navigation became extremely slow, but only in directories with images -- directories with nothing but videos are peppy as always. I ran these commands:
sudo apt-get install libjpeg-dev libpng-dev
sudo apt-get install python-dev
sudo apt-get install python-pil
sudo shutdown -r now
After the server rebooted, I restarted the Roku. The problem persists.
I looked at the my_media_log.txt file, but it is empty (0 bytes).
I looked at the screen session where the mymedia process is running, and when I navigate MyMedia, I see a lot of error like this:
192.168.1.120:34320 - - [08/Dec/2018 09:57:15] "HTTP/1.1 GET /media" - 500 Internal Server Error
Traceback (most recent call last):
File "/usr/local/bin/mymedia/server/web/application.py", line 243, in process
return self.handle()
File "/usr/local/bin/mymedia/server/web/application.py", line 234, in handle
return self._delegate(fn, self.fvars, args)
File "/usr/local/bin/mymedia/server/web/application.py", line 413, in _delegate
return handle_class(cls)
File "/usr/local/bin/mymedia/server/web/application.py", line 388, in handle_class
return tocall(*args)
File "/usr/local/bin/mymedia/server/mymedia.py", line 891, in GET
web.header("Content-Type", "image/" + type)
TypeError: cannot concatenate 'str' and 'NoneType' objects
I added code to test for the None type, changing line 891 in /usr/local/bin/mymedia/server/mymedia.py from this:
web.header("Content-Type", "image/" + type)
To this:
if type is None:
web.header("Content-Type", "image")
else:
web.header("Content-Type", "image/" + type)
That got rid of the type error, but the navigation is still painfully slow. Any suggestions?
Thanks again for MyMedia. It's one of my most often-used Roku channels.