You can find installation instructions in project's repository and a small description in my blog.
Hope you guys like it

Code: Select all
if __name__ == "__main__":
Code: Select all
urls = (
'/(.*)/', 'redirect',
'/playlist', 'playlist',
'/video/(.*)', 'video',
'/control/(.*)', 'control',
'/local', module_local,
'/youtube', module_youtube,
'/', 'index'
)
app = web.application(urls, globals()).wsgifunc()
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