Comments (9)
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.
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.
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.
Thanks for the further input. Very odd. This is with GCC as the compiler, right?
from mpdas.
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.
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.
"0 - 1" is probably from old cache file.
from mpdas.
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.
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)
- mpdas as daemon HOT 4
- implement a different authentication mechanism
- Authentication failed. Please check your login data. HOT 1
- [FEATURE REQUEST] Consider XDG config directory HOT 5
- mpdas 0.4.3 checksum mismatch HOT 2
- Password doesn't work. HOT 16
- libre.fm: Code 6 HOT 8
- Error code 13 HOT 4
- Unable to compile mpdas on OSMC HOT 3
- Scrobble works on 'Artist' and not on 'Album Artist'? HOT 13
- compiling mpdas in buildroot HOT 3
- Scrobble webradio songs
- Scrobbled tracks not saving HOT 11
- Add ListenBrainz.org scrobble support HOT 1
- mpdas can't connect to mpd HOT 7
- Fails only when run by systemd HOT 1
- single mode not scrobbling HOT 1
- Add support for the `$MPD_HOST` environment variable
- libcurl: timeout was reached after a period of inactivity
- Authentication Error, Code: 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpdas.