styxit / htpc-manager Goto Github PK
View Code? Open in Web Editor NEWA fully responsive interface to manage all your favorite software on your Htpc.
Home Page: http://htpc.io
License: MIT License
A fully responsive interface to manage all your favorite software on your Htpc.
Home Page: http://htpc.io
License: MIT License
as the title says, when i paste an NZB link & hit 'Add NZB' it appears in the list twice.
when i log into the sabnzbd web portal it is indeed downloading the same file twice.
Make the plot description for movies and tvshows on the dashboard only appear on mouseover
Reduce font size of plot description (only shows a few words)
Any chance for an easy-to-install package for the synology nas?
On adding new show to sickbeard, there are only english shows displayed. Enable all languages and let the user pick a language.
Could SSL Support be added for CouchPotato and SickBeard?
Searching in couchpotato might be broken. Does not show results.
User provided schreenshot:
https://www.dropbox.com/s/2vkff14zge5ex78/Capture.PNG
Write installation instructions for multiple platforms.
after i launch the htpc.py file from cmd with python, i get the follow error in my web browser.
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "c:\htpc-manager-master\libs\cherrypy_cprequest.py", line 656, in respond
response.body = self.handler()
File "c:\htpc-manager-master\libs\cherrypy\lib\encoding.py", line 188, in call
self.body = self.oldhandler(_args, *_kwargs)
File "c:\htpc-manager-master\libs\cherrypy_cpdispatch.py", line 34, in call
return self.callable(_self.args, *_self.kwargs)
File "c:\htpc-manager-master\htpc\root.py", line 20, in index
return htpc.LOOKUP.get_template('dash.html').render()
File "c:\htpc-manager-master\libs\mako\lookup.py", line 243, in get_template
"Cant locate template for uri %r" % uri)
TopLevelLookupException: Cant locate template for uri 'dash.html'
Title says it all.
example:
http://URL:PORT/couchpotato/GetImage?w=100&h=150&url=undefined
(repeatable if you pick movie which is in the far future and doesn't have artwork yet)
It returns an error in the log, a HTTP/1.1 500 Internal Server Error is returned, and jQuery errors as somewhere the length property of undefined is tried to retrieve.
Requested multiple times in a short period of time.
Investigate the NzbGet api http://nzbget.sourceforge.net/RPC_API_reference
Will there be in the future integration with Plex??
and possibly in what time frame???
Js libs are inserted by jquery and loaded with a timestamp query parameter. For every request the files are downloaded instead of serving them from browser cache.
Remove the timestamp at the end of the url by using another method to insert the scripts.
If people are interested, I would be willing to help out :) Mythweb is getting old.
To debug and develop HtpcManager, logging (other than running htpc.py --debug) would be nice. Write log to a file or something like that.
Would improve development speed and definately enables user to specify any problems they may encounter.
XBMC (Frodo) -> Music -> Choose artist, only option is to play all by the artist, can't select single track or at least album.
I am running python on osx 10.8 with no special python modules installed other than PIL, When starting Htpc manager with the new torrent stuff, it fails to start due to missing module 'requests'
Traceback (most recent call last):
File "Htpc.py", line 144, in <module>
main()
File "Htpc.py", line 114, in main
load_modules()
File "Htpc.py", line 62, in load_modules
from modules.utorrent import UTorrent
File "HTPC-Manager/modules/utorrent.py", line 2, in <module>
import requests
ImportError: No module named requests
It would be really awesome if there would be a box showing the disk usage per disk in the dashboard.
(I Guess this is a feature request, but I can't seem to use any labels)
Self-updating from the menu is broken.
On the dash, the caption are toggled once you hover over them. However, if you (by accident or on purpose) move over the captions a few times there is a queue of slideToggle()'s which looks awkward. This can be easily fixed by adding a stop() before the slideToggle.
See the following jsfiddle which shows the difference:
http://jsfiddle.net/5GzE3/
Add SSL Support for SickBeard, support is there for SAB so this should be trivial.
Chasing this one down, I managed to get this error from /search/getcategories
Apparently url is referenced before assignment in the logger function?
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "/home/xbmc/.htpc/libs/cherrypy/_cprequest.py", line 656, in respond
response.body = self.handler()
File "/home/xbmc/.htpc/libs/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/home/xbmc/.htpc/libs/cherrypy/lib/jsontools.py", line 61, in json_handler
value = cherrypy.serving.request._json_inner_handler(*args, **kwargs)
File "/home/xbmc/.htpc/libs/cherrypy/_cpdispatch.py", line 34, in __call__
return self.callable(*self.args, **self.kwargs)
File "/home/xbmc/.htpc/modules/search.py", line 50, in getcategories
return self.fetch('caps')['categories']
File "/home/xbmc/.htpc/modules/search.py", line 75, in fetch
self.logger.error("Unable to fetch information from: " + url)
UnboundLocalError: local variable 'url' referenced before assignment
Running the master branch of this git with latest pull, couchpotato updated earlier today and since then the htpcmanager integration no longer works.
running both htpcmanager and CP in an unraid server environment if that's relevant to this issue.
have tried reentering the settings a few times, deleting the database file for htpcmanager and recloning the git, to no avail.
Section to schedule tasks to perform every once in a while.
Maybe give users the option to configure the time interval, or enable/disable a specific schedule rule.
Combine this with #35
After the fix from @mbw2001 images from xbmc are always re-downloaded through xbmc api. Cached original files are ignored. This slows down the response time and this makes storing the original file useless.
in htpc/proxy.py L30 04a8b17#L0R29
# Set filename and path
image = os.path.join(imgdir, imghash)
# If there is no local copy of the original
if not os.path.isfile(image):
download_image(url, image, auth)
The image is stored with extension. The isfile() function uses path without '.png' and therefore is always false.
2013-10-14 19:16:31 :: cherrypy.error.32088400 :: ERROR :: [14/Oct/2013:19:16:31] HTTP Traceback (most recent call last):
File "/root/HTPC-Manager/libs/cherrypy/_cprequest.py", line 656, in respond
response.body = self.handler()
File "/root/HTPC-Manager/libs/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/root/HTPC-Manager/libs/cherrypy/_cpdispatch.py", line 34, in __call__
return self.callable(*self.args, **self.kwargs)
File "/root/HTPC-Manager/modules/xbmc.py", line 202, in GetThumb
return get_image(url, h, w, o, self.auth())
File "/root/HTPC-Manager/htpc/proxy.py", line 51, in get_image
resize_image(image, height, width, opacity, resized)
File "/root/HTPC-Manager/htpc/proxy.py", line 100, in resize_image
im.save(dest, 'JPEG', quality=95)
File "/usr/lib64/python2.7/site-packages/PIL/Image.py", line 1439, in save
save_handler(self, fp, filename)
File "/usr/lib64/python2.7/site-packages/PIL/JpegImagePlugin.py", line 471, in _save
ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)])
File "/usr/lib64/python2.7/site-packages/PIL/ImageFile.py", line 494, in _save
for e, b, o, a in tile:
ValueError: Not a valid numbers of quantization tables. Should be between 2 and 4.
Currently running fresh pull from git (10/14/2013) and configured with Python 2.7.5 on Fedora 19 64-bit (headless). Runs fine, cannot get it to communicate with couchpotato yet but all else seems to be working fine with the exception of this error being thrown any time an image tries to be loaded (specifically from XBMC). Any ideas? PIL is installed and output the following:
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.7.5 (default, Aug 22 2013, 09:31:58)
[GCC 4.8.1 20130603 (Red Hat 4.8.1-1)]
--------------------------------------------------------------------
*** TKINTER support not available (Tcl/Tk 8.5 libraries needed)
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
*** LITTLECMS support not available
--------------------------------------------------------------------
The headers for module pages have links to the corresponding (original) webinterfaces. The links do not include the basepath.
Maybe even delete them? Or create a separate button for it, so it is clear that you are leaving htpc manager webinterface.
Couchpotato-wanted apparently shows all movies in list instead of only wanted movies.
If PIL is not available, the xbmc images are not rendered and throw errors.
A lot of users have problems installing PIL on their system.
For users without PIL, server full-sized images instead of none.
Maybe show a notification on the dashboard, telling the user Htpc Manager serves full-sized images and might be slow.
@mbw2001 want to help me with this?
Deluge Support would be much appreciated. I know it's not a common app, but there are still a few people that use it. CouchPotato has recently had deluge support added so there is hope.
I make use of the
XBMC, Sabnzbd, Sickbeard, Couchpotato, Transmission and even Squeezebox integration in HTPC Manager
But I also use BTSync and other WebUI based programs.
It is obviously unreasonable for the developers of HTPC Manager to be able to offer integration to ALL of the WebUI services that are used by HTPC Manager users; so my idea was:
A "Shortcut Widget" within HTPC Manager which could be configured with links to other WebUIs on different servers or just WebUIs (eg BTSync) on different ports. Maybe even present the linked page within the frames of HTPC manager?
It would allow more and more people to use HTPC Manager as the front page of their server.
Anyway, many thanks for this great software.
The Capt.
Change the settingspage to support automaticly fetching the API keys with a supplied username and password without saving username and pass.
Add support for PVR in the XBMC module.
Some background images for tv shows (xbmc) don't show. After looking in the source, I didn't see any errors fetching them, but then my eye fell on the html source:
The data is censored, but the key part is:
<div style="background-image: url(/xbmc/GetThumb?h=240&w=430&thumb=image%3A%2F%2F%252fmedia%252fDownloads%252fTV%252fThe%2520TVSHOWNAME%2520(2012)%252ffanart.jpg%2F)" class="item carousel-item active"><div class="carousel-caption"><h4>blabla</h4><p>morebla</p></div></div>
I don't know if this goes for other characters as well, but parentheses are not escaped. This is actually not a problem for css if url() uses quotes. But it doesn't (as it is in the style property which is already in double quotes) so they need to be escaped.
Some background info:
http://stackoverflow.com/questions/2034575/which-type-of-quotes-we-should-use-in-css-background-url-single-doubl
Option to view the log through Htpc Manager.
View all messages, ordered by time, descending.
Filter log messages by state.
At the moment, Png images are used. This was done to support alpha channels when using images as backgrounds. The alpha channel is not actually useful, because it is not used in the web interface to show the content behind the image, only so text above it is more readable.
Instead of actual alpha channel, a white overlay could be used. Produces the same result. Since we are always handling square/rectangle cover-images, which have no transparent parts, that should be no problem.
Because png images are larger than jpg files, switching to jpeg could improve the request time.
Please can you added Autosub support.
"Auto sub is a automated subtitle download tool for dutch and english subtitels .
Many thanks for the administrators of Bierdopje.com to expose and facilitate the API's and RSS feeds so that we lazy users can enjoy automated scripts like this.
Easy and straightforward script that scans your TV contents. If no SRT found it will attempt to download one from Bierdopje.com. Where the script will attempt to match the correct version of the subtitle with the file located on the disk. If not found it will monitor the Bierdopje RSS feeds for a new release. Once every day it will do a full rescan of your local content versus the Bierdopje API."
More info: https://code.google.com/p/auto-sub/
Running the plugin on an unraid box and with the latest update am getting these errors and the program won't start.
root@unraid-Nas:/usr/local/htpcmanager# python Htpc.py
Traceback (most recent call last):
File "Htpc.py", line 144, in
main()
File "Htpc.py", line 114, in main
load_modules()
File "Htpc.py", line 62, in load_modules
from modules.utorrent import UTorrent
File "/usr/local/htpcmanager/modules/utorrent.py", line 71
return {k: v for k, v in get_result(values)}
^
SyntaxError: invalid syntax
Currently, "modules" aren't really modular, since they have files all over the place. For instance, the couchpotato module has a file in
And is also hardcoded into dash.html, dash.js, Htpc.py, and settings.html
Having files and references scattered like this makes it hard to improve existing modules or write new ones. I think reorganizing the module setup would greatly improve the community around this application. 3rd party modules could be installed simply by copying a folder, and removed just as easily.
I envision a file structure looking something like:
/modules/couchpotato
__init__.py
setup.py
html/
index.html
css/
styles.css
js/
main.js
Then something like:
for folder in os.listdir('modules/'):
importlib.import_module(folder)
Then we wouldn't have to worry about hardcoding anything, we could just iterate over the list of loaded modules.
If this issue is accepted and someone wants to brainstorm the details with me I'd be able to implement this.
Basic version for transmission on osx is now working
To-do:
Trailers do not seem to be working. I keep getting "unable to load video" or "vide does not exist". I've tried chrome and safari browsers.
Almost all forms on the Settings page have a 'test' button. In some cases this button does not work, or is useless
Use http://handlebarsjs.com/ for template blocks
Settings page could use a makeover. Some pages are not needed anymore
Settings -> theme (remove)
Combine with: #34
Since the last pull (the one with the updated couchpotato api) my music is no longer loading on the XBMC tab, as you can see from the screenshot, it was working fine before the last pull.
Once again, i'm running htpc from within an unraid server.
further info :xbmc frodo 12.2 on a windows 7 box and my library is shared using mysql.
For use with widows torrent client
I just installed your project on a ubuntu server and am accessing it through apache mod_proxy. Instead of using a location I am using a subdomain. And I have the following in the apache config.
ProxyPass http://127.0.0.1:8085/
ProxyPassReverse http://127.0.0.1:8085/
I am able to access the application through the subdomain. I have succesfully added my xbmc machine but am not able to save the general settings. It says that it has saved it but the form doesn't represent it and I still don't have to log in.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.