JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 30.04.2021, 18: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 22:56.
Reply With Quote
  #2  
Old 02.05.2021, 05:27
Cham089 Cham089 is offline
Modem User
 
Join Date: Mar 2021
Posts: 1
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, 10:33
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,759
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, 08:05
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,201
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, 13:51
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,759
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 23:57.
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 - 2021, Jelsoft Enterprises Ltd.