mirror of
https://github.com/Rafostar/clapper.git
synced 2025-09-01 08:51:59 +02:00
Fix missing file extension in online URIs
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user