path in the log files

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2277
    ghedo
    Participant

    think will usefull have in the log file the path of the mp3 played.
    i have 24 different folders (and 24 mp3_dir rows in the config files) whre my mpe are stored.
    when there is a problem with a song is not easy to track where the file is n the file system.

    here a (small) proposal of a patch to add the folder

    — ff-plugins.c 2008-03-07 18:30:51.000000000 +0100
    +++ /tmp/mt-daapd-svn-1696/src/ff-plugins.c 2007-10-29 07:02:27.000000000 +0100
    @@ -330,8 +330,8 @@
    pmp3->title,pmp3->id);

    DPRINTF(E_WARN,L_WS,
    – “Session %d: Streaming file ‘%s’ from folder ‘%s’ to %s (offset %ld)n”,
    – session,pmp3->fname , pmp3->path, ws_hostname(pwsc),(long)offset);
    + “Session %d: Streaming file ‘%s’ to %s (offset %ld)n”,
    + session,pmp3->fname, ws_hostname(pwsc),(long)offset);

    /* estimate the real length of this thing */
    bytes_copied = plugin_ssc_transcode(pwsc,pmp3,offset,1);
    @@ -399,8 +399,8 @@

    config_set_status(pwsc,session,”Streaming ‘%s’ (id %d)”,
    pmp3->title, pmp3->id);
    – DPRINTF(E_WARN,L_WS,”Session %d: Streaming file ‘%s’ from folder ‘%s’ to %s (offset %d)n”,
    – session,pmp3->fname, pmp3->path, ws_hostname(pwsc),(long)offset);
    + DPRINTF(E_WARN,L_WS,”Session %d: Streaming file ‘%s’ to %s (offset %d)n”,
    + session,pmp3->fname, ws_hostname(pwsc),(long)offset);

    if(offset) {
    DPRINTF(E_INF,L_WS,”Seeking to offset %ldn”,(long)offset);

Viewing 1 post (of 1 total)
  • The forum ‘Feature Requests’ is closed to new topics and replies.