Skip to content

Commit

Permalink
[Fixed] Duplication of provider name in bouquets
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarCC authored and Huevos committed Aug 22, 2024
1 parent f9779bc commit 42acffc
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 42acffc

Please sign in to comment.