Switch to unified view

a/libupnpp/control/cdircontent.hxx b/libupnpp/control/cdircontent.hxx
...
...
106
        val = it->second;
106
        val = it->second;
107
        return true;
107
        return true;
108
108
109
    }
109
    }
110
110
111
    /** Simplified interface to retrieving values: we don't distinguish
112
     * between non-existing and empty, and we only use the first ressource
113
     */
114
    std::string f2s(const std::string& nm, bool isresfield) {
115
        std::string val;
116
        if (isresfield) {
117
            getrprop(0, nm, val);
118
        } else {
119
            getprop(nm, val);
120
        }
121
        return val;
122
    }
123
111
    int getDurationSeconds(unsigned ridx = 0) const
124
    int getDurationSeconds(unsigned ridx = 0) const
112
    {
125
    {
113
        std::string sdur;
126
        std::string sdur;
114
        if (!getrprop(ridx, "duration", sdur)) {
127
        if (!getrprop(ridx, "duration", sdur)) {
115
            //?? Avoid returning 0, who knows...
128
            //?? Avoid returning 0, who knows...