JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 11.12.2024, 15:08
rosalyn rosalyn is offline
Junior Loader
 
Join Date: Sep 2023
Posts: 12
Default Pornhub Plugin - verfügbare props ?

Hallo,
ich kann leider keine Liste aller verfügbaren props für den Paketverwalter finden. Rechtsklick auf das Textfeld, so wie der popup hinweis es mir sagt, zeigt mir nur 6 stück an. Ich verwende aber bereits welche, die dort nicht aufgelistet sind. Gibt es irgendwo eine Liste aller props ?

Ich benötige nämlich alles was direkt unter einem video steht:
Kategorien, Pornostars, Tags ,Model Attributes und Produktion.

Sind diese Werte bereits verfügbar ?

Beste Grüße
Reply With Quote
  #2  
Old 11.12.2024, 15:14
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,753
Default

Forensuche nach "jd:prop pornhub" sollte einige Ergebnisse liefern, ansonsten hier copy & paste:
Code:
    public static final String                    PROPERTY_TITLE                          = "title";
    public static final String                    PROPERTY_FORMAT                         = "format";
    public static final String                    PROPERTY_QUALITY                        = "quality";
    public static final String                    PROPERTY_DIRECTLINK                     = "directlink";
    public static final String                    PROPERTY_DATE                           = "date";
    public static final String                    PROPERTY_CATEGORIES_COMMA_SEPARATED     = "categories_comma_separated";
    public static final String                    PROPERTY_TAGS_COMMA_SEPARATED           = "tags_comma_separated";
    public static final String                    PROPERTY_ACTORS_COMMA_SEPARATED         = "actors_comma_separated";
    public static final String                    PROPERTY_USERNAME                       = "username";
    public static final String                    PROPERTY_VIEWKEY                        = "viewkey";
__________________
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
  #3  
Old 11.12.2024, 15:18
rosalyn rosalyn is offline
Junior Loader
 
Join Date: Sep 2023
Posts: 12
Default

Vielen lieben Dank!
Mir würden dann noch die Model Attributes und Produktion fehlen.
Bekomm ich die irgendwie anders oder müsste das implementiert werden ?

Beste Grüße
Reply With Quote
  #4  
Old 11.12.2024, 15:19
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,753
Default

Testlinks und Beschreibung, wo diese Attribute zu finden sind bitte.
__________________
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
  #5  
Old 11.12.2024, 15:28
rosalyn rosalyn is offline
Junior Loader
 
Join Date: Sep 2023
Posts: 12
Default

Ich habe grade sogar noch eines entdeckt ("Language Spoken"), weiss nicht welche dinge hier noch so stehen können.
Auf jeden fall hier der erste Link als Beispiel:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
-> Die Dinge, die unter dem Actorname stehen, auf demselben Level, wie die tags: Hier sind es Kategorien, Pornostars (leer), Tags, Produktion und Language Spoken.

zweiter Link:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
-> hier fehlt Language Spoken, aber Model Attributes sind vorhanden.
Reply With Quote
  #6  
Old 11.12.2024, 15:53
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,753
Default

Neue pornhub Properties für alle Links, die nach Release des nächsten Pluginupdates hinzugefügt werden:
  • video_production
  • language_spoken_in_video
  • model_attributes_comma_separated

Wartest du auf einen angekündigten Bugfix oder ein neues Feature?
Updates werden nicht immer sofort bereitgestellt!
Bitte lies unser Update FAQ! | Please read our Update FAQ!

---
Are you waiting for recently announced changes to get released?
Updates to not necessarily get released immediately!
Bitte lies unser Update FAQ! | Please read our Update FAQ!


-psp-
__________________
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
  #7  
Old 11.12.2024, 16:35
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,753
Default

Update ist live.
EDIT

Nachtrag:
Wie man verfügbare Plugin Properties findet, ist hier erklärt:
https://support.jdownloader.org/de/k...the-packagizer
__________________
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?

Last edited by pspzockerscene; 11.12.2024 at 16:35. Reason: EDIT
Reply With Quote
  #8  
Old 11.12.2024, 17:28
rosalyn rosalyn is offline
Junior Loader
 
