|
#1
|
|||
|
|||
![]()
I am trying to download information about multiple YouTube videos as *txt files, but I am only getting the video description.
How can I add the url, number of views, date, number of likes/dislikes, the channel name & url and download this data aswell? Thanks. Last edited by amensant; 01.05.2021 at 22:56. |
#2
|
|||
|
|||
![]()
try to use the plugin,
there you will find 6 of your 7 *variables* that you can use out of the box |
#3
|
||||
|
||||
![]()
@Cham089: I guess he/she doesn't know how to use them.
@amesant: At the moment some of those infos are available via packagizer or eventscripter. I will check on monday
__________________
JD-Dev & Server-Admin |
#4
|
|||
|
|||
![]() Code:
/* Add metadata to YT description file Trigger: A download stopeed */ if (link.getProperty("YT_COLLECTION") == "Best DESCRIPTION") { var description = link.downloadPath; var content = ""; var data = { url: link.getProperty("URL_CONTAINER"), views: link.getProperty("YT_VIEWS"), date: new Date(link.getProperty("YT_DATE")).toLocaleString(), name: link.getProperty("YT_CHANNEL"), channel: "www.youtube.com/channel/" + link.getProperty("YT_CHANNEL_ID"), } for (x in data) { if (data[x]) { content += x + " : " + data[x] + "\r\n"; } } content += "\r\n" + readFile(description); getPath(description).delete(); writeFile(description, content, true); } |
#5
|
||||
|
||||
![]()
@mgpai: I'm lost but mgpai is here for rescue
![]()
__________________
JD-Dev & Server-Admin |
![]() |
Thread Tools | |
Display Modes | |
|
|