Giter Club home page Giter Club logo

htpc-manager's People

Contributors

asmozre avatar coach0742 avatar dantheother avatar decipher avatar dhead666 avatar djeebus avatar erlendsb avatar exadeci avatar glitchza avatar hellowlol avatar henryford avatar influencer avatar jerbob92 avatar lluzak avatar mbw2001 avatar mhendrikx avatar mikke89 avatar minchik avatar mschoneveld avatar noobydp avatar qgerome avatar raymatos avatar rockyburt avatar scarlettcode avatar srwareham avatar styxit avatar tester22 avatar woest avatar yakovyarmo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

htpc-manager's Issues

First run error 'no xbmc servers configured'

Just downloaded the master branch and tried to run the first time. Generated error indicated by photo and hangs.
First run from master branch clone crashes with 'no xbmc servers configured' error
image

I was able to run from the developer branch without this error.

Ability to add Shortcuts to other WebUIs

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.

Recently Added Dashboard caption

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)

Saving general settings

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.

Modules should be isolated to their own folder

Currently, "modules" aren't really modular, since they have files all over the place. For instance, the couchpotato module has a file in

  • modules/couchpotato.py
  • interfaces/default/js/couchpotato.js
  • interfaces/default/html/couchpotato.html

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.

MythTV Integration

If people are interested, I would be willing to help out :) Mythweb is getting old.

Not all characters are escaped in carrousel background images (images not showing)

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&amp;w=430&amp;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

Xbmc image cache check fails

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.

TemplateLookupException

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'

View app Log

Option to view the log through Htpc Manager.

View all messages, ordered by time, descending.

Filter log messages by state.

Newznab search returns error 500

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

Trailers

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.

Cache js libraries

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.

Show disk usage

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)

Plex integration

Will there be in the future integration with Plex??
and possibly in what time frame???

Installation instructions

Write installation instructions for multiple platforms.

  • How to run Htpc.py.
  • Commandline instructions.
  • Explain about PIL for resizing xbmc images.
  • How to install and configure PIL.
  • Update readme.

Transmission integration

Basic version for transmission on osx is now working

To-do:

  • Test on unix (daemon)
  • Add confirm dialog to remove torrent button
  • Promt to delete files on torrent remove
  • Torrent add/upload option
  • Show nr of peers
  • Settings test

PIL workaround

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?

Task Scheduler

Section to schedule tasks to perform every once in a while.

  • Clear log
  • Clear image cache
  • Check for updates

Maybe give users the option to configure the time interval, or enable/disable a specific schedule rule.

Combine this with #35

Module header links: add basepath

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
  • sickbeard
  • sabnzbd

Deluge Support

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.

Couchpotato addon: if a movie doesn't have images it returns undefined

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.

Chouchpotato popup image defect

If i click a movie in the couch potato section, the image does not load. The image is linked to imdb.com which denies my request because the referral is invalid.

Probably forgot to use the couchpotato proxy.

couchpotato popup

Probably easy fix. Will look into this in the next few days.

ValueError: Not a valid numbers of quantization tables. Should be between 2 and 4.

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
    --------------------------------------------------------------------

Xbmc Music Tab

screen shot 2013-06-24 at 09 47 54

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.

SSL Support

Could SSL Support be added for CouchPotato and SickBeard?

Add Autosub Support

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/

Review settings page

Settings page could use a makeover. Some pages are not needed anymore

Settings -> theme (remove)

Combine with: #34

Simplify settings

Change the settingspage to support automaticly fetching the API keys with a supplied username and password without saving username and pass.

CouchPotato integration broken.

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.

SickBeard SSL Support

Add SSL Support for SickBeard, support is there for SAB so this should be trivial.

Not working utorent - request module

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

slideToggle() queue

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/

Xbmc -> play album

XBMC (Frodo) -> Music -> Choose artist, only option is to play all by the artist, can't select single track or at least album.

Settings 'test' button

Almost all forms on the Settings page have a 'test' button. In some cases this button does not work, or is useless

  • Settings -> Modules -> Xbmc (useless)
  • Settings -> Modules -> Newznab (defect)

@mbw2001

HTPC manager won't start.

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

Add logging

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.

  • Do research on existing logging mechanisms.
  • Use logFile rotation as discussed in #24
  • Option to clear log

Notifications

Show notifications to user.

  • Critical errors
  • Missing PIL library
  • Scheduled tasks

Latest notifications in menu bar like this
schermafbeelding 2013-06-20 om 11 48 12

Image proxy JPEG

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.