Switch to unified view

a/src/upmpdutils.hxx b/src/upmpdutils.hxx
...
...
49
    std::string mime;
49
    std::string mime;
50
    std::string date;
50
    std::string date;
51
    
51
    
52
    int duration_secs{0};
52
    int duration_secs{0};
53
    int64_t size{0};
53
    int64_t size{0};
54
    int bitrate{192000};
54
    int bitrate{0};
55
    int samplefreq{44100};
55
    int samplefreq{0};
56
    int channels{2};
56
    int channels{0};
57
    
57
    
58
    int mpdid{0};
58
    int mpdid{0};
59
    bool iscontainer{false};
59
    bool iscontainer{false};
60
    bool searchable{false};
60
    bool searchable{false};
61
61
...
...
63
        return std::string("class [" + upnpClass + "] Artist [" + artist +
63
        return std::string("class [" + upnpClass + "] Artist [" + artist +
64
                           "] Album [" +  album + " Title [" + title +
64
                           "] Album [" +  album + " Title [" + title +
65
                           "] Tno [" + tracknum + "] Uri [" + uri + "]");
65
                           "] Tno [" + tracknum + "] Uri [" + uri + "]");
66
    }
66
    }
67
    // Format to DIDL fragment 
67
    // Format to DIDL fragment 
68
    std::string didl();
68
    std::string didl() const;
69
69
70
    static UpSong container(const std::string& id, const std::string& pid,
70
    static UpSong container(const std::string& id, const std::string& pid,
71
                const std::string& title, bool sable = true,
71
                const std::string& title, bool sable = true,
72
                const std::string& annot = std::string()) {
72
                const std::string& annot = std::string()) {
73
    UpSong song;
73
    UpSong song;