View Single Post
  #1153  
Old 06.03.2020, 07:40
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by zreenmkr View Post
How or what exactly getProperty(this) is looking for and how does it know what to look for? and what is 'this'?
If JD has stored strings from the source page as 'property' it can be accessed using the built-in methods or by using your own prototype/function. 'this' would the name of that 'property' in that context.

Code:
//var myObject = myDownloadLink.getProperty(myString);
var myChannelName = myDownloadLink.getProperty("YT_CHANNEL");

All properties available for a particular link can be accessed using this method. Some plugins will also store media tags like 'artist', 'album' etc. as 'property'. Check plugin source code for the list of properties stored by it.

Quote:
I've looked into yt source page but didn't see 'YT_ID' or 'YT_TITLE' set as div id. Could you please elaborate?
It is not a part of the source page. It is a string containing the 'property' variables which is used to create a new html element for use in the file which will be generated/exported by the script.
Reply With Quote