Skip to content

Commit

Permalink
Revert "MediaWrapper: fix issue with smb title being empty"
Browse files Browse the repository at this point in the history
This reverts commit 1cf5481.

This commit is based on 82936d2 which is being reverted for causing
issues when displaying network share titles
  • Loading branch information
Skantes committed Jan 25, 2023
1 parent 1785935 commit a2c2011
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ private static String getMetaId(IMedia media, String defaultMeta, int id, boolea
private String updateTitleMeta(IMedia media) {
String libvlcTitle = getMetaId(media, mTitle, Media.Meta.Title, true);
String fileName = getFileName();
if (TextUtils.isEmpty(fileName) || fileName.equals(libvlcTitle))
if (!TextUtils.isEmpty(libvlcTitle) && !TextUtils.isEmpty(fileName) && !libvlcTitle.equals(fileName))
return libvlcTitle;
return getTitle();
}
Expand Down

0 comments on commit a2c2011

Please sign in to comment.