GithubHelp home page GithubHelp logo

Comments (9)

drook avatar drook commented on August 26, 2024

Unfortunately, github formatting ate some of the xml formatting stanzas, not sure how to fix the formatting.

Update: I fixed the formatting, sorry.

from mpdas.

hrkfdn avatar hrkfdn commented on August 26, 2024

I'm guessing you don't happen to live in the future? ;)
Ok, noted as well. Those definitely aren't correct timestamps (5:44:06pm on Sunday, 1. May, 3059).
Thanks, I'll check it out!

from mpdas.

drook avatar drook commented on August 26, 2024

Yeah, I did some basic digging - looks like when compiled without any optimizations mpdas gets more comprehensive errors: seems like for some reason the message that it's trying to send to the last.fm is empty. For example:

(18:14:05) [ERROR] Code: 6
(18:14:05) [ERROR] Error scrobbling. Trying again in 5 minutes.
(18:14:05) [ERROR] Re-Handshaking!
(18:14:05) [INFO] Last.fm handshake successful. SessionID: 0a61dcbebe1bfc28ace809fdcbe5ccfe
(18:16:38) [INFO] New song: Evol - Sorrow Of The Witch (Live Suicide Pub Venezia 2-11-95)
(18:16:39) [INFO] Updated "Now Playing" status successfully.
(18:19:05) [INFO] Scrobbling:  - 
(18:19:05) [ERROR] Last.fm returned an error while scrobbling:
<?xml version="1.0" encoding="utf-8"?>
<lfm status="failed">
<error code="6">
    Missing required parameter artist
</error>
</lfm>

(18:19:05) [ERROR] Code: 6

Tags are in place, of course.
However, I just don't understand how can this happen. The cache is filling:

> cat /home/emz/.mpdascache


0
0
1
Evol
The Awakening (Outro)
94
1404734739
Dies Irae
1
Evol
Witchlord (Bonus Track)
566
1404734833
Dies Irae
1
Evol
Sorrow Of The Witch (Live Suicide Pub Venezia 2-11-95)
329
1404735398
Dies Irae

from mpdas.

hrkfdn avatar hrkfdn commented on August 26, 2024

Thanks for the further input. Very odd. This is with GCC as the compiler, right?

from mpdas.

drook avatar drook commented on August 26, 2024

Yup:

# gcc -v
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]

from mpdas.

drook avatar drook commented on August 26, 2024

Funny thing. I decided to look what will happen if I will run the clang-compiled code without optimization. Removing optimizations also revealed some of the minor syntax-related errors that clang was complaining about. Fixinng them and removing -O2 optimization didn't bring it to life (was still crashing); however, after I recompiled mpdas with gcc (leaving changes intact) I got working scrobbler.

Patch: http://zhegan.in/files/mpdas.diff

[root@bsdrookie:work/mpdas-0.3.0]# ./mpdas -c /usr/local/etc/mpdasrc
(18:32:11) [INFO] Config file (/home/emz/.mpdasrc) does not exist or is not readable.
(18:32:11) [INFO] Connected to MPD.
(18:32:11) [INFO] Last.fm handshake successful. SessionID: 0a61dcbebe1bfc28ace809fdcbe5ccfe
(18:32:11) [INFO] New song: Evol - Portraits
(18:32:12) [INFO] Updated "Now Playing" status successfully.
(18:32:12) [INFO] Scrobbling: 0 - 1
(18:32:12) [INFO] Scrobbled successfully.
(18:34:34) [INFO] New song: Evol - Ancient Abbey
(18:34:34) [INFO] Updated "Now Playing" status successfully.
(18:37:35) [INFO] Scrobbling: Evol - Ancient Abbey
(18:37:36) [INFO] Scrobbled successfully.
(18:40:39) [INFO] New song: Evol - Inquisition Begins
(18:40:39) [INFO] Updated "Now Playing" status successfully.
(18:41:31) [INFO] Scrobbling: Evol - Inquisition Begins
(18:41:31) [INFO] Scrobbled successfully.
(18:42:23) [INFO] New song: Evol - Once Upon A Time...
(18:42:23) [INFO] Updated "Now Playing" status successfully.
(18:45:27) [INFO] Scrobbling: Evol - Once Upon A Time...
(18:45:28) [INFO] Scrobbled successfully.
(18:48:27) [INFO] New song: Evol - Il Principle di Anghista
(18:48:28) [INFO] Updated "Now Playing" status successfully.
(18:51:43) [INFO] Scrobbling: Evol - Il Principle di Anghista
(18:51:43) [INFO] Scrobbled successfully.

from mpdas.

drook avatar drook commented on August 26, 2024

"0 - 1" is probably from old cache file.

from mpdas.

hrkfdn avatar hrkfdn commented on August 26, 2024

Yea, the codebase is definitely in need of a major cleanup or even rewrite, something that's been on my list for a while.

from mpdas.

hrkfdn avatar hrkfdn commented on August 26, 2024

I'll close this one for now, as it could be related to #8.

Should the issue persist, please let me know.

from mpdas.

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.