JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 30.04.2021, 19:25
amensant amensant is offline
Modem User
 
Join Date: Apr 2021
Posts: 1
Post Downloading more information in the Youtube video description file

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 23:56.
Reply With Quote
  #2  
Old 02.05.2021, 06:27
Cham089 Cham089 is offline
Modem User
 
Join Date: Mar 2021
Posts: 2
Default

try to use the plugin,
there you will find 6 of your 7 *variables*
that you can use out of the box
Reply With Quote
  #3  
Old 02.05.2021, 11:33
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

@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
Reply With Quote
  #4  
Old 04.05.2021, 09:05
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

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);
}
Reply With Quote
  #5  
Old 04.05.2021, 14:51
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

@mgpai: I'm lost but mgpai is here for rescue Thumbs up
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 01:11.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.