View Single Post
  #1236  
Old 14.03.2020, 13:05
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by Sokub View Post
Does the double-click work on your Windows-System for unfinished files? Have you tried it?

And yes, I would like to try the script for the context menu
Post by @zreenmkr confirms the same behaviour in Windows OS. I hadn't tested it myself. It was just my assumption. Sorry about that.

Code:
// Open partially download file for the selected download link
// Trigger: Downloadlist Contextmenu Button Pressed
// Customize download list context menu > Add a new "Eventscripter Trigger" button > Rename it to "Open PART file" (without quotes) > Change Icon (Optional)

if (name == "Open PART file") {
    var link = dlSelection.getContextLink();

    if (link) {
        var player = "/videolan/vlc/vlc"; // <- Set path to media player
        var partFile = getPath(link.getDownloadPath() + ".part");

        if (partFile.exists()) callAsync(null, player, partFile);
    }
}
Reply With Quote