#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
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 |
#4
|
||||
|
||||
Testlinks und Beschreibung, wo diese Attribute zu finden sind bitte.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#5
|
|||
|
|||
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. |
#6
|
||||
|
||||
Neue pornhub Properties für alle Links, die nach Release des nächsten Pluginupdates hinzugefügt werden:
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 |
#7
|
||||
|
||||
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 Last edited by pspzockerscene; 11.12.2024 at 16:35. Reason: EDIT |
#8
|
|||
|
|||
Vielen Dank, funktioniert super!
|
#9
|
||||
|
||||
Danke für dein Feedback
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#10
|
|||
|
|||
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 ?
|
#11
|
||||
|
||||
Testlinks bitte.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#12
|
|||
|
|||
**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" |
#13
|
||||
|
||||
Siehe html code von pornhub.com:
Code:
'pornstars_in_video' : 'No',
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#14
|
||||
|
||||
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 |
#15
|
|||
|
|||
Danke du bist ein Schatz, jetzt bekomme ich einen leeren Value, wenn die Liste leer ist und bei deinem Beispiellink eine Liste mit actors.
|
#16
|
||||
|
||||
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 |
#17
|
|||
|
|||
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>"} 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(); beste grüße |
#18
|
||||
|
||||
@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 |
#19
|
||||
|
||||
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:
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 Last edited by pspzockerscene; 17.12.2024 at 12:15. Reason: EDIT |
Thread Tools | |
Display Modes | |
|
|