Kodi Community Forum
Headphones - Music albums & artists auto download program - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: Headphones - Music albums & artists auto download program (/showthread.php?tid=103688)



- thezoggy - 2011-07-27

darkscout Wrote:Did you ever know that you're my hero,
and everything I would like to be?
I can fly higher than an eagle,
for you are the wind beneath my wings.

It might have appeared to go unnoticed,
but I've got it all here in my heart.
I want you to know I know the truth, of course I know it.
I would be nothing without you.


I can't wait to get home and test this out.

Movies: CouchPotato.
TV: Sickbeard.
Music: Headphones.

The #1 thing that I think you should make sure you have from the beginning is an API. It makes writing 3rd party stuff much easier. Stroll into the store, scan a barcode with my Android phone....

adding an api is much easier after the fact when you know what data you have and you can see from a higher level what is shared with what. adding an api at the start would just slow everything down. let him get the app working before making it 3rd party friendly.


- HenryFord - 2011-07-27

By the way: The TK-Domain on which I provide the windows-binary seems to have some problems recently... You can always access it via the direct ip if that is the case:
http://208.93.153.174/tools/headphones_win32build.zip


- rembo10 - 2011-07-27

prostuff1 Wrote:I would really really like to see the ability to specify where the logs are kept. SABnzb and SickBeard both allow for this and it comes in handy on systems like unRAID.

If/When you get that added it would be a nice addition.


Added in the latest version.

Also put in some post-processing (adding album art, renaming files, moving files, etc.). Expect many improvements in this department over the next few days :-)

http://github.com/rembo10/headphones


- RikP - 2011-07-27

rembo10 Wrote:Added in the latest version.

Also put in some post-processing (adding album art, renaming files, moving files, etc.). Expect many improvements in this department over the next few days :-)

http://github.com/rembo10/headphones

Could you explain the features a bit more. I enabled them but when i download albums they don't get moved or renamed....


- darkscout - 2011-07-27

RikP Wrote:Could you explain the features a bit more. I enabled them but when i download albums they don't get moved or renamed....

Probably because they're not in there yet.


- HenryFord - 2011-07-27

darkscout Wrote:Probably because they're not in there yet.
What? Rembo10, one post earlier:
Quote:Also put in some post-processing (adding album art, renaming files, moving files, etc.). Expect many improvements in this department over the next few days :-)
The only thing I can understand from this is that there are now pp-features available.


- rembo10 - 2011-07-28

Auto-tagging works now :-)!

Courtesy of sampsyo & beets: http://github.com/sampsyo/beets


- itchy_balls - 2011-07-28

Testing. This is awesome thanks.

Any plans for torrent support?


- rembo10 - 2011-07-28

itchy_balls Wrote:Testing. This is awesome thanks.

Any plans for torrent support?

Yeah - it's got all the core functionality that I want though so before I add any new features I want to make sure everything runs totally smoothly.

If you run into any problems post a bug on github: http://github.com/rembo10/headphones


- N3MIS15 - 2011-07-28

I may just be missing this, but are there any ways to force refresh artists and searches?


- iDude - 2011-07-28

N3MIS15 Wrote:I may just be missing this, but are there any ways to force refresh artists and searches?

Check at the bottom of the "manage" page


- splnuts - 2011-07-28

Is there a way to delete all Artist and have it scan again? When I try to delete the Headphones.db file i get:

Quote:500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
File "/mnt/disk1/.custom/Headphones/cherrypy/_cprequest.py", line 645, in respond
response.body = self.handler()
File "/mnt/disk1/.custom/Headphones/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/mnt/disk1/.custom/Headphones/cherrypy/_cpdispatch.py", line 29, in __call__
return self.callable(*self.args, **self.kwargs)
File "/mnt/disk1/.custom/Headphones/headphones/webserve.py", line 36, in home
results = myDB.select('SELECT ArtistName, ArtistID, Status, LatestAlbum, ReleaseDate, AlbumID, TotalTracks, HaveTracks from artists order by ArtistSortName collate nocase')
File "/mnt/disk1/.custom/Headphones/headphones/db.py", line 64, in select
sqlResults = self.action(query, args).fetchall()
File "/mnt/disk1/.custom/Headphones/headphones/db.py", line 42, in action
sqlResult = self.connection.execute(query)
OperationalError: no such table: artists



- iDude - 2011-07-28

You have to restart headphones after deleting the database so it can create a new one on startup


- prostuff1 - 2011-07-28

rembo10 Wrote:Added in the latest version.

Also put in some post-processing (adding album art, renaming files, moving files, etc.). Expect many improvements in this department over the next few days :-)

http://github.com/rembo10/headphones

Very nice, thanks for the quick response and addition!!


- Baka no Kami - 2011-07-29

Had no problems running this on Arch Linux. Cloned it from git and it started right up. Anyway you can add support for Newzbin.com as a search provider?




Also if anyone is interested here's the script I'm using to start Headphones as a daemon.

Code:
#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in
  start)
    stat_busy "Starting Headphones"

    if [ -f /var/run/daemons/headphones ]; then
            echo -n "Headphones is already running as a daemon!"
            stat_fail
    else
            su - [USER] -c "python2 /opt/headphones/Headphones.py  &> /dev/null &" -s /bin/sh
            if [ $? -gt 0 ]; then
                    stat_fail
            else
                    add_daemon headphones
                    stat_done
            fi
    fi
    ;;
  stop)
    stat_busy "Stopping Headphones"

    curl -f http://localhost:8181/shutdown/ &> /dev/null

    if [ $? -gt 0 ]; then
            stat_fail
    else
            rm_daemon headphones
            stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"
esac
exit 0