Giter Site home page Giter Site logo

Comments (5)

andrewrk avatar andrewrk commented on June 20, 2024

Appears to be an mpd bug regarding stickers. When I logged the file that sticker find song "/" "groovebasin.last-queued" is returning, I get:

.
.
.
Jónsi/Go/01. Go Do.mp3
Jónsi/Go/02. Animal Arithmetic.mp3
Jónsi/Go/03. Tornado.mp3
Jónsi/Go/04. Boy Lilikoi.mp3
Jónsi/Go/05. Sinking Friendships.mp3
Jónsi/Go/06. Kolnidur.mp3
Jónsi/Go/07. Around Us.mp3
J��nsi/Go/08. Grow Till Tall.mp3

Looks fine when I do the query in telnet though:

sticker find song "Jónsi" "groovebasin.last-queued"
file: Jónsi/Go/01. Go Do.mp3
sticker: groovebasin.last-queued=2012-02-26T11:18:46.164Z
file: Jónsi/Go/02. Animal Arithmetic.mp3
sticker: groovebasin.last-queued=2012-02-26T11:18:46.164Z
file: Jónsi/Go/03. Tornado.mp3
sticker: groovebasin.last-queued=2012-02-26T11:18:46.164Z
file: Jónsi/Go/04. Boy Lilikoi.mp3
sticker: groovebasin.last-queued=2012-02-26T11:18:46.164Z
file: Jónsi/Go/05. Sinking Friendships.mp3
sticker: groovebasin.last-queued=2012-02-26T11:18:46.164Z
file: Jónsi/Go/06. Kolnidur.mp3
sticker: groovebasin.last-queued=2012-02-26T11:18:46.164Z
file: Jónsi/Go/07. Around Us.mp3
sticker: groovebasin.last-queued=2012-02-26T11:18:46.164Z
file: Jónsi/Go/08. Grow Till Tall.mp3
sticker: groovebasin.last-queued=2012-02-26T11:18:46.164Z
file: Jónsi/Go/09. Hengilás.mp3
sticker: groovebasin.last-queued=2012-02-26T11:18:46.164Z

from groovebasin.

andrewrk avatar andrewrk commented on June 20, 2024

I changed updateStickers to:

.
.
.
        if track?
          track.last_queued = new Date(value)
        else
          log.error "#{current_file} has a last-queued sticker of #{value} but we don't have it in our library cache."
          track = my_mpd.library.track_table["Jónsi/Go/08. Grow Till Tall.mp3"]
          console.log "and here's grow till tall manually: #{track?}"

and now the output looks like:

$ npm -g start groovebasin

> [email protected] start /usr/local/lib/node_modules/groovebasin
> node server.js

The "sys" module is now called "util". It should have a similar interface.
   info  - socket.io started
   info  - Serving at http://localhost:16242/
   error - J��nsi/Go/08. Grow Till Tall.mp3 has a last-queued sticker of 2012-03-03T03:11:12.963Z but we don't have it in our library cache.
and here's grow till tall manually: true
   error - J��nsi/Go/08. Grow Till Tall.mp3 has a last-queued sticker of 2012-03-03T03:15:17.255Z but we don't have it in our library cache.
and here's grow till tall manually: true

from groovebasin.

andrewrk avatar andrewrk commented on June 20, 2024
        if track?
          track.last_queued = new Date(value)
        else
          log.error "#{current_file} has a last-queued sticker of #{value} but we don't have it in our library cache."
          str = "Jónsi/Go/08. Grow Till Tall.mp3"
          track = my_mpd.library.track_table[str]
          console.log "and here's #{str} manually: #{track.file}"
   error - J��nsi/Go/08. Grow Till Tall.mp3 has a last-queued sticker of 2012-03-03T03:15:17.255Z but we don't have it in our library cache.
and here's Jónsi/Go/08. Grow Till Tall.mp3 manually: Jónsi/Go/08. Grow Till Tall.mp3
   error - J��nsi/Go/08. Grow Till Tall.mp3 has a last-queued sticker of 2012-03-03T03:22:13.973Z but we don't have it in our library cache.
and here's Jónsi/Go/08. Grow Till Tall.mp3 manually: Jónsi/Go/08. Grow Till Tall.mp3

from groovebasin.

andrewrk avatar andrewrk commented on June 20, 2024

J��nsi/Go/08. Grow Till Tall.mp3

vs

Jónsi/Go/08. Grow Till Tall.mp3

from groovebasin.

andrewrk avatar andrewrk commented on June 20, 2024

I'm writing this off as a fluke.

from groovebasin.

Related Issues (20)

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.