JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 30.04.2021, 18:25
amensant amensant is offline
Registered / Inactive
 
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: 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, 10:33
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,970
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,589
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: 80,970
Default

@mgpai: I'm lost but mgpai is here for rescue Thumbs up
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 08.09.2024, 13:37
jDX007 jDX007 is offline
Modem User
 
Join Date: Aug 2024
Posts: 2
Default

Hi, I'm sorry to revive this old topic. Still, I've been trying to use this script to embed the YouTube information (metadata) into the "Comments" section of the "Detail" Property for a downloaded YouTube file, but it doesn't do anything at all. I'm unsure if this script should be updated OR if it still works but I did something wrong.

I would appreciate if someone could help me with this

Thank you so much
Reply With Quote
  #7  
Old 09.09.2024, 11:35
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 72,880
Default

I recommend posing your question in the EventScripter thread too:
https://board.jdownloader.org/showthread.php?t=70525
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
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:00.
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.