CFileItemPtr fileItem = new CFileItem("C:/Movies/Movie01.mp4"); bool hasEPGInfo = fileItem->HasEPGInfoTag(); if (hasEPGInfo) { // do something with the EPG information }
CFileItemPtr fileItem = new CFileItem("C:/Music/Song01.mp3"); bool hasEPGInfo = fileItem->HasEPGInfoTag(); if (hasEPGInfo) { // do something with the EPG information } else { // display a message indicating that the file has no EPG information }In this example, we instantiate a new CFileItem object representing the audio file "Song01.mp3" located in the "C:/Music" directory. We then call the HasEPGInfoTag function on the fileItem object to check if EPG information is present in the file. If yes, we can perform further actions on the EPG information. However, if no EPG information is present in the file, we display a message to the user indicating that there is no EPG information available for the given file.