Join Date: Sep 2023
Posts: 12
Default

Vielen Dank, funktioniert super!
Reply With Quote
  #9  
Old 12.12.2024, 10:38
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,753
Default

Danke für dein Feedback
__________________
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
  #10  
Old 12.12.2024, 11:45
rosalyn rosalyn is offline
Junior Loader
 
Join Date: Sep 2023
Posts: 12
Default

hätte aber trotzdem noch eine frage: wieso erscheint als value for pornstars ein "No", wenn die liste leer ist ? hast du das dahingeschrieben, oder kommt dieser wert von dort ?
Reply With Quote
  #11  
Old 12.12.2024, 11:54
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,753
Default

Testlinks bitte.
__________________
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
  #12  
Old 12.12.2024, 12:00
rosalyn rosalyn is offline
Junior Loader
 
Join Date: Sep 2023
Posts: 12
Default

**External links are only visible to Support Staff****External links are only visible to Support Staff**

hier zB bekomme ich für actors ein "No"
Reply With Quote
  #13  
Old 12.12.2024, 12:05
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,753
Default

Siehe html code von pornhub.com:
Code:
'pornstars_in_video' : 'No',
__________________
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
  #14  
Old 12.12.2024, 12:13
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,753
Default

Nachtrag:
Die Datenquelle war schlecht: Dort steht auch "No" bei Videos, die eine Liste von Pornstars haben z.B.
de.pornhub.org/view_video.php?viewkey=674f5d431bc0a

Plugin angepasst.

Wartest du auf einen angekündigten Bugfix oder ein neues Feature?
Updates werden nicht immer sofort bereitgestellt!
Bitte lies unser Update FAQ! | Please read our Update FAQ!

---
Are you waiting for recently announced changes to get released?
Updates to not necessarily get released immediately!
Bitte lies unser Update FAQ! | Please read our Update FAQ!


-psp-
__________________
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
  #15  
Old 12.12.2024, 12:33
rosalyn rosalyn is offline
Junior Loader
 
Join Date: Sep 2023
Posts: 12
Default

Danke du bist ein Schatz, jetzt bekomme ich einen leeren Value, wenn die Liste leer ist und bei deinem Beispiellink eine Liste mit actors.
Reply With Quote
  #16  
Old 12.12.2024, 13:23
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,753
Default

So soll es sein.

Danke fürs Feedback.

Was stellst du mit den Informatinen an?
__________________
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
  #17  
Old 16.12.2024, 22:52
rosalyn rosalyn is offline
Junior Loader
 
Join Date: Sep 2023
Posts: 12
Default

also zunächst schreib ich mir die ganzen daten mit dem paketverwalter in das kommentar feld der video datei:

Code:
{"username":"<jd:prop:username>","title":"<jd:prop:title>","date":"<jd:prop:date>","viewkey":"<jd:prop:viewkey>","directlink":"<jd:prop:directlink>","quality":"<jd:prop:quality>","format":"<jd:prop:format>","categories":"<jd:prop:categories_comma_separated>","actors":"<jd:prop:actors_comma_separated>","tags":"<jd:prop:tags_comma_separated>","model_tags":"<jd:prop:model_attributes_comma_separated>","production":"<jd:prop:video_production>","language":"<jd:prop:language_spoken_in_video>"}
so hab ich die daten erstmal in nem validen json format.

dann benutz ich dein skript in etwas modifizierter form und lasse das mit dem ereignis skripter ausführen:

Code:
// Writes link comment to text file
// Trigger: "A download has stopped"
// Has some settings, just search for "settings" in this code

