I haven't been able to make it work.. however, you can use FileView to extract the files name and path this way:
Simply replace ytFileName and ytFilePath with FileView child measures, and add a FileView parent measure, also we are going to use ytFileNumber to update fileview using OnChangeAction.
We are using the Date Created sort type and descending order so it always displays the last downloaded video.
Still don't modify the arguments, even though you're not using those to extract the file path and name, they're still needed for the script to correctly know when the download and post-process is finished.
The only downside to this method is that resetting the script won't clear the FileView measures strings, so the last downloaded video will be displayed unless you refresh the skin, or clear the downloads folder, or do something creative like I did, which simply sets the text option of the meter to a space when the value is 0. That way when you reset the script, the name will be also "reset". Also disabled the middle mouse action to avoid it from still playing the last video even though its name is not shown.
Simply replace ytFileName and ytFilePath with FileView child measures, and add a FileView parent measure, also we are going to use ytFileNumber to update fileview using OnChangeAction.
Code:
[ytFileNumber];Returns downloaded video file number when the download is finished.Measure=CalcGroup=ytdlpFormula=[&ytProgress:GetFileNumber()]DynamicVariables=1UpdateDivider=-1IfCondition=ytFileNumber > 0IfTrueAction=[!EnableMouseAction FileNameText MiddleMouseUpAction][!SetOption FileNameText Text ""][!EnableMeasureGroup fileview][!UpdateMeasure FileView]IfFalseAction=[!DisableMouseAction FileNameText MiddleMouseUpAction][!SetOption FileNameText Text " "][!DisableMeasureGroup fileview][!UpdateMeasure FileView]OnChangeAction=[!CommandMeasure fileview "Update"][FileView]Disabled=1Measure=PluginPlugin=FileViewGroup=FileViewPath="#ytDownloadsPath#"ShowDotDot=0ShowFolder=0SortType=DateSortDateType=CreatedSortAscending=0[ytFilePath];Returns downloaded video full path when the download is finished.Disabled=1Measure=PluginPlugin=FileViewGroup=FileViewIgnoreCount=1Path=[FileView]Type=FilePath [ytFileName];Returns downloaded video file name when the download is finished.Disabled=1Measure=PluginPlugin=FileViewGroup=FileViewIgnoreCount=1Path=[FileView]Type=FileName
Still don't modify the arguments, even though you're not using those to extract the file path and name, they're still needed for the script to correctly know when the download and post-process is finished.
The only downside to this method is that resetting the script won't clear the FileView measures strings, so the last downloaded video will be displayed unless you refresh the skin, or clear the downloads folder, or do something creative like I did, which simply sets the text option of the meter to a space when the value is 0. That way when you reset the script, the name will be also "reset". Also disabled the middle mouse action to avoid it from still playing the last video even though its name is not shown.
Statistics: Posted by RicardoTM — Yesterday, 6:56 pm