Skip to content

Commit

Permalink
[video] Display video info of the movie only for versions (and no ext…
Browse files Browse the repository at this point in the history
…ras). Extras are attached to movies, but are not (any kind) of the movie itself.
  • Loading branch information
ksooo committed Dec 28, 2023
1 parent 2b91366 commit b98a2e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/video/VideoDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,8 @@ int CVideoDatabase::GetMovieId(const std::string& strFilenameAndPath)
if (idFile == -1)
strSQL=PrepareSQL("select idMovie from movie join files on files.idFile=movie.idFile where files.idPath=%i",idPath);
else
strSQL = PrepareSQL("select idMedia from videoversion where idFile = %i", idFile);
strSQL = PrepareSQL("SELECT idMedia FROM videoversion WHERE idFile = %i AND itemType = %i",
idFile, VideoAssetType::VERSION);

CLog::Log(LOGDEBUG, LOGDATABASE, "{} ({}), query = {}", __FUNCTION__,
CURL::GetRedacted(strFilenameAndPath), strSQL);
Expand Down

0 comments on commit b98a2e3

Please sign in to comment.