// Main function that runs the script based on the early return principle
function run() {
    // Early return if the download is not finished
    if (!link.isFinished()) {
        // console.log("Link is not yet downloaded");
        return;
    }

    var comment = link.getComment(); // Retrieve the comment from the link

    // Early return if the comment is empty
    if (!comment) {
        return;
    }

    // Retrieve the link's file name and download folder path
    var fileName = link.name;
    var sourcePath = package.getDownloadFolder();
    
    // "Settings", see vars down below
    // Define allowed file types (set to null or undefined to allow all types)
    var allowedFileTypes = null; // Example: set to null to allow all file types
    // var allowedFileTypes = [".mp3"];
    // Option to overwrite existing files
    var overwriteExisting = false; // Set to true to overwrite existing files

    // Check if the file type is allowed (skip check if allowedFileTypes is null or undefined)
    if (allowedFileTypes && !allowedFileTypes.some(function(extension) { return fileName.endsWith(extension); })) {
        return;
    }

    // Change the file name to add ".txt" as the new extension
    var outputPath = sourcePath + "/" + adjustFileName(fileName) + ".json";

    // Early return if the file exists and overwriting is disabled
    if (!overwriteExisting && getPath(outputPath).exists()) {
        return;
    }
    
    // Write the comment to the file
    writeFile(outputPath, formatJsonString(comment), true);
}

// Funktion zum Überprüfen und Anpassen des Dateinamens
function adjustFileName(fileName) {
    // Splitte den Dateinamen auf Unterstriche
    var fileNameParts = fileName.split('_');

    // Entferne den vorletzten Teil, wenn er eine Zahl mit einem "p" am Ende ist (z.B. 1080p, 480p)
    if (fileNameParts.length > 1 && /^\d+p\.mp4$/.test(fileNameParts[fileNameParts.length - 1])) {
        fileNameParts.pop();
    }
    
        // Entferne den letzten Teil, wenn er "hls" ist
    if (fileNameParts[fileNameParts.length - 1] === 'hls') {
        fileNameParts.pop();
    }

    // Füge die verbleibenden Teile wieder zusammen
    return fileNameParts.join('_');
}

// Funktion zum Formatieren des JSON-Strings
function formatJsonString(jsonString) {
    try {
        // Parse den JSON-String in ein Objekt
        var jsonObject = JSON.parse(jsonString);
        
        // Konvertiere das Objekt zurück in einen formatierten JSON-String
        return JSON.stringify(jsonObject, null, 4); // 4 Leerzeichen für Einrückung
    } catch (error) {
        console.error('Fehler beim Parsen des JSON-Strings:', error.message);
        return null;
    }
}

// Execute the run function
run();
musste mir noch hinzufügen, dass json ordentlich formatiert rauskommt, dann dass überhaupt n json rauskommt und der dateiname hatte mir so nicht gefallen. wollte, dass er gleich heisst wie das jpg vom thumbnail.

beste grüße
Reply With Quote
  #18  
Old 17.12.2024, 10:31
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,642
Default

@rosalyn: Nur als Information. Du kannst die Informationen auch direkt im Eventscripter Skript abrufen und brauchst den Umweg über das Kommentarfeld nicht. Sprich die Properties kannst du auch mittels Lese/Get Methoden direkt in deinem Skript holen. Dann kannst du auch das JSON "on the fly" zusammenbauen und mit allen möglichen Informationen anreichern und brauchst keine *Zwischenspeicherung via Kommentar*
__________________
JD-Dev & Server-Admin
Reply With Quote
  #19  
Old 17.12.2024, 12:14
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,753
Default

Quote:
Originally Posted by rosalyn View Post
so hab ich die daten erstmal in nem validen json format.
Mir gefällt dein simpler Ansatz und ich möchte ihn nicht zerstören, aber bedenke folgendes:
Die Strings, die diese Felder zurückgeben können jegliche Zeichen enthalten.
Würde also einmal ein Anführungszeichen oder ein Backslash in einem der Felder stehen, ist dein json kaputt

Quote:
Originally Posted by rosalyn View Post
Nur als Information. Du kannst die Informationen auch direkt im Eventscripter Skript abrufen und brauchst den Umweg über das Kommentarfeld nicht.
Das wäre auch der bessere Weg und der einzige, sicher immer ein valides json zu erhalten.
EDIT

Nachtrag zu dem Teil deines Scripts, mit dem du die Dateinamen anpasst:
Kannst du so machen, aber die Dateinamen könntest du auch mit einer Packagizer Regel anpassen also komplett ohne Programmierarbeit.
__________________
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?

Last edited by pspzockerscene; 17.12.2024 at 12:15. Reason: EDIT
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 08:01.
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 - 2025, Jelsoft Enterprises Ltd.