Fix missing file extension in online URIs

This commit is contained in:
Rafał Dzięgiel
2021-04-09 18:16:02 +02:00
parent ebe72f20b5
commit dafa2cfdf5
2 changed files with 11 additions and 16 deletions

View File

@@ -316,11 +316,11 @@ class ClapperWidget extends Gtk.Grid
title = this.player.customVideoTitle;
if(!title) {
const subtitle = this.player.playlistWidget.getActiveFilename();
const item = this.player.playlistWidget.getActiveRow();
title = (subtitle.includes('.'))
? subtitle.split('.').slice(0, -1).join('.')
: subtitle;
title = (item.isLocalFile && item.filename.includes('.'))
? item.filename.split('.').slice(0, -1).join('.')
: item.filename;
}
this.root.title = title;