Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

lastfmcovers logging incorrect date (off by 273 years) & not pulling in covers #376

Open
itsbrex opened this issue Jun 27, 2015 · 13 comments

Comments

@itsbrex
Copy link

itsbrex commented Jun 27, 2015

2 Centuries, 7 Decades, 3 years, 9 months, 1 week, and 4 days to be exact.

It's pulling in the scrobbled track data just fine, just not getting the covers and logging it to the correct date.

lastfm logger

Here is what I have in my slogger_config file. Btw, even though I have the lastfmcovers.rb plugin enabled (and not the lastfmlogger.rb one) when I update the config, it still pulls in the LastFMLogger title as you can see below.

LastFMLogger:
  lastfm_description:
  - Logs songs scrobbled for time period.
  - lastfm_user is your Last.fm username.
  - lastfm_feeds is an array that determines whether it grabs recent tracks, loved
    tracks, or both
  - lastfm_include_timestamps (true/false) will add a timestamp prefix based on @time_format
    to each song
  LastFMLogger_last_run: Fri Jun 26 22:18:30 2015
  lastfm_include_timestamps: true
  lastfm_user: ANODIGITAL
  lastfm_covers: true
  lastfm_chunk: ''
  lastfm_feeds:
  - recent
  - loved
  lastfm_tags: '#social #music'
@itsbrex itsbrex changed the title LastFM COVERS date is off by 273 years...not pulling in covers either. lastfmcovers logging incorrect date (off by 273 years) & not pulling in covers Jun 27, 2015
@ttscoff
Copy link
Owner

ttscoff commented Jun 27, 2015

I don't know what the lastfmcovers plugin is. You should find the author
of that and request support from him or her.

-Brett

On 27 Jun 2015, at 0:58, Brian Roach wrote:

2 Centuries, 7 Decades, 3 years, 9 months, 1 week, and 4 days to be
exact.

It's pulling in the scrobbled track data just fine, just not getting
the covers and logging it to the correct date.

lastfm logger

Here is what I have in my slogger_config file. Btw, even though I have
the lastfmcovers.rb plugin enabled (and not the lastfmlogger.rb one)
when I update the config, it still pulls in the LastFMLogger title as
you can see below.

LastFMLogger:
lastfm_description:
- Logs songs scrobbled for time period.
- lastfm_user is your Last.fm username.
- lastfm_feeds is an array that determines whether it grabs recent 
tracks, loved
 tracks, or both
- lastfm_include_timestamps (true/false) will add a timestamp prefix 
based on @time_format
 to each song
LastFMLogger_last_run: Fri Jun 26 22:18:30 2015
lastfm_include_timestamps: true
lastfm_user: ANODIGITAL
lastfm_covers: true
lastfm_chunk: ''
lastfm_feeds:
- recent
- loved
lastfm_tags: '#social #music'

Reply to this email directly or view it on GitHub:
#376

@itsbrex
Copy link
Author

itsbrex commented Jun 27, 2015

Hi Brett,

Bare with me - I'm still learning how github and all this works.

So I downloaded the zip from the main Slogger repo and the lastfmcovers plugin was in the plugins_disabled folder. It does say "Based off Brett Terpstra's...with additions from Micah Cooper." Does that mean I should go to his page and open an issue or is there a way to tag him from here? What is the protocol?

Brian

@ttscoff
Copy link
Owner

ttscoff commented Jun 27, 2015

Yes, or just @ mention his username in this thread to get him in on it. I haven't seen this date issue in my version yet, but not 100% that it's not a shared issue.

On Jun 27, 2015, at 8:57 AM, Brian Roach [email protected] wrote:

Hi Brett,

Bare with me - I'm still learning how github and all this works.

So I downloaded the zip from the main Slogger repo and the lastfmcovers plugin was in the plugins_disabled folder. It does say "Based off Brett Terpstra's...with additions from Micah Cooper." Does that mean I should go to his page and open an issue or is there a way to tag him from here? What is the protocol?

Brian


Reply to this email directly or view it on GitHub.

@itsbrex
Copy link
Author

itsbrex commented Jun 27, 2015

Ok. Sounds good. @coopermj could you please chime in on this. Having some trouble with the lastfmcovers.rb gem

@coopermj
Copy link
Contributor

Well, that’s weird behavior. Just for fun, switch lastfm_chunk: from ‘’ to completely blank.

