Skip to content

Commit

Permalink
[Fixed] Duplication of provider name in bouquets (#4056)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarCC authored Aug 22, 2024
1 parent b0b7239 commit c45d900
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/dvb/db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,13 @@ RESULT eBouquet::flushChanges()
goto err;
if ( i->name.length() ) {
std::string fullName = i->name;
std::string provPart = "";
if (i->prov.length())
fullName += "" + i->prov;
{
provPart += i->prov;
if (fullName.find(provPart) == std::string::npos)
fullName += provPart;
}
if ( fprintf(f, "#DESCRIPTION %s\r\n", fullName.c_str()) < 0 )
goto err;
}
Expand Down

0 comments on commit c45d900

Please sign in to comment.