Skip to content
This repository has been archived by the owner on Jul 25, 2020. It is now read-only.

Commit

Permalink
🐛 Fix crash when no category in programs
Browse files Browse the repository at this point in the history
  • Loading branch information
mzyy94 committed Jun 19, 2016
1 parent 1d9b92f commit 914f0f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chinachu/schedule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ namespace chinachu {
epg.strPlotOutline = p["subTitle"].get<std::string>();
epg.strPlot = p["detail"].get<std::string>();
epg.strOriginalTitle = p["fullTitle"].get<std::string>();
epg.strGenreDescription = p["category"].get<std::string>();
epg.strGenreDescription = p["category"].is<std::string>() ? p["category"].get<std::string>() : "";
epg.iEpisodeNumber = o["episode"].is<double>() ? (unsigned int)(o["episode"].get<double>()) : 0;

ch.epgs.push_back(epg);
Expand Down

0 comments on commit 914f0f6

Please sign in to comment.