It’s still purring along on my system and this is the only time I’ve heard someone having this problem.

On Jun 27, 2015, at 1:25 PM, Brian Roach <[email protected]mailto:[email protected]> wrote:

Ok. Sounds good. @coopermjhttps://github.com/coopermj could you please chime in on this. Having some trouble with the lastfmcovers.rb gem


Reply to this email directly or view it on GitHubhttps://github.com//issues/376#issuecomment-116106138.

@itsbrex
Copy link
Author

itsbrex commented Jun 29, 2015

No luck. Wouldn't run if I removed the ''

@coopermj
Copy link
Contributor

Weird – that’s how mine is set. I just updated to the latest Slogger codebase and switched to Day One sync and it still works. When you use the original LastFM plugin, does it follow the same behavior?

On Jun 29, 2015, at 4:30 PM, Brian Roach <[email protected]mailto:[email protected]> wrote:

No luck. Wouldn't run if I removed the ''


Reply to this email directly or view it on GitHubhttps://github.com//issues/376#issuecomment-116834366.

@crcastle
Copy link

This bug still exists. @coopermj did you test the configuration where lastfm_chunk is set to nothing (either empty string or blank)? The bug is pretty clear in that configuration.

Here you set periodDays to 99999. Then here you add periodDays to targetDate to get endDate. endDate is then used as the timestamp for the Day One journal entry.

I stopped debugging after finding this because I'm having a hard time following the code. So until this is fixed, the lastfm_chunk config parameter must be set to daily (I bet weekly gives the wrong date too, but I didn't test it). But even when set to daily, I'm finding the Day One journal entry time to be off by about a day in the future, so I'm dumping this and going with a non-slogger IFTTT.com/Hazel solution that I just got working.

Sorry if this comes off negative. Just getting a bit frustrated with the general code quality and brittleness of Slogger plugins.

@ttscoff
Copy link
Owner

ttscoff commented Nov 14, 2015

I think a refund is in order.

  • Brett

On Nov 14, 2015, at 2:10 AM, Chris Castle [email protected] wrote:

This bug still exists. @coopermj did you test the configuration where lastfm_chunk is set to nothing (either empty string or blank)? The bug is pretty clear in that configuration.

Here you set periodDays to 99999. Then here you add periodDays to targetDate to get endDate. endDate is then used as the timestamp for the Day One journal entry.

I stopped debugging after finding this because I'm having a hard time following the code. So until this is fixed, the lastfm_chunk config parameter must be set to daily (I bet weekly gives the wrong date too, but I didn't test it). But even when set to daily, I'm finding the Day One journal entry time to be off by about a day in the future, so I'm dumping this and going with a non-slogger IFTTT.com/Hazel solution that I just got working.

Sorry if this comes off negative. Just getting a bit frustrated with the general code quality and brittleness of Slogger plugins.


Reply to this email directly or view it on GitHub.

@crcastle
Copy link

Heh, I know @ttscoff... I do really appreciate the work you and others have done creating slogger. Apologies for my "entitled" response.

@ttscoff
Copy link
Owner

ttscoff commented Nov 15, 2015

Apologies for my "dickish" response, it was early in the morning :/.

On Nov 14, 2015, at 3:13 PM, Chris Castle [email protected] wrote:

Heh, I know @ttscoff... I do really appreciate the work you and others have done creating slogger. Apologies for my "entitled" response.


Reply to this email directly or view it on GitHub.

@coopermj
Copy link
Contributor

I suppose all that’s left is for me to apologize for my lousy code! ;)

Anyway, I think I’ve found the issue. Well, first issue is this is my first ruby script. Second, I’m attempting to solve 3 use cases in one and set the entry date to the period end instead of the period beginning. Obviously exacerbated by the long-period run. Anyway, I’m not a regular git user, so when I get that sorted out, I’ll issue a pull request with the fix.

On Nov 14, 2015, at 10:36 PM, Brett Terpstra <[email protected]mailto:[email protected]> wrote:

Apologies for my "dickish" response, it was early in the morning :/.

On Nov 14, 2015, at 3:13 PM, Chris Castle <[email protected]mailto:[email protected]> wrote:

Heh, I know @ttscoff... I do really appreciate the work you and others have done creating slogger. Apologies for my "entitled" response.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/376#issuecomment-156775970.

@crcastle
Copy link

Thanks @coopermj and again sorry for my crankiness! I appreciate your contributions!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants