Quality of videos can be changed from the
settings section:
The embedded python web server is pretty lightweight but you can integrate it in an existing apache server. I haven't tried it, but you can try to follow this guide to install an aditional apache2 module:
http://webpy.org/cookbook/mod_wsgi-apache-ubuntu
Then in youtupi.py, you would need to edit the bottom of the file, the
No longer would be needed, and it should look like this:
Code: Select all
urls = (
'/(.*)/', 'redirect',
'/playlist', 'playlist',
'/video/(.*)', 'video',
'/control/(.*)', 'control',
'/local', module_local,
'/youtube', module_youtube,
'/', 'index'
)
app = web.application(urls, globals()).wsgifunc()
Local files search now works, previously indeed only the last modified files where found.
bobbydriver wrote:Finally got this working.
1st issue was that I already had youtube-dl installed in a different directory. I had to move it to within youtupi to get the downloads & playing working
Now I have a question - is it possible to hardcode the default quality of youtube? It seems to be set at 720 but that causes really bad stuttering on my pi via the wireless. I only have a CRT TV connected via the AV cables (ie not HDMI) so I'm not bothered about the lower quality. When I set it manually via the settings drop-down it always reverts back to 720 after I close the browser
I also had some problems with the Files directory location. I set it to be the root VIDEOS folder on my NAS (mounted to the Pi as Samba share) - but it didn't show the sub-folders, only the most recent 50 files (in date order) is that correct? I couldn't filter to find anything else
And finally - I realised that I also have apache running on port 80, so it seems overkill to have another web server running on 8080. Would it be straightforward to port the app across to Apache or a big hassle with lots of settings to change in the code?
Thanks - great work by the way