Commit Graph

725 Commits

Author SHA1 Message Date
rembo10
40bbdc855f Updated api commands 2012-06-22 20:37:27 +05:30
rembo10
6b5c8d55a6 Updated api commands and API_REFERENCE to include new getArtistArt, getAlbumArt, getArtistInfo & getAlbumInfo commands 2012-06-22 17:55:55 +05:30
rembo10
fe472ecd08 Modified getArtwork to return a relative path to the cached image 2012-06-22 17:21:44 +05:30
rembo10
9866f8b4ea Serve cached content up through cherrypy. Images/info files available through 'cache/{artwork,info}/<mbid>.<date>.<ext>' 2012-06-22 17:13:37 +05:30
rembo10
95cadfac93 Return properly formatted local image path 2012-06-22 16:25:31 +05:30
rembo10
2c208ea15b Fix for getArtwork if no path (either file path or url) could be retrieved 2012-06-22 14:31:55 +05:30
rembo10
1c8699f6c2 Write an empty txt file if the link doesn't have any bio/description so we don't keep checking every time 2012-06-22 14:17:09 +05:30
rembo10
0cfaf27b0f Get a list of all artwork and info files no matter if it's an artwork or info check 2012-06-22 13:49:18 +05:30
rembo10
20cf3930b2 Covert unicode artist/album strings to utf-8 before urlencoding 2012-06-22 11:37:25 +05:30
rembo10
a2563458f1 Catch KeyErrors if the data doesn't exist, urlencode the parameters 2012-06-22 11:32:15 +05:30
rembo10
4a12307cb8 Modifieded the getArtwork and getInfo functions so you can now just pass an ArtistID or AlbumID without having to specify the type as well. Also - changed the error catching when opening the url & parsing the data 2012-06-22 11:04:39 +05:30
rembo10
517d51a210 Updated .gitignore to ignore cached files 2012-06-22 10:39:15 +05:30
rembo10
8a64187c6b getArtwork now returns a file:///path-to-file or a http://image-url (the latter if, for example, the artwork cache dir can't be created. getInfo will return the description/info as well, even if the file can't be created 2012-06-21 22:09:07 +05:30
rembo10
7df4c6d9e4 Fixed the info and image_url variables. Removed url from filenames 2012-06-21 20:36:13 +05:30
rembo10
4809562674 MoNow storing ImageURL to the database so it can be served through the api. Files are writen as UTF-8 2012-06-21 16:52:02 +05:30
rembo10
cd2bec3fe4 A few changes to get the getArtistURL function working properly 2012-06-21 15:50:27 +05:30
rembo10
b4de7fe22f First commit for the caching mechanism 2012-06-21 15:44:15 +05:30
rembo10
b1115e748d Add spokenword & audiobooks to extras 2012-06-19 13:36:50 +05:30
rembo10
20bd6ae35f GPL v3 2012-06-19 13:02:12 +05:30
rembo10
15cf36a27a Tabs to whspaces in Headphones.py 2012-06-19 13:01:21 +05:30
rembo10
a3f6d90f74 CoSome general cleanup. Converted all tabs to spaces for consistency, removed templates.py as it was no longer being used 2012-06-19 12:46:44 +05:30
rembo10
755b5082c7 Possible fix for the 'moveFiles' function only moving one file over before getting stuck. Changes shutil.move(src,dest) to use a filename for the dest instead of the parent directory 2012-06-18 22:38:34 +05:30
rembo10
d5b8a90ae4 Fixed up some return values when github can't be contacted 2012-06-18 16:20:31 +05:30
rembo10
44acb9761d Merged in the gh_api branch which included changes to
the updater, some updater logging
2012-06-18 16:11:49 +05:30
rembo10
57044f5539 Fixed incorrect LATEST_VERSION variable, added some logging when checking github 2012-06-18 16:02:14 +05:30
rembo10
f4b6dbb3c3 Updated the updater to use github v3 api. Needs testing 2012-06-18 15:46:05 +05:30
rembo10
86045a70b9 Removed hardcoded MAXSIZE variables from the searcher 2012-06-18 13:16:34 +05:30
rembo10
d29496a3a9 Added a LastUpdated column to the artist table. When forcing an artist update, it will now sort by when the artist was last updated instead of alphabetically 2012-06-18 13:05:59 +05:30
rembo10
5587633211 Merge remote-tracking branch 'doskir/master' into develop 2012-06-18 12:19:11 +05:30
rembo10
ddf3432f75 Fix for '''TypeError: cannot concatenate 'str' and 'NoneType' obejects'''... when trying to scan music library. Basically just cut down the dictionary when searching for an artist with a limit=1 to return only the artistid as that was the only variable we were using 2012-06-03 20:48:53 +05:30
rembo10
f9f129b3e0 Fix for artists not being added correctly if there was no artist['type'] 2012-05-30 20:36:06 +05:30
Patrick Speiser
4860a1bd77 Fixed the releasedate=u"None" bug for good, original behavior restored, None releases show up as the newest one but don't get set to wanted automatically. 2012-05-30 11:44:38 +02:00
rembo10
4a909e79cb Fix for 'back to overview' not working if http_root was set 2012-05-30 12:53:29 +05:30
rembo10
c756419b6e Added github checking interval to config.ini (only a config.ini option for now - not added to any interfaces yet) 2012-05-30 12:38:48 +05:30
rembo10
ac9d887e2c Merge pull request #656 from doskir/master
Bug fixed, database still bad
2012-05-29 21:56:39 -07:00
Patrick Speiser
d0cd4bcb37 Fixed a bug where releases without a release date would be automatically added as the newest release and usually set as wanted. 2012-05-29 23:09:12 +02:00
rembo10
f4cc189c24 Added config.ini option to turn off github update checking. This is a config.ini option only at this point and has not been added to the UI yet 2012-05-29 21:59:00 +05:30
rembo10
a72d9daf93 Merge pull request #616 from joshs85/patch-1
Fix the ubuntu.init script by adding a space before daemon opts
2012-05-29 08:34:05 -07:00
rembo10
8de5f8e398 Fix a few typos in default interface 2012-05-29 19:27:25 +05:30
rembo10
ef56f37a6d Possible fix for nzbs not being sent to sab without username/password/apikey 2012-05-29 19:23:42 +05:30
rembo10
02ee239f32 Merge branch 'ngs' 2012-05-29 19:17:33 +05:30
rembo10
6ade134396 Removed multiple attempts to query musicbrainz from the headphones side as this is now taken care of from within musicbrainzngs. Fixed some tab/whitespace issues and fixed up some comments 2012-05-29 14:45:23 +05:30
rembo10
4b72f9f6a8 Added headphones authorization, fixed a few default values in musicbrainzngs, changed user agent for headphones. Much thanks to diskir for doing all the heavy lifting on this 2012-05-28 23:03:27 +05:30
rembo10
2171355397 Merge remote-tracking branch 'doskir/master' into ngs 2012-05-28 21:52:37 +05:30
Patrick Speiser
85b08cfc05 Replaced musicbrainz2 with musicbrainzngs.
Authentication may or may not work (i do not have access  to the headphones server).
Fixes Issue #576 and Issue #624
2012-05-28 17:01:45 +02:00
Patrick Speiser
75d68d12d7 Added authentication (i think) and removed some debug stuff 2012-05-28 16:47:12 +02:00
Patrick Speiser
242ee9e5b5 Changed findAlbumID to use the musicbrainzngs library, identical output. 2012-05-28 15:40:36 +02:00
Patrick Speiser
0f0fffbb9f Changed findArtistbyAlbum to use the musicbrainzngs library, compatible but NOT identical output. differences seem to be restricted to the uniquename entry in the artist_dict) 2012-05-28 15:11:24 +02:00
Patrick Speiser
a8183ee4dc Changed getRelease to use the musicbrainzngs library, compatible but NOT identical output. differences in track durations mostly)
(old musicbrainz 2 library is deprecated and broken)
2012-05-28 11:52:46 +02:00
Patrick Speiser
d996dd678c Fixed track length problems (modified musicbrainzngs in the process) 2012-05-28 11:48:01 +02:00