fmthings:lasttolibre.git
8 years agoClean up scrobble2.py master
Jonas Haraldsson [Mon, 7 Oct 2013 23:26:11 +0000 (01:26 +0200)]
Clean up scrobble2.py

8 years agoparse args in run() instead
Jonas Haraldsson [Mon, 7 Oct 2013 23:15:17 +0000 (01:15 +0200)]
parse args in run() instead

8 years agoRewrite libreimport2
Jonas Haraldsson [Mon, 7 Oct 2013 23:01:41 +0000 (01:01 +0200)]
Rewrite libreimport2

Importer class
Now using argparse instead of optparse

9 years agorevert sleep to 1s
Jonas Haraldsson [Tue, 12 Feb 2013 23:23:15 +0000 (00:23 +0100)]
revert sleep to 1s

9 years agoprepend debug logs with username
Jonas Haraldsson [Tue, 12 Feb 2013 23:19:38 +0000 (00:19 +0100)]
prepend debug logs with username

9 years ago2.0 scrobble debug mode
Jonas Haraldsson [Sun, 3 Feb 2013 01:18:17 +0000 (02:18 +0100)]
2.0 scrobble debug mode

code still needs clean-up

9 years agoscrobble2 gets api_key from libreimport2
Jonas Haraldsson [Sat, 2 Feb 2013 00:55:26 +0000 (01:55 +0100)]
scrobble2 gets api_key from libreimport2

TODO: rewrite all things to be pretty and working ;)

9 years agoadded api_key
Jonas Haraldsson [Sat, 2 Feb 2013 00:49:33 +0000 (01:49 +0100)]
added api_key

9 years agoforgot to add libreimport2.py to earlier commit
Jonas Haraldsson [Sat, 2 Feb 2013 00:38:38 +0000 (01:38 +0100)]
forgot to add libreimport2.py to earlier commit

9 years agotrack.scrobble support
Jonas Haraldsson [Sat, 2 Feb 2013 00:30:35 +0000 (01:30 +0100)]
track.scrobble support

libreimport2 can now do scrobbles, with the help of scrobble2.py
new file scrobble2.py which is a modified version of scrobble.py to use
2.0 protocol instead of 1.2

9 years agorenamed lbimport.py to libreimport2.py
Jonas Haraldsson [Sat, 2 Feb 2013 00:27:02 +0000 (01:27 +0100)]
renamed lbimport.py to libreimport2.py

9 years agoChange the shebang line. Python isn't in /usr/bin for everyone ;-) 5
Stephen R Guglielmo [Fri, 7 Dec 2012 17:50:01 +0000 (12:50 -0500)]
Change the shebang line. Python isn't in /usr/bin for everyone ;-)

10 years agoMerge branch '#607' into lasttolibre 4
Petr Viktorin [Sat, 5 Nov 2011 12:59:37 +0000 (14:59 +0200)]
Merge branch '#607' into lasttolibre

10 years agoIf scrobbling fails, retry with exponential backoff. Fixes #607 in Redmine
Petr Viktorin [Sat, 5 Nov 2011 12:50:36 +0000 (14:50 +0200)]
If scrobbling fails, retry with exponential backoff. Fixes #607 in Redmine

10 years agoFix Feature #607 3
Íåêîòîðûé áîëüíîé èäèîò [Thu, 20 Oct 2011 11:36:14 +0000 (15:36 +0400)]
Fix Feature #607

10 years agoFix Feature #607
Íåêîòîðûé áîëüíîé èäèîò [Thu, 20 Oct 2011 11:09:33 +0000 (15:09 +0400)]
Fix Feature #607

10 years agoversion bump to 0.0.4
Jonas Haraldsson [Wed, 20 Jul 2011 10:34:32 +0000 (12:34 +0200)]
version bump to 0.0.4

10 years agoDo not export currently playing track. 2
Seth Behunin [Fri, 27 May 2011 20:07:46 +0000 (14:07 -0600)]
Do not export currently playing track.

The nowplaying track does not have the proper info needed for parsing and was causing an exception when attempting to get the date.  I just added a conditional to ignore the nowplaying track.

11 years agoDon't use timestamp as key for loved/banned
Jonas Haraldsson [Wed, 27 Apr 2011 06:56:04 +0000 (08:56 +0200)]
Don't use timestamp as key for loved/banned

Timestamp is not always unique for loved/banned tracks,
increment key for every track instead.

11 years agoNew script to import loved/banned tracks
Jonas Haraldsson [Tue, 26 Apr 2011 19:19:27 +0000 (21:19 +0200)]
New script to import loved/banned tracks

11 years agoVersion bump to 0.0.3
Jonas Haraldsson [Tue, 26 Apr 2011 17:53:57 +0000 (19:53 +0200)]
Version bump to 0.0.3

11 years agoAdded loved/banned track export
Jonas Haraldsson [Tue, 26 Apr 2011 15:24:47 +0000 (17:24 +0200)]
Added loved/banned track export

11 years agoChanged from minidom to ElementTree
Jonas Haraldsson [Tue, 26 Apr 2011 11:37:53 +0000 (13:37 +0200)]
Changed from minidom to ElementTree

11 years agoVersion number bump to 0.0.2!
Jonas Haraldsson [Sun, 3 Apr 2011 10:25:43 +0000 (12:25 +0200)]
Version number bump to 0.0.2!

11 years agoUse server name as url if not last.fm or libre.fm
Jonas Haraldsson [Sun, 3 Apr 2011 10:02:47 +0000 (12:02 +0200)]
Use server name as url if not last.fm or libre.fm

Instead of displaying a error message when server is not last.fm or
libre.fm, we now use the server name as url for exporting

11 years agoAdd the version string to the libre.fm API key 1
Petr Viktorin [Mon, 28 Mar 2011 22:27:12 +0000 (01:27 +0300)]
Add the version string to the libre.fm API key

11 years agoRetry failed connections after 1, 5, 10, and 62 seconds
Petr Viktorin [Tue, 29 Mar 2011 00:09:09 +0000 (03:09 +0300)]
Retry failed connections after 1, 5, 10, and 62 seconds

11 years agoMake lastexport.py usable as a library
Petr Viktorin [Mon, 28 Mar 2011 22:25:57 +0000 (01:25 +0300)]
Make lastexport.py usable as a library

Also make it  bit more Pythonic :)

11 years agoSupport a configurable sleep function in scrobble.py
Petr Viktorin [Mon, 28 Mar 2011 21:36:46 +0000 (00:36 +0300)]
Support a configurable sleep function in scrobble.py

11 years agoInitial commit
Jonas Haraldsson [Sat, 8 Jan 2011 13:23:01 +0000 (14:23 +0100)]
Initial commit